mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-10-13 06:20:47 +02:00
Host: Remove resource read wrappers
No more wx, no need to abstract this.
This commit is contained in:
1 parent
0e79db6cf7
commit
93a4e67813
15 files changed
+74
-129
No files matched your search
@@ -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