From f656ed2974175a45a1557300d8db91c1fddbba18 Mon Sep 17 00:00:00 2001 From: Arnaud Boutonné Date: Sun, 12 Sep 2010 22:54:37 +0000 Subject: TOOLS: Add fonts in hugo.dat for DOS version svn-id: r52696 --- tools/create_hugo/create_hugo.cpp | 24 ++++++++++++++++++++++++ tools/create_hugo/create_hugo.h | 2 +- tools/create_hugo/dists/msvc9/create_hugo.vcproj | 4 ++++ 3 files changed, 29 insertions(+), 1 deletion(-) (limited to 'tools/create_hugo') diff --git a/tools/create_hugo/create_hugo.cpp b/tools/create_hugo/create_hugo.cpp index 0f460c9268..71df07468b 100644 --- a/tools/create_hugo/create_hugo.cpp +++ b/tools/create_hugo/create_hugo.cpp @@ -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 @@ int main(int argc, char *argv[]) { 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; } diff --git a/tools/create_hugo/create_hugo.h b/tools/create_hugo/create_hugo.h index 87953be55b..c891e270be 100644 --- a/tools/create_hugo/create_hugo.h +++ b/tools/create_hugo/create_hugo.h @@ -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; diff --git a/tools/create_hugo/dists/msvc9/create_hugo.vcproj b/tools/create_hugo/dists/msvc9/create_hugo.vcproj index f84c3d49d1..f6680e0280 100644 --- a/tools/create_hugo/dists/msvc9/create_hugo.vcproj +++ b/tools/create_hugo/dists/msvc9/create_hugo.vcproj @@ -193,6 +193,10 @@ RelativePath="..\..\staticengine.h" > + + -- cgit v1.2.3