format everything

This commit is contained in:
Tropical
2026-04-01 13:48:29 -05:00
parent 3e813592e4
commit dd93cfe91e
380 changed files with 2698 additions and 2595 deletions

View File

@@ -504,7 +504,7 @@ void ConsoleSaveFileOriginal::MoveDataBeyond(
uiCopyEnd = uiFromEnd;
}
memcpy((void*)(uiCopyStart + nNumberOfBytesToWrite),
(void*)uiCopyStart, uiCopyEnd - uiCopyStart);
(void*)uiCopyStart, uiCopyEnd - uiCopyStart);
}
}
} else {
@@ -599,7 +599,7 @@ void ConsoleSaveFileOriginal::Flush(bool autosave, bool updateThumbnail) {
compLength = 0;
// Pre-calculate the buffer size required for the compressed data
// Save the start time
// Save the start time
const auto startTime = std::chrono::steady_clock::now();
Compression::getCompression()->Compress(nullptr, &compLength, pvSaveMem,
fileSize);
@@ -608,7 +608,6 @@ void ConsoleSaveFileOriginal::Flush(bool autosave, bool updateThumbnail) {
.count();
app.DebugPrintf("Check buffer size: Elapsed time %f\n", fElapsedTime);
// We add 4 bytes to the start so that we can signal compressed data
// And another 4 bytes to store the decompressed data size
@@ -620,7 +619,7 @@ void ConsoleSaveFileOriginal::Flush(bool autosave, bool updateThumbnail) {
if (compData != nullptr) {
// Re-compress all save data before we save it to disk
// Save the start time
// Save the start time
const auto startTime = std::chrono::steady_clock::now();
Compression::getCompression()->Compress(compData + 8, &compLength,
pvSaveMem, fileSize);
@@ -629,7 +628,6 @@ void ConsoleSaveFileOriginal::Flush(bool autosave, bool updateThumbnail) {
.count();
app.DebugPrintf("Compress: Elapsed time %f\n", fElapsedTime);
std::fill_n(compData, 8, std::uint8_t{0});
int saveVer = 0;
@@ -674,8 +672,8 @@ void ConsoleSaveFileOriginal::Flush(bool autosave, bool updateThumbnail) {
#ifdef _WINDOWS64
// set the icon and save image
PlatformStorage.SetSaveImages(pbThumbnailData, dwThumbnailDataSize,
pbDataSaveImage, dwDataSizeSaveImage,
bTextMetadata, iTextMetadataBytes);
pbDataSaveImage, dwDataSizeSaveImage,
bTextMetadata, iTextMetadataBytes);
app.DebugPrintf("Save thumbnail size %d\n", dwThumbnailDataSize);
// save the data