Host: Remove resource read wrappers

No more wx, no need to abstract this.
This commit is contained in:
Stenzek
2023-10-01 17:45:54 +10:00
committed by Connor McLaughlin
parent 0e79db6cf7
commit 93a4e67813
15 changed files with 74 additions and 129 deletions
+9
View File
@@ -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");