[Scummvm-cvs-logs] scummvm master -> b34e776e517b893d3cc140e7282a99026c2500f8

bluegr md5 at scummvm.org
Sun May 15 10:27:42 CEST 2011


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:
b34e776e51 SWORD25 (LUA): Clarified the use of os_remove()


Commit: b34e776e517b893d3cc140e7282a99026c2500f8
    https://github.com/scummvm/scummvm/commit/b34e776e517b893d3cc140e7282a99026c2500f8
Author: md5 (md5 at scummvm.org)
Date: 2011-05-15T01:25:46-07:00

Commit Message:
SWORD25 (LUA): Clarified the use of os_remove()

Changed paths:
    engines/sword25/util/lua/loslib.cpp



diff --git a/engines/sword25/util/lua/loslib.cpp b/engines/sword25/util/lua/loslib.cpp
index 51266b5..de96860 100644
--- a/engines/sword25/util/lua/loslib.cpp
+++ b/engines/sword25/util/lua/loslib.cpp
@@ -26,8 +26,11 @@ static int os_execute (lua_State *L) {
 
 
 static int os_remove (lua_State *L) {
-  // Removed in ScummVM, does nothing. It's called when loading games (perhaps
-  // to delete the savegame thumbnail?)
+  // Non-portable call that deletes a file. Removed in ScummVM.
+  // This call is invoked in sword25 when loading games in order to remove the
+  // temporary savegame thumbnail that the original engine code created. We
+  // embed the thumbnail in the savegame instead, so this call is not needed at
+  // all.
   return 1;
 }
 






More information about the Scummvm-git-logs mailing list