From 2ccc472fa412437676516129870e899ed459d052 Mon Sep 17 00:00:00 2001 From: VoxelTek <53562267+VoxelTek@users.noreply.github.com> Date: Wed, 30 Jul 2025 11:03:01 +1000 Subject: [PATCH] Add PS2 code for `isle.ini` path --- CMakeLists.txt | 4 ++++ ISLE/isleapp.cpp | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 07b9bd64..1113d373 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -543,6 +543,10 @@ if (ISLE_BUILD_APP) if (WIN32) target_link_libraries(isle PRIVATE winmm) endif() + if (PS2) + target_link_libraries(isle PRIVATE mcman) + target_link_libraries(isle PRIVATE sio2man) + endif() # Link LEGO1 target_link_libraries(isle PRIVATE lego1) if(ISLE_DEBUG) diff --git a/ISLE/isleapp.cpp b/ISLE/isleapp.cpp index 9ede5d74..ea235994 100644 --- a/ISLE/isleapp.cpp +++ b/ISLE/isleapp.cpp @@ -1023,8 +1023,10 @@ MxResult IsleApp::SetupWindow() // FUNCTION: ISLE 0x4028d0 bool IsleApp::LoadConfig() { -#ifdef IOS +#if defined(IOS) const char* prefPath = SDL_GetUserFolder(SDL_FOLDER_DOCUMENTS); +#elif defined(PS2) + char* prefPath = "mc0:/isledecomp/isle"; #else char* prefPath = SDL_GetPrefPath("isledecomp", "isle"); #endif