mirror of
https://github.com/ARMSX2/ARMSX2.git
synced 2026-08-24 16:50:16 -07:00
Host: Remove resource read wrappers
No more wx, no need to abstract this.
This commit is contained in:
committed by
Connor McLaughlin
parent
0e79db6cf7
commit
93a4e67813
@@ -764,6 +764,15 @@ s64 FileSystem::GetPathFileSize(const char* Path)
|
||||
return sd.Size;
|
||||
}
|
||||
|
||||
std::optional<std::time_t> FileSystem::GetFileTimestamp(const char* path)
|
||||
{
|
||||
FILESYSTEM_STAT_DATA sd;
|
||||
if (!StatFile(path, &sd))
|
||||
return std::nullopt;
|
||||
|
||||
return sd.ModificationTime;
|
||||
}
|
||||
|
||||
std::optional<std::vector<u8>> FileSystem::ReadBinaryFile(const char* filename)
|
||||
{
|
||||
ManagedCFilePtr fp = OpenManagedCFile(filename, "rb");
|
||||
|
||||
Reference in New Issue
Block a user