Revert "Disable DynOS compression"

This reverts commit 5def3ee46a.
This commit is contained in:
Agent X 2023-12-21 17:26:47 -05:00
parent 4ccde40ed3
commit a71fda7157
2 changed files with 8 additions and 10 deletions

View file

@ -70,8 +70,7 @@ static bool DynOS_Actor_WriteBinary(const SysPath &aOutputFilename, GfxData *aGf
DynOS_Anim_Write(_File, aGfxData); DynOS_Anim_Write(_File, aGfxData);
DynOS_Anim_Table_Write(_File, aGfxData); DynOS_Anim_Table_Write(_File, aGfxData);
BinFile::Close(_File); BinFile::Close(_File);
// return DynOS_Bin_Compress(aOutputFilename); return DynOS_Bin_Compress(aOutputFilename);
return true;
} }
///////////// /////////////
@ -152,9 +151,9 @@ static void DynOS_Actor_Generate(const SysPath &aPackFolder, Array<Pair<u64, Str
if (fs_sys_file_exists(_BinFilename.c_str())) { if (fs_sys_file_exists(_BinFilename.c_str())) {
#ifdef DEVELOPMENT #ifdef DEVELOPMENT
// Compress file to gain some space // Compress file to gain some space
/*if (!DynOS_Bin_IsCompressed(_BinFilename)) { if (!DynOS_Bin_IsCompressed(_BinFilename)) {
DynOS_Bin_Compress(_BinFilename); DynOS_Bin_Compress(_BinFilename);
}*/ }
#endif #endif
return; return;
} }
@ -263,11 +262,11 @@ void DynOS_Actor_GeneratePack(const SysPath &aPackFolder) {
#ifdef DEVELOPMENT #ifdef DEVELOPMENT
// Compress .bin files to gain some space // Compress .bin files to gain some space
/*SysPath _Filename = fstring("%s/%s", aPackFolder.c_str(), _PackEnt->d_name); SysPath _Filename = fstring("%s/%s", aPackFolder.c_str(), _PackEnt->d_name);
if (SysPath(_PackEnt->d_name).find(".bin") != SysPath::npos && !DynOS_Bin_IsCompressed(_Filename)) { if (SysPath(_PackEnt->d_name).find(".bin") != SysPath::npos && !DynOS_Bin_IsCompressed(_Filename)) {
DynOS_Bin_Compress(_Filename); DynOS_Bin_Compress(_Filename);
continue; continue;
}*/ }
#endif #endif
// For each subfolder, read tokens from model.inc.c and geo.inc.c // For each subfolder, read tokens from model.inc.c and geo.inc.c

View file

@ -637,8 +637,7 @@ static bool DynOS_Col_WriteBinary(const SysPath &aOutputFilename, GfxData *aGfxD
DynOS_Col_Write(_File, aGfxData, _Node); DynOS_Col_Write(_File, aGfxData, _Node);
BinFile::Close(_File); BinFile::Close(_File);
// return DynOS_Bin_Compress(aOutputFilename); return DynOS_Bin_Compress(aOutputFilename);
return true;
} }
///////////// /////////////
@ -694,9 +693,9 @@ void DynOS_Col_Generate(const SysPath &aPackFolder, Array<Pair<u64, String>> _Ac
if (fs_sys_file_exists(_ColFilename.c_str())) { if (fs_sys_file_exists(_ColFilename.c_str())) {
#ifdef DEVELOPMENT #ifdef DEVELOPMENT
// Compress file to gain some space // Compress file to gain some space
/*if (!DynOS_Bin_IsCompressed(_ColFilename)) { if (!DynOS_Bin_IsCompressed(_ColFilename)) {
DynOS_Bin_Compress(_ColFilename); DynOS_Bin_Compress(_ColFilename);
}*/ }
#endif #endif
continue; continue;
} }