summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/Src/NANDContentLoader.cpp
diff options
context:
space:
mode:
authorLPFaint99 <lpfaint99@gmail.com>2011-06-02 07:04:26 +0000
committerLPFaint99 <lpfaint99@gmail.com>2011-06-02 07:04:26 +0000
commit1fa17b7e290dd7c7d5f3fb6bd81c068d647ae84b (patch)
tree04b581ad4b3d06671bfb4a12bf588864f3b677fe /Source/Core/DiscIO/Src/NANDContentLoader.cpp
parent84906edf61e66d9d6036c40f5489ff13d7e8dacf (diff)
Potential fix for errors related to 'Not enough free blocks'
changes fs getusage to return 1 additional inode to account for the directory itself Fixes save creation for at least two games, R8XE52 (Jurassic: The Hunted), STEETR (Tetris Party Deluxe) doesnt harm save creation in any games that i tested (about 25) also it is now possible to boot a nand title by selecting the tmd file using File > Open git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7575 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DiscIO/Src/NANDContentLoader.cpp')
-rw-r--r--Source/Core/DiscIO/Src/NANDContentLoader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/DiscIO/Src/NANDContentLoader.cpp b/Source/Core/DiscIO/Src/NANDContentLoader.cpp
index 7d6d131e67..caae772283 100644
--- a/Source/Core/DiscIO/Src/NANDContentLoader.cpp
+++ b/Source/Core/DiscIO/Src/NANDContentLoader.cpp
@@ -212,7 +212,7 @@ bool CNANDContentLoader::Initialize(const std::string& _rName)
}
else
{
- SplitPath(TMDFileName, &m_Path, NULL, NULL);
+ m_Path = TMDFileName.substr(0, TMDFileName.find("title.tmd"));
}
File::IOFile pTMDFile(TMDFileName, "rb");
if (!pTMDFile)