mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-17 03:25:14 -04:00
Integrate emscripten FS directly into interop_web.js, part 1
Breaks loading default.zip currently
This commit is contained in:
parent
21b934a4c6
commit
480111d6c1
@ -121,10 +121,6 @@ static Directory_EnumCallback enum_callback;
|
||||
EMSCRIPTEN_KEEPALIVE void Directory_IterCallback(const char* src) {
|
||||
cc_string path; char pathBuffer[FILENAME_SIZE];
|
||||
|
||||
/* ignore . and .. entry */
|
||||
if (src[0] == '.' && src[1] == '\0') return;
|
||||
if (src[0] == '.' && src[1] == '.' && src[2] == '\0') return;
|
||||
|
||||
String_InitArray(path, pathBuffer);
|
||||
String_AppendUtf8(&path, src, String_Length(src));
|
||||
enum_callback(&path, enum_obj);
|
||||
|
@ -180,7 +180,7 @@ static const char* OnBeforeUnload(int type, const void* ev, void *data) {
|
||||
}
|
||||
|
||||
static EM_BOOL OnVisibilityChanged(int eventType, const EmscriptenVisibilityChangeEvent* ev, void* data) {
|
||||
cc_bool inactive = ev->visibilityState == EMSCRIPTEN_VISIBILITY_HIDDEN;
|
||||
cc_bool inactive = ev->visibilityState == EMSCRIPTEN_VISIBILITY_HIDDEN;\
|
||||
if (WindowInfo.Inactive == inactive) return false;
|
||||
|
||||
WindowInfo.Inactive = inactive;
|
||||
|
1057
src/interop_web.js
1057
src/interop_web.js
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user