mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-24 03:39:07 +02:00
Core: Bring over some file related Switch changes.
Reducing the distance from the Switch port code.
This commit is contained in:
1 parent
051a84e9bd
commit
cb1b7b1e43
10 files changed
+40
-13
No files matched your search
@@ -442,7 +442,8 @@ void DirectoryFileHandle::Close()
|
||||
if (SetEndOfFile(hFile) == 0) {
|
||||
ERROR_LOG_REPORT(FILESYS, "Failed to truncate file.");
|
||||
}
|
||||
#else
|
||||
#elif !PPSSPP_PLATFORM(SWITCH)
|
||||
// Note: it's not great that Switch cannot truncate appropriately...
|
||||
if (ftruncate(hFile, (off_t)needsTrunc_) != 0) {
|
||||
ERROR_LOG_REPORT(FILESYS, "Failed to truncate file.");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user