make color-fractory somewhat work on web #2

Merged
lisyarus merged 8 commits from yulya3102/psemek:web-runtime into master 2026-07-03 19:32:11 +00:00
Showing only changes of commit 1f1feaccf3 - Show all commits

View file

@ -39,6 +39,8 @@ namespace psemek::util
std::string path(path_length, '\0');
_NSGetExecutablePath(path.data(), &path_length);
return std::filesystem::path(std::move(path));
#elif defined __EMSCRIPTEN__
return std::filesystem::canonical("");
#else
throw exception("executable_path() is not implemented for this platform");
#endif