[Scummvm-cvs-logs] SF.net SVN: scummvm:[52696] scummvm/trunk/tools/create_hugo
strangerke at users.sourceforge.net
strangerke at users.sourceforge.net
Mon Sep 13 00:54:37 CEST 2010
Revision: 52696
http://scummvm.svn.sourceforge.net/scummvm/?rev=52696&view=rev
Author: strangerke
Date: 2010-09-12 22:54:37 +0000 (Sun, 12 Sep 2010)
Log Message:
-----------
TOOLS: Add fonts in hugo.dat for DOS version
Modified Paths:
--------------
scummvm/trunk/tools/create_hugo/create_hugo.cpp
scummvm/trunk/tools/create_hugo/create_hugo.h
scummvm/trunk/tools/create_hugo/dists/msvc9/create_hugo.vcproj
Modified: scummvm/trunk/tools/create_hugo/create_hugo.cpp
===================================================================
--- scummvm/trunk/tools/create_hugo/create_hugo.cpp 2010-09-12 22:09:01 UTC (rev 52695)
+++ scummvm/trunk/tools/create_hugo/create_hugo.cpp 2010-09-12 22:54:37 UTC (rev 52696)
@@ -49,6 +49,7 @@
#include "staticparser.h"
#include "staticschedule.h"
#include "staticutil.h"
+#include "staticfont.h"
static void writeByte(FILE *fp, uint8 b) {
fwrite(&b, 1, 1, fp);
@@ -780,6 +781,29 @@
writeUint16BE(outFile, kALnewscr_2d);
writeUint16BE(outFile, 0);
+ // The following fonts info have been added to avoid temporarly the .FON
+ // used in the DOS version
+ // font5
+ nbrElem = sizeof(font5) / sizeof(byte);
+ writeUint16BE(outFile, nbrElem);
+
+ for (int j = 0; j < nbrElem; j++)
+ writeByte(outFile, font5[j]);
+
+ // font6
+ nbrElem = sizeof(font6) / sizeof(byte);
+ writeUint16BE(outFile, nbrElem);
+
+ for (int j = 0; j < nbrElem; j++)
+ writeByte(outFile, font6[j]);
+
+ // font8
+ nbrElem = sizeof(font8) / sizeof(byte);
+ writeUint16BE(outFile, nbrElem);
+
+ for (int j = 0; j < nbrElem; j++)
+ writeByte(outFile, font8[j]);
+
fclose(outFile);
return 0;
}
Modified: scummvm/trunk/tools/create_hugo/create_hugo.h
===================================================================
--- scummvm/trunk/tools/create_hugo/create_hugo.h 2010-09-12 22:09:01 UTC (rev 52695)
+++ scummvm/trunk/tools/create_hugo/create_hugo.h 2010-09-12 22:54:37 UTC (rev 52696)
@@ -31,7 +31,7 @@
#define DATAALIGNMENT 4
#define HUGO_DAT_VER_MAJ 0 // 1 byte
-#define HUGO_DAT_VER_MIN 21 // 1 byte
+#define HUGO_DAT_VER_MIN 22 // 1 byte
typedef unsigned char uint8;
typedef unsigned char byte;
Modified: scummvm/trunk/tools/create_hugo/dists/msvc9/create_hugo.vcproj
===================================================================
--- scummvm/trunk/tools/create_hugo/dists/msvc9/create_hugo.vcproj 2010-09-12 22:09:01 UTC (rev 52695)
+++ scummvm/trunk/tools/create_hugo/dists/msvc9/create_hugo.vcproj 2010-09-12 22:54:37 UTC (rev 52696)
@@ -194,6 +194,10 @@
>
</File>
<File
+ RelativePath="..\..\staticfont.h"
+ >
+ </File>
+ <File
RelativePath="..\..\staticintro.h"
>
</File>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list