diff options
| author | death2droid <death2droid@gmail.com> | 2009-05-15 12:28:32 +0000 |
|---|---|---|
| committer | death2droid <death2droid@gmail.com> | 2009-05-15 12:28:32 +0000 |
| commit | b6cfaf56539cf0fc5a7dc2a552ded30683428c3e (patch) | |
| tree | 1f1c9a98933d052783ace7af32b8ae47f779a3f4 /Source/Core/VideoCommon/Src/HiresTextures.cpp | |
| parent | c684a77394435e97d89e23323e22d4296e7de182 (diff) | |
Added features to hires loading and texture dumping so it now dumps the files into a specific folder like for Mario Party 7 the textures will be dumped into a folder named Mario Party 7.
For texture loading it now only checks the folder with the same name as the game.
Like same as before moddified texture of Mario Party 7 would go in the folder named Mario Party 7 :P
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3241 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/VideoCommon/Src/HiresTextures.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/Src/HiresTextures.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/Src/HiresTextures.cpp b/Source/Core/VideoCommon/Src/HiresTextures.cpp index 61dbe7b57f..d0526b11e8 100644 --- a/Source/Core/VideoCommon/Src/HiresTextures.cpp +++ b/Source/Core/VideoCommon/Src/HiresTextures.cpp @@ -30,10 +30,16 @@ namespace HiresTextures std::map<std::string, std::string> textureMap;
-void Init(const char *gameCode)
+void Init(const char *gameCode,const char *gameName)
{
+ static bool bCheckedDir;
+
CFileSearch::XStringVector Directories;
- Directories.push_back(std::string(FULL_HIRES_TEXTURES_DIR));
+ //Directories.push_back(std::string(FULL_HIRES_TEXTURES_DIR));
+ char szDir[MAX_PATH];
+ sprintf(szDir,"%s/%s",FULL_HIRES_TEXTURES_DIR,gameName);
+ Directories.push_back(std::string(szDir));
+
for (u32 i = 0; i < Directories.size(); i++)
{
|
