make color-fractory somewhat work on web #2
1 changed files with 2 additions and 0 deletions
|
|
@ -39,6 +39,8 @@ namespace psemek::util
|
||||||
std::string path(path_length, '\0');
|
std::string path(path_length, '\0');
|
||||||
_NSGetExecutablePath(path.data(), &path_length);
|
_NSGetExecutablePath(path.data(), &path_length);
|
||||||
return std::filesystem::path(std::move(path));
|
return std::filesystem::path(std::move(path));
|
||||||
|
#elif defined __EMSCRIPTEN__
|
||||||
|
return std::filesystem::canonical("");
|
||||||
#else
|
#else
|
||||||
throw exception("executable_path() is not implemented for this platform");
|
throw exception("executable_path() is not implemented for this platform");
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue