Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
Test I guess
Browse files Browse the repository at this point in the history
  • Loading branch information
OFFTKP committed Jan 10, 2024
1 parent 06e2ce1 commit 6750514
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/Web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion src/app.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,17 @@ 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
{
std::filesystem::path cache = Settings::GetCachePath();
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
Expand Down

0 comments on commit 6750514

Please sign in to comment.