Fix more style issues, and abstract most of the init code from MemMap.cpp.

This commit is contained in:
The Dax committed 2013-06-26 16:02:52 -04:00
1 parent 7ade9f6ceb
commit 695f7eeec5
6 files changed
+25 -27

No files matched your search

+9 -2
View File
@@ -42,11 +42,18 @@
#include "Core/MemMap.h"
// TODO: Come up with a better name for this thing
// We gather the game info before actually loading/booting the ISO
// to determine if the emulator should enable extra memory and
// double-sized texture coordinates.
void InitGameISO(std::string fileToStart) {
void InitMemoryForGameISO(std::string fileToStart) {
// Default memory settings
// Seems to be the safest place currently..
Memory::g_MemoryEnd = 0x0A000000;
Memory::g_MemorySize = 0x2000000;
g_RemasterMode = false;
g_DoubleTextureCoordinates = false;
Memory::g_MemoryMask = Memory::g_MemorySize - 1;
ISOFileSystem *umd2 = new ISOFileSystem(&pspFileSystem, constructBlockDevice(fileToStart.c_str()));
// Parse PARAM.SFO