diff options
| author | Einar Johan Trøan Sømåen | 2012-07-27 19:07:00 +0200 |
|---|---|---|
| committer | Einar Johan Trøan Sømåen | 2012-07-27 19:07:00 +0200 |
| commit | 99d4c55e88712a0b0dc0d97e4c9c52946a5f48f2 (patch) | |
| tree | 09c4b8143e636203cbcd36626811c358e9471f4f /engines/wintermute/utils | |
| parent | a4e2fb4504f0a7ba42521f7cd4c95c997adf96f4 (diff) | |
| download | scummvm-rg350-99d4c55e88712a0b0dc0d97e4c9c52946a5f48f2.tar.gz scummvm-rg350-99d4c55e88712a0b0dc0d97e4c9c52946a5f48f2.tar.bz2 scummvm-rg350-99d4c55e88712a0b0dc0d97e4c9c52946a5f48f2.zip | |
WINTERMUTE: Remove all unneccessary #if 0 blocks
Diffstat (limited to 'engines/wintermute/utils')
| -rw-r--r-- | engines/wintermute/utils/path_util.cpp | 33 |
1 files changed, 1 insertions, 32 deletions
diff --git a/engines/wintermute/utils/path_util.cpp b/engines/wintermute/utils/path_util.cpp index 2fbe785a38..4e36c3e316 100644 --- a/engines/wintermute/utils/path_util.cpp +++ b/engines/wintermute/utils/path_util.cpp @@ -163,40 +163,9 @@ bool PathUtil::fileExists(const AnsiString &fileName) { //////////////////////////////////////////////////////////////////////////
-AnsiString PathUtil::getUserDirectory() {
+AnsiString PathUtil::getUserDirectory() { // TODO: Get rid of
warning("PathUtil::GetUserDirectory - stubbed");
AnsiString userDir = "./";
-#if 0
-#ifdef __WIN32__
- char buffer[MAX_PATH_LENGTH];
- buffer[0] = '\0';
- LPITEMIDLIST pidl = NULL;
- LPMALLOC pMalloc;
- if (DID_SUCCEED(SHGetMalloc(&pMalloc))) {
- SHGetSpecialFolderLocation(NULL, CSIDL_APPDATA, &pidl);
- if (pidl) {
- SHGetPathFromIDList(pidl, buffer);
- }
- pMalloc->Free(pidl);
- userDir = AnsiString(buffer);
- }
-#elif __MACOSX__
- FSRef fileRef;
- OSStatus error = FSFindFolder(kUserDomain, kApplicationSupportFolderType, true, &fileRef);
- if (error == noErr) {
- char buffer[MAX_PATH_LENGTH];
- error = FSRefMakePath(&fileRef, (UInt8 *)buffer, sizeof(buffer));
- if (error == noErr) {
- userDir = buffer;
- }
-
- }
-#elif __IPHONEOS__
- char path[MAX_PATH_LENGTH];
- IOS_GetDataDir(path);
- userDir = AnsiString(path);
-#endif
-#endif // 0
return userDir;
}
|
