mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-01-17 12:51:15 +00:00
Successfully load and save isle.ini
This commit is contained in:
parent
2ccc472fa4
commit
e149776c3e
@ -543,10 +543,6 @@ if (ISLE_BUILD_APP)
|
|||||||
if (WIN32)
|
if (WIN32)
|
||||||
target_link_libraries(isle PRIVATE winmm)
|
target_link_libraries(isle PRIVATE winmm)
|
||||||
endif()
|
endif()
|
||||||
if (PS2)
|
|
||||||
target_link_libraries(isle PRIVATE mcman)
|
|
||||||
target_link_libraries(isle PRIVATE sio2man)
|
|
||||||
endif()
|
|
||||||
# Link LEGO1
|
# Link LEGO1
|
||||||
target_link_libraries(isle PRIVATE lego1)
|
target_link_libraries(isle PRIVATE lego1)
|
||||||
if(ISLE_DEBUG)
|
if(ISLE_DEBUG)
|
||||||
|
|||||||
@ -1026,7 +1026,7 @@ bool IsleApp::LoadConfig()
|
|||||||
#if defined(IOS)
|
#if defined(IOS)
|
||||||
const char* prefPath = SDL_GetUserFolder(SDL_FOLDER_DOCUMENTS);
|
const char* prefPath = SDL_GetUserFolder(SDL_FOLDER_DOCUMENTS);
|
||||||
#elif defined(PS2)
|
#elif defined(PS2)
|
||||||
char* prefPath = "mc0:/isledecomp/isle";
|
const char* prefPath = "mc0:ISLE/";
|
||||||
#else
|
#else
|
||||||
char* prefPath = SDL_GetPrefPath("isledecomp", "isle");
|
char* prefPath = SDL_GetPrefPath("isledecomp", "isle");
|
||||||
#endif
|
#endif
|
||||||
@ -1229,7 +1229,7 @@ bool IsleApp::LoadConfig()
|
|||||||
|
|
||||||
iniparser_freedict(dict);
|
iniparser_freedict(dict);
|
||||||
delete[] iniConfig;
|
delete[] iniConfig;
|
||||||
#ifndef IOS
|
#if !defined(IOS) && !defined(PS2)
|
||||||
SDL_free(prefPath);
|
SDL_free(prefPath);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user