Open read-only files as r+b on web builds (apparently read-only files have perf issues)
This commit is contained in:
parent
6ea10520b5
commit
32bbc93eea
1 changed files with 4 additions and 0 deletions
|
|
@ -41,7 +41,11 @@ namespace psemek::io
|
||||||
#else
|
#else
|
||||||
char const * fopen_read_mode()
|
char const * fopen_read_mode()
|
||||||
{
|
{
|
||||||
|
#ifdef __EMSCRIPTEN__
|
||||||
|
return "r+b";
|
||||||
|
#else
|
||||||
return "rb";
|
return "rb";
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
char const * fopen_write_mode(unsigned flags)
|
char const * fopen_write_mode(unsigned flags)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue