Skip to content

Commit

Permalink
fix emscripten build
Browse files Browse the repository at this point in the history
  • Loading branch information
floooh committed Dec 27, 2024
1 parent 76ae7ac commit b86ed7e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#define NOMINMAX
#include "windows.h"
#endif
#include "ui.h"
#include "ui_asm.h"
#include "util.h"
#include <stdlib.h> // free()
Expand Down Expand Up @@ -110,7 +111,7 @@ EM_JS(void, emsc_js_open_link, (const char* c_url), {

EMSCRIPTEN_KEEPALIVE int util_emsc_loadfile(const char* name, uint8_t* data, int size) {
ui_asm_put_source(name, (range_t){ .ptr=data, .size=(size_t)size });
ui_asm_set_window_open(true);
ui_set_window_open(UI_WINDOW_ASM, true);
ui_asm_assemble();
return 1;
}
Expand Down Expand Up @@ -317,7 +318,7 @@ bool util_is_osx(void) {
void util_save_settings(const char* key, const char* payload) {
assert(key && payload);
#if defined(__EMSCRIPTEN__)
emsc_js_save_save_settings(key, payload);
emsc_js_save_settings(key, payload);
#else
util_path_t path = util_win32_posix_make_ini_path(key);
range_t data = { .ptr = (void*)payload, .size = strlen(payload) };
Expand Down

0 comments on commit b86ed7e

Please sign in to comment.