Ignore:
Timestamp:
12/26/24 01:40:08 (2 days ago)
Author:
Maciej Komosinski
Message:

Added Vstat(), Vdelete(), Vsettime() to VirtFILE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/common/virtfile/virtfile.h

    r891 r1328  
    11// This file is a part of Framsticks SDK.  http://www.framsticks.com/
    2 // Copyright (C) 1999-2019  Maciej Komosinski and Szymon Ulatowski.
     2// Copyright (C) 1999-2024  Maciej Komosinski and Szymon Ulatowski.
    33// See LICENSE.txt for details.
    44
     
    9898        virtual bool Vmkdirs(const char* path);
    9999        virtual bool Vdirexists(const char* path, bool is_writable);
     100        virtual bool Vdelete(const char* path);
     101        struct Stat { bool is_file; time_t modification_time; };
     102        virtual bool Vstat(const char* path, Stat* stat);
     103        virtual bool Vsettime(const char* path, double timestamp);
    100104};
    101105
     
    113117        bool Vmkdirs(const char* path);
    114118        bool Vdirexists(const char* path, bool is_writable);
     119        bool Vdelete(const char* path);
     120        bool Vstat(const char* path, Stat* stat);
     121        bool Vsettime(const char* path, double timestamp);
    115122
    116123        class Dir : public VirtDIR
     
    135142DLLEXP bool Vmkdirs(const char* path);
    136143DLLEXP bool Vdirexists(const char* path, bool is_writable);
     144DLLEXP bool Vdelete(const char* path);
     145DLLEXP bool Vstat(const char* path, struct VirtFileSystem::Stat *stat);
     146DLLEXP bool Vsettime(const char* path, double timestamp);
    137147
    138148#ifdef VIRTFILE_OVERLOADING
Note: See TracChangeset for help on using the changeset viewer.