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
This commit is contained in:
LPFaint99
2011-06-02 07:04:26 +00:00
parent 84906edf61
commit 1fa17b7e29
4 changed files with 23 additions and 9 deletions

View File

@ -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)