1
0
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:
XProger
2017-09-20 04:31:27 +03:00
parent e6513dd5d9
commit 26f1df882e

View File

@@ -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);
}