[Scummvm-git-logs] scummvm master -> de0b533f2f28c9eaeba3a24b605681ed65783ce9

sdelamarre noreply at scummvm.org
Thu May 15 08:11:08 UTC 2025


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

Summary:
de0b533f2f GOB: Add an explaining comment for o7_getFreeDiskSpace() opcode (Adibou2/Sciences)


Commit: de0b533f2f28c9eaeba3a24b605681ed65783ce9
    https://github.com/scummvm/scummvm/commit/de0b533f2f28c9eaeba3a24b605681ed65783ce9
Author: Simon Delamarre (simon.delamarre14 at gmail.com)
Date: 2025-05-15T10:10:08+02:00

Commit Message:
GOB: Add an explaining comment for o7_getFreeDiskSpace() opcode (Adibou2/Sciences)

Changed paths:
    engines/gob/inter_v7.cpp


diff --git a/engines/gob/inter_v7.cpp b/engines/gob/inter_v7.cpp
index 6bff570adab..d32542aa582 100644
--- a/engines/gob/inter_v7.cpp
+++ b/engines/gob/inter_v7.cpp
@@ -1986,6 +1986,9 @@ void Inter_v7::o7_gob0x201(OpGobParams &params) {
 }
 
 void Inter_v7::o7_getFreeDiskSpace(OpGobParams &params) {
+	// This opcode is called by the game scripts to check if there is enough free space on the hard disk, before
+	// copying some data from the CD (e.g. when starting Adibou2/Sciences for the first time).
+	// Those copies are a no-op in ScummVM, so we just return a value high enough to make the game scripts happy.
 	uint16 varIndex = _vm->_game->_script->readUint16();
 	WRITE_VAR(varIndex, 1000000000); // HACK
 }




More information about the Scummvm-git-logs mailing list