From 67505143b15a4478b40171deceadb3fb4d1b2e62 Mon Sep 17 00:00:00 2001 From: offtkp Date: Wed, 10 Jan 2024 19:13:26 +0200 Subject: [PATCH] Test I guess --- .github/workflows/Web.yml | 3 ++- src/app.cxx | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Web.yml b/.github/workflows/Web.yml index 58b7dd11..dd66aebb 100644 --- a/.github/workflows/Web.yml +++ b/.github/workflows/Web.yml @@ -15,8 +15,9 @@ jobs: actions-cache-folder: 'emsdk-cache' - name: Build run: | + export EMCC_FORCE_STDLIBS=libc++,libc++abi emcmake cmake -B build - cmake --build build --config Release + cmake --build build mv data/hydra.ico build/favicon.ico mv build/hydra.html build/index.html - name: Deploy diff --git a/src/app.cxx b/src/app.cxx index ea7a951d..c58ce3b3 100644 --- a/src/app.cxx +++ b/src/app.cxx @@ -60,6 +60,8 @@ extern "C" void hydra_drop_file(const char* name, void* data, size_t size) std::filesystem::path out_path = cores / file; std::ofstream ofs(out_path, std::ios_base::binary | std::ios_base::out); ofs.write((const char*)data, size); + sync_fs(); + Settings::ReinitCoreInfo(); } else { @@ -67,8 +69,8 @@ extern "C" void hydra_drop_file(const char* name, void* data, size_t size) std::filesystem::path out_path = cache / file; std::ofstream ofs(out_path, std::ios_base::binary | std::ios_base::out); ofs.write((const char*)data, size); + sync_fs(); } - sync_fs(); } #ifdef HYDRA_WEB