mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-16 01:54:38 +02:00
#15 fix gzip content rules encoding for Safari
This commit is contained in:
@@ -66,9 +66,6 @@ struct Level : IGame {
|
|||||||
case TR::VER_TR1_PC : strcat(buf, ".PHD"); break;
|
case TR::VER_TR1_PC : strcat(buf, ".PHD"); break;
|
||||||
case TR::VER_TR1_PSX : strcat(buf, ".PSX"); break;
|
case TR::VER_TR1_PSX : strcat(buf, ".PSX"); break;
|
||||||
}
|
}
|
||||||
#ifdef __EMSCRIPTEN__
|
|
||||||
strcat(buf, ".gz");
|
|
||||||
#endif
|
|
||||||
new Stream(buf, loadAsync);
|
new Stream(buf, loadAsync);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
16
src/platform/web/level/.htaccess
Normal file
16
src/platform/web/level/.htaccess
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
AddEncoding gzip .gz
|
||||||
|
|
||||||
|
<FilesMatch "\.PCX$">
|
||||||
|
ForceType application/octet-stream
|
||||||
|
Header set Content-Encoding: gzip
|
||||||
|
</FilesMatch>
|
||||||
|
|
||||||
|
<FilesMatch "\.PSX$">
|
||||||
|
ForceType application/octet-stream
|
||||||
|
Header set Content-Encoding: gzip
|
||||||
|
</FilesMatch>
|
||||||
|
|
||||||
|
<FilesMatch "\.PHD$">
|
||||||
|
ForceType application/octet-stream
|
||||||
|
Header set Content-Encoding: gzip
|
||||||
|
</FilesMatch>
|
Reference in New Issue
Block a user