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_Table_Write(_File, aGfxData);
BinFile::Close(_File);
// return DynOS_Bin_Compress(aOutputFilename);
return true;
return DynOS_Bin_Compress(aOutputFilename);
}
/////////////
@ -152,9 +151,9 @@ static void DynOS_Actor_Generate(const SysPath &aPackFolder, Array<Pair<u64, Str
if (fs_sys_file_exists(_BinFilename.c_str())) {
#ifdef DEVELOPMENT
// Compress file to gain some space
/*if (!DynOS_Bin_IsCompressed(_BinFilename)) {
if (!DynOS_Bin_IsCompressed(_BinFilename)) {
DynOS_Bin_Compress(_BinFilename);
}*/
}
#endif
return;
}
@ -263,11 +262,11 @@ void DynOS_Actor_GeneratePack(const SysPath &aPackFolder) {
#ifdef DEVELOPMENT
// 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)) {
DynOS_Bin_Compress(_Filename);
continue;
}*/
}
#endif
// 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);
BinFile::Close(_File);
// return DynOS_Bin_Compress(aOutputFilename);
return true;
return DynOS_Bin_Compress(aOutputFilename);
}
/////////////
@ -694,9 +693,9 @@ void DynOS_Col_Generate(const SysPath &aPackFolder, Array<Pair<u64, String>> _Ac
if (fs_sys_file_exists(_ColFilename.c_str())) {
#ifdef DEVELOPMENT
// Compress file to gain some space
/*if (!DynOS_Bin_IsCompressed(_ColFilename)) {
if (!DynOS_Bin_IsCompressed(_ColFilename)) {
DynOS_Bin_Compress(_ColFilename);
}*/
}
#endif
continue;
}