mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-03 00:35:54 +00:00
Update gameDataPath() calls in engine, to fix compile
svn-id: r21541
This commit is contained in:
parent
3de55677b9
commit
a2c4795f32
@ -111,12 +111,12 @@ void Engine::checkCD() {
|
||||
char buffer[MAXPATHLEN];
|
||||
int i;
|
||||
|
||||
if (strlen(getGameDataPath()) == 0) {
|
||||
if (strlen(_gameDataPath.c_str()) == 0) {
|
||||
// That's it! I give up!
|
||||
if (getcwd(buffer, MAXPATHLEN) == NULL)
|
||||
return;
|
||||
} else
|
||||
strncpy(buffer, getGameDataPath(), MAXPATHLEN);
|
||||
strncpy(buffer, _gameDataPath.c_str(), MAXPATHLEN);
|
||||
|
||||
for (i = 0; i < MAXPATHLEN - 1; i++) {
|
||||
if (buffer[i] == '\\')
|
||||
|
Loading…
x
Reference in New Issue
Block a user