Update UnleashedRecomp/user/config.cpp

Co-authored-by: Skyth (Asilkan) <19259897+blueskythlikesclouds@users.noreply.github.com>
This commit is contained in:
Jujstme 2025-03-23 16:40:39 +01:00 committed by GitHub
parent 026a161bda
commit ceeb831436
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,7 +4,11 @@
#include <user/paths.h> #include <user/paths.h>
#if defined(__linux__) #if defined(__linux__)
const bool g_isRunningUnderFlatpak = std::filesystem::exists("/.flatpak-info"); const bool g_isRunningUnderFlatpak = []()
{
std::error_code ec;
return std::filesystem::exists("/.flatpak-info", ec);
}();
#endif #endif
std::vector<IConfigDef*> g_configDefinitions; std::vector<IConfigDef*> g_configDefinitions;