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
This commit is contained in:
fires.gc 2008-11-05 19:07:38 +00:00
parent 4e4bbdfa45
commit 4aed4eb1c7
2 changed files with 8 additions and 7 deletions

View File

@ -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()); LOG(WII_IPC_FILEIO, "FS: CREATE_DIR %s", DirName.c_str());
if (File::IsDirectory(DirName.c_str())) DirName += "\\";
{ CreateDirectoryStruct(DirName);
bool Result = File::CreateDir(DirName.c_str()); _dbg_assert_msg_(WII_IPC_FILEIO, File::IsDirectory(DirName.c_str()), "FS: CREATE_DIR %s failed", DirName.c_str());
_dbg_assert_msg_(WII_IPC_FILEIO, Result, "FS: CREATE_DIR %s failed", DirName.c_str());
}
return FS_RESULT_OK; return FS_RESULT_OK;
} }

View File

@ -32,7 +32,7 @@
#include "ChunkFile.h" #include "ChunkFile.h"
#include "../resources/no_banner.cpp" #include "../resources/no_banner.cpp"
#define CACHE_REVISION 0x103 #define CACHE_REVISION 0x104
#define DVD_BANNER_WIDTH 96 #define DVD_BANNER_WIDTH 96
#define DVD_BANNER_HEIGHT 32 #define DVD_BANNER_HEIGHT 32
@ -104,6 +104,9 @@ GameListItem::GameListItem(const std::string& _rFileName)
m_Valid = true; m_Valid = true;
// 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(); SaveToCache();
} }
} }