summaryrefslogtreecommitdiff
path: root/src/port/extractor/GameExtractor.cpp
diff options
context:
space:
mode:
authorKiritoDv <kiritodev01@gmail.com>2025-03-05 18:31:53 -0600
committerKiritoDv <kiritodev01@gmail.com>2025-03-05 18:31:53 -0600
commitf500ac3a4a6ffcefe881536e06f4bf809de59c12 (patch)
tree81132f2fb88820da963891eb834915207a2c5d03 /src/port/extractor/GameExtractor.cpp
parent4b49902ba60855ad67fc51191e8a895ae9ecd0eb (diff)
Fixed some compilation errors
Diffstat (limited to 'src/port/extractor/GameExtractor.cpp')
-rw-r--r--src/port/extractor/GameExtractor.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/port/extractor/GameExtractor.cpp b/src/port/extractor/GameExtractor.cpp
index 4b325a33..f8392bc8 100644
--- a/src/port/extractor/GameExtractor.cpp
+++ b/src/port/extractor/GameExtractor.cpp
@@ -4,8 +4,10 @@
#include "Context.h"
#include "spdlog/spdlog.h"
-#include "portable-file-dialogs.h"
#include <port/Engine.h>
+#if !defined(__IOS__) && !defined(__ANDROID__) && !defined(__SWITCH__)
+#include "portable-file-dialogs.h"
+#endif
std::unordered_map<std::string, std::string> mGameList = {
{ "d8b1088520f7c5f81433292a9258c1184afa1457", "Star Fox 64 (U) (V1.0)" },
@@ -21,7 +23,7 @@ std::unordered_map<std::string, std::string> mGameList = {
};
bool GameExtractor::SelectGameFromUI() {
-#if !defined(__IOS__) || !defined(__ANDROID__) || !defined(__SWITCH__)
+#if !defined(__IOS__) && !defined(__ANDROID__) && !defined(__SWITCH__)
auto selection = pfd::open_file("Select a file", ".", { "N64 Roms", "*.z64" }).result();
if (selection.empty()) {