[Scummvm-git-logs] scummvm-tools master -> ee47f1038d694617c8ccf460cf5d51e1a862ea67

lephilousophe noreply at scummvm.org
Tue May 19 05:42:42 UTC 2026


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

Summary:
ee47f1038d TETRAEDGE: Tentative fix for another build failure


Commit: ee47f1038d694617c8ccf460cf5d51e1a862ea67
    https://github.com/scummvm/scummvm-tools/commit/ee47f1038d694617c8ccf460cf5d51e1a862ea67
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2026-05-19T07:42:07+02:00

Commit Message:
TETRAEDGE: Tentative fix for another build failure

Changed paths:
    engines/tetraedge/extract_obb.cpp


diff --git a/engines/tetraedge/extract_obb.cpp b/engines/tetraedge/extract_obb.cpp
index aaf1e12e..49a4b006 100644
--- a/engines/tetraedge/extract_obb.cpp
+++ b/engines/tetraedge/extract_obb.cpp
@@ -101,8 +101,13 @@ int main (int argc, char **argv) {
 			fprintf (stderr, "Unable to open %s: %s\n", fullpath.c_str(), strerror(errno));
 			return -6;
 		}
+#ifdef WIN32
+		__int64 oldoff = _ftelli64(fin);
+		_fseeki64(fin, offset, SEEK_SET);
+#else
 		off_t oldoff = ftello(fin);
 		fseeko(fin, offset, SEEK_SET);
+#endif
 		for (uint32 j = 0; j < sz; ) {
 			uint32 chunk = sizeof(buf);
 			if (chunk > sz - j)
@@ -112,7 +117,11 @@ int main (int argc, char **argv) {
 			j += chunk;
 		}
 		fclose(fout);
+#ifdef WIN32
+		_fseeki64(fin, oldoff, SEEK_SET);
+#else
 		fseeko(fin, oldoff, SEEK_SET);
+#endif
 	}
 	fclose(fin);
 




More information about the Scummvm-git-logs mailing list