mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-10 00:42:52 +00:00
refactor: consolidate file I/O into IPlatformFileIO, delete PortableFileIO and PathHelper
This commit is contained in:
@@ -20,7 +20,6 @@
|
||||
#include "app/linux/Linux_App.h"
|
||||
#include "app/linux/Stubs/winapi_stubs.h"
|
||||
#include "console_helpers/PlatformTime.h"
|
||||
#include "console_helpers/PortableFileIO.h"
|
||||
#include "console_helpers/StringHelpers.h"
|
||||
#include "console_helpers/compression.h"
|
||||
#include "java/File.h"
|
||||
@@ -1469,13 +1468,13 @@ void ConsoleSaveFileSplit::DebugFlushToFile(
|
||||
bool writeSucceeded = false;
|
||||
|
||||
if (compressedData != nullptr && compressedDataSize > 0) {
|
||||
writeSucceeded = PortableFileIO::WriteBinaryFile(
|
||||
writeSucceeded = PlatformFileIO.writeFile(
|
||||
outputPath, compressedData, compressedDataSize);
|
||||
numberOfBytesWritten = writeSucceeded ? compressedDataSize : 0;
|
||||
assert(numberOfBytesWritten == compressedDataSize);
|
||||
} else {
|
||||
writeSucceeded =
|
||||
PortableFileIO::WriteBinaryFile(outputPath, pvSaveMem, fileSize);
|
||||
PlatformFileIO.writeFile(outputPath, pvSaveMem, fileSize);
|
||||
numberOfBytesWritten = writeSucceeded ? fileSize : 0;
|
||||
assert(numberOfBytesWritten == fileSize);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user