diff --git a/UI/DevScreens.cpp b/UI/DevScreens.cpp index 6be512d4c1..6711f1c0a9 100644 --- a/UI/DevScreens.cpp +++ b/UI/DevScreens.cpp @@ -73,14 +73,9 @@ #include "UI/ControlMappingScreen.h" #include "UI/DeveloperToolsScreen.h" #include "UI/JitCompareScreen.h" - -#ifdef _WIN32 -// Want to avoid including the full header here as it includes d3dx.h -int GetD3DCompilerVersion(); -#endif - #include "android/jni/app-android.h" + static const char *logLevelList[] = { "Notice", "Error", @@ -782,10 +777,7 @@ void TouchTestScreen::DrawForeground(UIContext &dc) { } char extra_debug[2048]{}; - -#if PPSSPP_PLATFORM(ANDROID) - truncate_cpy(extra_debug, Android_GetInputDeviceDebugString().c_str()); -#endif + truncate_cpy(extra_debug, Android_GetInputDeviceDebugString()); snprintf(buffer, sizeof(buffer), "display_res: %dx%d\n" diff --git a/UI/SystemInfoScreen.cpp b/UI/SystemInfoScreen.cpp index 11e53ad592..8b78f4245d 100644 --- a/UI/SystemInfoScreen.cpp +++ b/UI/SystemInfoScreen.cpp @@ -10,6 +10,7 @@ #include "Common/System/OSD.h" #include "Common/CPUDetect.h" #include "Common/MemoryUtil.h" +#include "Common/File/AndroidStorage.h" #include "Common/Audio/AudioBackend.h" #include "Common/Data/Text/I18n.h" #include "Common/Data/Text/Parsers.h" @@ -23,6 +24,7 @@ #include "UI/IconCache.h" #include "UI/MiscScreens.h" #include "UI/OnScreenDisplay.h" +#include "android/jni/app-android.h" void SystemInfoScreen::update() { TabbedUIDialogScreenWithGameBackground::update(); diff --git a/android/jni/app-android.h b/android/jni/app-android.h index 73f532f450..c79ba82771 100644 --- a/android/jni/app-android.h +++ b/android/jni/app-android.h @@ -23,5 +23,9 @@ JNIEnv* getEnv(); #endif +#else + +inline std::string Android_GetInputDeviceDebugString() { return ""; } + #endif