aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray2003-07-28 07:36:27 +0000
committerJonathan Gray2003-07-28 07:36:27 +0000
commit71a9b1bc2df37018adf166934e52b804e9d4ddff (patch)
treef1250e40379fd4f81bcb5879b9a185f63ebe828e
parentb17e45c9bcdb63f57dd9ef60eb72ac1421b5ed0a (diff)
downloadscummvm-rg350-71a9b1bc2df37018adf166934e52b804e9d4ddff.tar.gz
scummvm-rg350-71a9b1bc2df37018adf166934e52b804e9d4ddff.tar.bz2
scummvm-rg350-71a9b1bc2df37018adf166934e52b804e9d4ddff.zip
rename _mkdir
svn-id: r9232
-rw-r--r--sword2/driver/driver96.h3
-rw-r--r--sword2/driver/misc.cpp4
-rw-r--r--sword2/save_rest.cpp2
3 files changed, 4 insertions, 5 deletions
diff --git a/sword2/driver/driver96.h b/sword2/driver/driver96.h
index 8b5b3fdefc..350b602fd8 100644
--- a/sword2/driver/driver96.h
+++ b/sword2/driver/driver96.h
@@ -1620,7 +1620,6 @@ extern int32 SetFxIdVolume(int32 id, uint8 vol);
#undef SetFileAttributes
#undef GetCurrentDirectory
#undef GetVolumeInformation
-#undef _mkdir
#undef GetModuleFileName
#endif
@@ -1635,7 +1634,7 @@ extern void SetFileAttributes(char *file, uint32 atrib);
extern void DeleteFile(char *file);
extern void GetCurrentDirectory(uint32 max, char* path);
extern int32 GetVolumeInformation(char *cdPath, char *sCDName, uint32 maxPath, uint8 *, DWORD *dwMaxCompLength, DWORD *dwFSFlags, uint8 *, uint32 a);
-extern void _mkdir(const char *pathname);
+extern void scumm_mkdir(const char *pathname);
extern void GetModuleFileName(void *module, char *destStr, uint32 maxLen);
//-----------------------------------------------------------------------------
diff --git a/sword2/driver/misc.cpp b/sword2/driver/misc.cpp
index 7843c3352a..dd6aa71f23 100644
--- a/sword2/driver/misc.cpp
+++ b/sword2/driver/misc.cpp
@@ -53,8 +53,8 @@ int32 GetVolumeInformation(char *cdPath, char *sCDName, uint32 maxPath, uint8 *,
}
// FIXME wrap different platform specific mkdir calls and actually do something
-void _mkdir(const char *pathname) {
- warning("stub _mkdir %s", pathname);
+void scumm_mkdir(const char *pathname) {
+ warning("stub scumm_mkdir %s", pathname);
}
void GetModuleFileName(void *module, char *destStr, uint32 maxLen) {
diff --git a/sword2/save_rest.cpp b/sword2/save_rest.cpp
index 4fefc9c6ba..9fc37138f9 100644
--- a/sword2/save_rest.cpp
+++ b/sword2/save_rest.cpp
@@ -184,7 +184,7 @@ uint32 SaveData(uint16 slotNo, uint8 *buffer, uint32 bufferSize)
//create saves directory just in case not there
- _mkdir("saves");
+ scumm_mkdir("saves");
sprintf(saveFileName, "saves\\savegame.%.3d", slotNo); // construct filename