diff options
author | Arnaud Boutonné | 2010-09-12 22:54:37 +0000 |
---|---|---|
committer | Arnaud Boutonné | 2010-09-12 22:54:37 +0000 |
commit | f656ed2974175a45a1557300d8db91c1fddbba18 (patch) | |
tree | 54c0a6c8ef26f9636db9287fae1b5b2c291be36d /tools/create_hugo/create_hugo.cpp | |
parent | c447b99d4e8947197aa4600f74371017da9e88b4 (diff) | |
download | scummvm-rg350-f656ed2974175a45a1557300d8db91c1fddbba18.tar.gz scummvm-rg350-f656ed2974175a45a1557300d8db91c1fddbba18.tar.bz2 scummvm-rg350-f656ed2974175a45a1557300d8db91c1fddbba18.zip |
TOOLS: Add fonts in hugo.dat for DOS version
svn-id: r52696
Diffstat (limited to 'tools/create_hugo/create_hugo.cpp')
-rw-r--r-- | tools/create_hugo/create_hugo.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
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; } |