Skip to content

Commit

Permalink
fix: Querying default folder paths not working right on the web
Browse files Browse the repository at this point in the history
  • Loading branch information
WerWolv committed Oct 4, 2023
1 parent d7bf374 commit ed8c079
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/libimhex/source/helpers/fs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
#if defined(OS_WINDOWS)
#include <windows.h>
#include <shlobj.h>
#elif defined(OS_LINUX)
#elif defined(OS_LINUX) || defined(OS_WEB)
#include <xdg.hpp>
#include <limits.h>
#endif

#if !defined(OS_WEB)
#include <nfd.hpp>
#if defined(OS_WEB)
#include <emscripten.h>
#else
#include <emscripten.h>
#include <nfd.hpp>
#endif

#include <algorithm>
Expand Down Expand Up @@ -275,7 +275,7 @@ namespace hex::fs {

paths.push_back(wolv::io::fs::getApplicationSupportDirectoryPath());

#elif defined(OS_LINUX)
#elif defined(OS_LINUX) || defined(OS_WEB)

paths.push_back(xdg::DataHomeDir());

Expand Down

0 comments on commit ed8c079

Please sign in to comment.