summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorfires.gc <fires.gc@gmail.com>2008-11-05 19:07:38 +0000
committerfires.gc <fires.gc@gmail.com>2008-11-05 19:07:38 +0000
commit4aed4eb1c72fe63d22e7499c878a7264aaeefbbe (patch)
tree64ab743e52dc8723dbb151921e8282c9d3d3ac21 /Source/Core
parent4e4bbdfa457d660d56abd1a71fe7cdd8e1e286e7 (diff)
small fix - games without banners aren't cached anymore so wii banners will be shown correctly
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1076 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_fs.cpp8
-rw-r--r--Source/Core/DolphinWX/Src/ISOFile.cpp7
2 files changed, 8 insertions, 7 deletions
diff --git a/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_fs.cpp b/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_fs.cpp
index 7f126ef63e..9457d9b1e1 100644
--- a/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_fs.cpp
+++ b/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_fs.cpp
@@ -239,11 +239,9 @@ s32 CWII_IPC_HLE_Device_fs::ExecuteCommand(u32 _Parameter, u32 _BufferIn, u32 _B
LOG(WII_IPC_FILEIO, "FS: CREATE_DIR %s", DirName.c_str());
- if (File::IsDirectory(DirName.c_str()))
- {
- bool Result = File::CreateDir(DirName.c_str());
- _dbg_assert_msg_(WII_IPC_FILEIO, Result, "FS: CREATE_DIR %s failed", DirName.c_str());
- }
+ DirName += "\\";
+ CreateDirectoryStruct(DirName);
+ _dbg_assert_msg_(WII_IPC_FILEIO, File::IsDirectory(DirName.c_str()), "FS: CREATE_DIR %s failed", DirName.c_str());
return FS_RESULT_OK;
}
diff --git a/Source/Core/DolphinWX/Src/ISOFile.cpp b/Source/Core/DolphinWX/Src/ISOFile.cpp
index 48176b028c..d1d2c0ec3b 100644
--- a/Source/Core/DolphinWX/Src/ISOFile.cpp
+++ b/Source/Core/DolphinWX/Src/ISOFile.cpp
@@ -32,7 +32,7 @@
#include "ChunkFile.h"
#include "../resources/no_banner.cpp"
-#define CACHE_REVISION 0x103
+#define CACHE_REVISION 0x104
#define DVD_BANNER_WIDTH 96
#define DVD_BANNER_HEIGHT 32
@@ -104,7 +104,10 @@ GameListItem::GameListItem(const std::string& _rFileName)
m_Valid = true;
- SaveToCache();
+ // just if we have an image create a cache file
+ // Wii isos create their images after you have generated the first savegame
+ if (m_pImage)
+ SaveToCache();
}
}