Skip to content

Commit 3fcebd4

Browse files
committed
New SMITE is using oodle compression
1 parent 13b9372 commit 3fcebd4

File tree

6 files changed

+18
-6
lines changed

6 files changed

+18
-6
lines changed

Tools/CompatTable/table.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1347,7 +1347,7 @@ Frogwares
13471347
http://en.wikipedia.org/wiki/Sherlock_Holmes:_Crimes_%26_Punishments
13481348

13491349
[Smite]
1350-
Y Y Y Y ?
1350+
Y Y Y Y 893.0
13511351
Hi-Rez Studios
13521352
http://en.wikipedia.org/wiki/Smite_(video_game)
13531353
https://www.gildor.org/smf/index.php/topic,2861.0.html

Unreal/UnCore.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2473,6 +2473,7 @@ struct FIntBulkData : public FByteBulkData
24732473

24742474
#if SMITE
24752475
#define COMPRESS_LZO_ENC_SMITE 514 // encrypted LZO
2476+
#define COMPRESS_OODLE_SMITE 8
24762477
#endif
24772478

24782479
#if USE_LZ4

Unreal/UnCoreCompression.cpp

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -210,12 +210,20 @@ int appDecompress(byte *CompressedBuffer, int CompressedSize, byte *Uncompressed
210210
#endif // BLADENSOUL
211211

212212
#if SMITE
213-
if (GForceGame == GAME_Smite && Flags == COMPRESS_LZO_ENC_SMITE)
213+
if (GForceGame == GAME_Smite)
214214
{
215-
for (int i = 0; i < CompressedSize; i++)
216-
CompressedBuffer[i] ^= 0x2A;
217-
// overide compression
218-
Flags = COMPRESS_LZO;
215+
if (Flags == COMPRESS_LZO_ENC_SMITE)
216+
{
217+
for (int i = 0; i < CompressedSize; i++)
218+
CompressedBuffer[i] ^= 0x2A;
219+
// overide compression
220+
Flags = COMPRESS_LZO;
221+
}
222+
else if (Flags == COMPRESS_OODLE_SMITE)
223+
{
224+
// overide compression
225+
Flags = COMPRESS_OODLE;
226+
}
219227
}
220228
#endif // SMITE
221229

readme.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,9 @@ ooz
216216

217217
Changes
218218
~~~~~~~
219+
10.01.2020
220+
- updated SMITE support
221+
219222
05.01.2020
220223
- added Days Gone (PS4) support, required game override -game=daysgone
221224

umodel

0 Bytes
Binary file not shown.

umodel.exe

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)