summary refs log tree commit diff stats
path: root/util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'util.cpp')
-rw-r--r--util.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/util.cpp b/util.cpp index 5947620..1bfa900 100644 --- a/util.cpp +++ b/util.cpp
@@ -32,6 +32,8 @@ font_ptr loadFont(int size) {
32std::string getDataFile() { 32std::string getDataFile() {
33#ifdef WINDOWS 33#ifdef WINDOWS
34 char* dir = getenv("USERPROFILE"); 34 char* dir = getenv("USERPROFILE");
35#elif __EMSCRIPTEN__
36 const char* dir = "/offline";
35#else 37#else
36 char* dir = getenv("HOME"); 38 char* dir = getenv("HOME");
37#endif 39#endif