mirror of
https://github.com/libretro/ppsspp.git
synced 2024-11-27 02:10:34 +00:00
Get Symbian running again
This commit is contained in:
parent
8d7ec80e93
commit
f7878c8351
@ -713,6 +713,8 @@ std::string &GetUserPath(const unsigned int DirIDX, const std::string &newPath)
|
||||
#ifdef _WIN32
|
||||
// TODO: use GetExeDirectory() here instead of ROOT_DIR so that if the cwd is changed we still have the correct paths?
|
||||
paths[D_USER_IDX] = ROOT_DIR DIR_SEP USERDATA_DIR DIR_SEP;
|
||||
#elif defined(__SYMBIAN32__)
|
||||
paths[D_USER_IDX] = "E:" DIR_SEP "PPSSPP" DIR_SEP;
|
||||
#else
|
||||
if (File::Exists(ROOT_DIR DIR_SEP USERDATA_DIR))
|
||||
paths[D_USER_IDX] = ROOT_DIR DIR_SEP USERDATA_DIR DIR_SEP;
|
||||
|
@ -55,6 +55,7 @@ void* AllocateExecutableMemory(size_t size, bool low)
|
||||
void* ptr = VirtualAlloc(0, size, MEM_COMMIT, PAGE_EXECUTE_READWRITE);
|
||||
#elif defined(__SYMBIAN32__)
|
||||
// On Symbian, we will need to create an RChunk and allocate with ->CreateLocalCode(size, size);
|
||||
static char *map_hint = 0;
|
||||
void* ptr = mmap(map_hint, size, PROT_READ | PROT_WRITE | PROT_EXEC, MAP_PRIVATE, -1, 0);
|
||||
#else
|
||||
static char *map_hint = 0;
|
||||
|
@ -1,5 +1,5 @@
|
||||
blackberry|symbian: CONFIG += mobile_platform
|
||||
unix:!blackberry:!macx: CONFIG += linux
|
||||
unix:!blackberry:!symbian:!macx: CONFIG += linux
|
||||
|
||||
# Global specific
|
||||
QMAKE_CXXFLAGS += -std=c++0x -Wno-unused-function -Wno-unused-variable -Wno-multichar -Wno-uninitialized -Wno-ignored-qualifiers -Wno-missing-field-initializers -Wno-unused-parameter
|
||||
|
@ -219,7 +219,7 @@ void NativeInit(int argc, const char *argv[], const char *savegame_directory, co
|
||||
#endif
|
||||
}
|
||||
|
||||
#if defined(ANDROID) || defined(BLACKBERRY)
|
||||
#if defined(ANDROID) || defined(BLACKBERRY) || defined(__SYMBIAN32__)
|
||||
g_Config.memCardDirectory = user_data_path;
|
||||
g_Config.flashDirectory = user_data_path+"/flash/";
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user