mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-10 21:03:31 +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))
|
if (failSecurityCheck(nam))
|
||||||
return BR_ERROR;
|
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;
|
return BR_CONTINUE;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user