ps2_fopen uses getGameDataPath -- added FIXME comment that explain how it probably could be fixed, but I'll leave this to somebody who can actually compile & test this port :-)

svn-id: r21548
This commit is contained in:
Max Horn 2006-04-02 02:40:39 +00:00
parent 9b08d8e467
commit 041bc770e8

View File

@ -420,6 +420,7 @@ FILE *ps2_fopen(const char *fname, const char *mode) {
assert(cacheListSema >= 0);
}
if (!tocManager.haveEntries() && g_engine) // read the TOC the first time the engine opens a file
// FIXME: Dear porter, you probably want to use ConfMan.get("path") here to get the data path
tocManager.readEntries(g_engine->getGameDataPath());
if (((mode[0] != 'r') && (mode[0] != 'w')) || ((mode[1] != '\0') && (mode[1] != 'b'))) {