sceIoRename function

This commit is contained in:
Sacha
2012-11-28 04:57:30 +10:00
parent 156cfc4e6a
commit 6192bdf6df
7 changed files with 56 additions and 15 deletions

View File

@@ -177,6 +177,21 @@ bool MetaFileSystem::RmDir(const std::string &dirname)
}
}
bool MetaFileSystem::RenameFile(const std::string &from, const std::string &to)
{
std::string of;
std::string rf;
IFileSystem *system;
if (MapFilePath(from, of, &system) && MapFilePath(to, rf, &system))
{
return system->RenameFile(of, rf);
}
else
{
return false;
}
}
bool MetaFileSystem::DeleteFile(const std::string &filename)
{
std::string of;