mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-11 21:46:23 +02:00
Use MEMSIZE SFO param to detect 64MB homebrew.
Now, use 32MB for normal games even in PSP-2000 mode, which is how real firmware behaves.
This commit is contained in:
1 parent
d5219ebafc
commit
d273deedeb
6 files changed
+75
-11
No files matched your search
+12
-4
@@ -177,10 +177,7 @@ void CPU_Init() {
|
||||
|
||||
// Default memory settings
|
||||
// Seems to be the safest place currently..
|
||||
if (g_Config.iPSPModel == PSP_MODEL_FAT)
|
||||
Memory::g_MemorySize = Memory::RAM_NORMAL_SIZE; // 32 MB of ram by default
|
||||
else
|
||||
Memory::g_MemorySize = Memory::RAM_DOUBLE_SIZE;
|
||||
Memory::g_MemorySize = Memory::RAM_NORMAL_SIZE; // 32 MB of ram by default
|
||||
|
||||
g_RemasterMode = false;
|
||||
g_DoubleTextureCoordinates = false;
|
||||
@@ -209,6 +206,17 @@ void CPU_Init() {
|
||||
case FILETYPE_PSP_DISC_DIRECTORY:
|
||||
InitMemoryForGameISO(loadedFile);
|
||||
break;
|
||||
case FILETYPE_PSP_PBP_DIRECTORY: {
|
||||
// TODO: Can we get this lower into LoadFile?
|
||||
std::string ebootFilename = loadedFile->Path() + "/EBOOT.PBP";
|
||||
FileLoader *tempLoader = ConstructFileLoader(ebootFilename);
|
||||
InitMemoryForGamePBP(tempLoader);
|
||||
delete tempLoader;
|
||||
break;
|
||||
}
|
||||
case FILETYPE_PSP_PBP:
|
||||
InitMemoryForGamePBP(loadedFile);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user