mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-10 12:55:24 +00:00
SLUDGE: Avoid usage of remove()
This commit is contained in:
parent
7eb3b7f909
commit
35eedf421a
@ -2097,7 +2097,7 @@ builtIn(renameFile) {
|
||||
if (failSecurityCheck(nam))
|
||||
return BR_ERROR;
|
||||
|
||||
fun->reg.setVariable(SVT_INT, rename(nam.c_str(), newnam.c_str()));
|
||||
fun->reg.setVariable(SVT_INT, !g_system->getSavefileManager()->renameSavefile(nam.c_str(), newnam.c_str()));
|
||||
|
||||
return BR_CONTINUE;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user