[Scummvm-git-logs] scummvm-tools master -> 9aee682bf175544de5fdcef5f7de66341a26e5dd

sev- sev at scummvm.org
Wed Apr 29 21:03:31 UTC 2020


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

Summary:
9aee682bf1 PRINCE: Added version and timestamp to translations.dat


Commit: 9aee682bf175544de5fdcef5f7de66341a26e5dd
    https://github.com/scummvm/scummvm-tools/commit/9aee682bf175544de5fdcef5f7de66341a26e5dd
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2020-04-29T23:03:08+02:00

Commit Message:
PRINCE: Added version and timestamp to translations.dat

Changed paths:
    engines/prince/pack_prince.cpp


diff --git a/engines/prince/pack_prince.cpp b/engines/prince/pack_prince.cpp
index c0235a591..cdbb5f9b2 100644
--- a/engines/prince/pack_prince.cpp
+++ b/engines/prince/pack_prince.cpp
@@ -20,6 +20,7 @@
  */
 
 #include <string.h>
+#include <time.h>
 #include "pack_prince.h"
 #include "common/endian.h"
 
@@ -64,6 +65,13 @@ void PackPrince::execute() {
 		_fFiles.writeUint32LE(0); // and size of files
 	}
 
+	time_t theTime;
+
+	time(&theTime);
+	char *generationDate = asctime(gmtime(&theTime));
+
+	_fFiles.print("\nv1.0\n%s\n", generationDate);
+
 	printf("Packing The Prince and the Coward text data...\n");
 
 	filesInfo[fileNr]._offset = _fFiles.pos();




More information about the Scummvm-git-logs mailing list