mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-10 08:51:19 +12:00
FSA: Add missing path translations (#413)
This commit is contained in:
parent
76c75f767b
commit
2461464ba7
3 changed files with 13 additions and 13 deletions
|
@ -328,26 +328,26 @@ namespace iosu
|
|||
|
||||
FSStatus FSAProcessCmd_remove(FSAClient* client, FSAIpcCommand* cmd)
|
||||
{
|
||||
char* path = (char*)cmd->cmdRemove.path;
|
||||
std::string path = __FSATranslatePath(client, (char*)cmd->cmdRemove.path);
|
||||
sint32 fscStatus = FSC_STATUS_FILE_NOT_FOUND;
|
||||
fsc_remove(path, &fscStatus);
|
||||
fsc_remove(path.c_str(), &fscStatus);
|
||||
return FSA_convertFSCtoFSStatus(fscStatus);
|
||||
}
|
||||
|
||||
FSStatus FSAProcessCmd_makeDir(FSAClient* client, FSAIpcCommand* cmd)
|
||||
{
|
||||
char* path = (char*)cmd->cmdMakeDir.path;
|
||||
std::string path = __FSATranslatePath(client, (char*)cmd->cmdMakeDir.path);
|
||||
sint32 fscStatus = FSC_STATUS_FILE_NOT_FOUND;
|
||||
fsc_createDir(path, &fscStatus);
|
||||
fsc_createDir(path.c_str(), &fscStatus);
|
||||
return FSA_convertFSCtoFSStatus(fscStatus);
|
||||
}
|
||||
|
||||
FSStatus FSAProcessCmd_rename(FSAClient* client, FSAIpcCommand* cmd)
|
||||
{
|
||||
char* srcPath = (char*)cmd->cmdRename.srcPath;
|
||||
char* dstPath = (char*)cmd->cmdRename.dstPath;
|
||||
std::string srcPath = __FSATranslatePath(client, (char*)cmd->cmdRename.srcPath);
|
||||
std::string dstPath = __FSATranslatePath(client, (char*)cmd->cmdRename.dstPath);
|
||||
sint32 fscStatus = FSC_STATUS_FILE_NOT_FOUND;
|
||||
fsc_rename(srcPath, dstPath, &fscStatus);
|
||||
fsc_rename(srcPath.c_str(), dstPath.c_str(), &fscStatus);
|
||||
return FSA_convertFSCtoFSStatus(fscStatus);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue