[Scummvm-git-logs] scummvm master -> 9f1facb2215be57a69216879ae2b3adcd4c5859b

rvanlaar noreply at scummvm.org
Sat Jan 14 12:40:57 UTC 2023


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:
9f1facb221 DIRECTOR: LINGO: TESTS: open FileIO test for win


Commit: 9f1facb2215be57a69216879ae2b3adcd4c5859b
    https://github.com/scummvm/scummvm/commit/9f1facb2215be57a69216879ae2b3adcd4c5859b
Author: Roland van Laar (roland at rolandvanlaar.nl)
Date: 2023-01-14T13:40:45+01:00

Commit Message:
DIRECTOR: LINGO: TESTS: open FileIO test for win

Guard agains bug where the path is stripped incorrectly for:

    `openXLib("C:\fileio.dll")`

The `.dll` part isn't stripped correctly when trying to open the files.

Changed paths:
    engines/director/lingo/tests/XObjects.lingo


diff --git a/engines/director/lingo/tests/XObjects.lingo b/engines/director/lingo/tests/XObjects.lingo
index b4e0dde762d..9ae380c5e1c 100644
--- a/engines/director/lingo/tests/XObjects.lingo
+++ b/engines/director/lingo/tests/XObjects.lingo
@@ -35,3 +35,7 @@ set FileIO = "test"
 showGlobals() -- FileIO should be listed
 clearGlobals()
 scummVMAssert(voidp(FileIO)) -- FileIO should be cleared
+
+-- test path handling for opening FileIO on win
+openXLib("C:\fileio.dll")
+scummVMAsset(objectp(FileIO))




More information about the Scummvm-git-logs mailing list