1
0
mirror of synced 2025-01-29 19:17:28 +01:00

fix: Querying default folder paths not working right on the web

This commit is contained in:
WerWolv 2023-10-04 16:10:14 +02:00
parent d7bf3746f7
commit ed8c0794bb

View File

@ -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>
@ -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());