[Scummvm-git-logs] scummvm master -> 35eedf421aaef74595394ec2f60ad9818808abc8

sev- sev at scummvm.org
Sat Jun 26 20:00:34 UTC 2021


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
35eedf421a SLUDGE: Avoid usage of remove()


Commit: 35eedf421aaef74595394ec2f60ad9818808abc8
    https://github.com/scummvm/scummvm/commit/35eedf421aaef74595394ec2f60ad9818808abc8
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2021-06-26T22:00:14+02:00

Commit Message:
SLUDGE: Avoid usage of remove()

Changed paths:
    engines/sludge/builtin.cpp


diff --git a/engines/sludge/builtin.cpp b/engines/sludge/builtin.cpp
index ae51b11605..03f94e26dd 100644
--- a/engines/sludge/builtin.cpp
+++ b/engines/sludge/builtin.cpp
@@ -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;
 }




More information about the Scummvm-git-logs mailing list