Skip to content

Commit 3f446a5

Browse files
vkedwardliflyinghead
authored andcommitted
Use target_compile_definitions to disable imgui shell functions for Switch
1 parent df3c676 commit 3f446a5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,8 @@ if(NINTENDO_SWITCH)
153153
ASIO_DISABLE_SERIAL_PORT
154154
ESHUTDOWN=110
155155
SA_RESTART=0
156-
SA_NOCLDWAIT=0)
156+
SA_NOCLDWAIT=0
157+
IMGUI_DISABLE_DEFAULT_SHELL_FUNCTIONS)
157158

158159
elseif(LIBRETRO)
159160
add_library(${PROJECT_NAME} SHARED core/emulator.cpp)

core/deps/imgui/imgui.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15563,7 +15563,7 @@ static void Platform_SetClipboardTextFn_DefaultImpl(ImGuiContext* ctx, const cha
1556315563
#if defined(__APPLE__) && TARGET_OS_IPHONE
1556415564
#define IMGUI_DISABLE_DEFAULT_SHELL_FUNCTIONS
1556515565
#endif
15566-
#if defined(__3DS__) || defined(__SWITCH__)
15566+
#if defined(__3DS__)
1556715567
#define IMGUI_DISABLE_DEFAULT_SHELL_FUNCTIONS
1556815568
#endif
1556915569
#if defined(_WIN32) && defined(IMGUI_DISABLE_WIN32_FUNCTIONS)

0 commit comments

Comments
 (0)