aboutsummaryrefslogtreecommitdiffstats
path: root/core/helpers.cpp
diff options
context:
space:
mode:
authorMax Bachmann <[email protected]>2023-07-26 21:57:53 +0200
committerGitHub <[email protected]>2023-07-26 19:57:53 +0000
commit34d07fde84ad64342ae6624334957143319615ab (patch)
tree73f003626c538b2682b885560de1a42e9f576311 /core/helpers.cpp
parent8b3a9b527d87009f86ed0b4eb6c33a9e8dfc069b (diff)
disable unavailable functionality on xbox (#887)
* disable unavailable functionality on xbox * use not std version of getenv on xbox
Diffstat (limited to 'core/helpers.cpp')
-rw-r--r--core/helpers.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/helpers.cpp b/core/helpers.cpp
index 0d36048c..b353da2e 100644
--- a/core/helpers.cpp
+++ b/core/helpers.cpp
@@ -156,7 +156,7 @@ std::vector<std::string> SearchDataFiles(const char *ext, const char *subdir)
std::replace(path.begin(), path.end(), '/', '\\');
DirectorySearch(path.c_str(), ext, &results);
-#if !defined(ALSOFT_UWP)
+#if !defined(ALSOFT_UWP) && !defined(_GAMING_XBOX)
/* Search the local and global data dirs. */
for(auto id : std::array{CSIDL_APPDATA, CSIDL_COMMON_APPDATA})
{