mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-12 08:04:09 +02:00
#15 pack all data to gzip archives for WebGL version (reduces ~60% of traffic)
This commit is contained in:
@@ -66,6 +66,9 @@ struct Level : IGame {
|
||||
case TR::VER_TR1_PC : strcat(buf, ".PHD"); break;
|
||||
case TR::VER_TR1_PSX : strcat(buf, ".PSX"); break;
|
||||
}
|
||||
#ifdef __EMSCRIPTEN__
|
||||
strcat(buf, ".gz");
|
||||
#endif
|
||||
new Stream(buf, loadAsync);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user