[Scummvm-cvs-logs] SF.net SVN: scummvm:[55102] scummvm/trunk

strangerke at users.sourceforge.net strangerke at users.sourceforge.net
Mon Jan 3 17:15:53 CET 2011


Revision: 55102
          http://scummvm.svn.sourceforge.net/scummvm/?rev=55102&view=rev
Author:   strangerke
Date:     2011-01-03 16:15:52 +0000 (Mon, 03 Jan 2011)

Log Message:
-----------
TOOLS: Add button bitmaps to create_hugo

Modified Paths:
--------------
    scummvm/trunk/dists/engine-data/hugo.dat
    scummvm/trunk/tools/create_hugo/create_hugo.cpp
    scummvm/trunk/tools/create_hugo/create_hugo.h

Added Paths:
-----------
    scummvm/trunk/tools/create_hugo/Data/
    scummvm/trunk/tools/create_hugo/Data/Btn_1.bmp
    scummvm/trunk/tools/create_hugo/Data/Btn_1_off.bmp
    scummvm/trunk/tools/create_hugo/Data/Btn_2.bmp
    scummvm/trunk/tools/create_hugo/Data/Btn_2_off.bmp
    scummvm/trunk/tools/create_hugo/Data/Btn_3.bmp
    scummvm/trunk/tools/create_hugo/Data/Btn_3_off.bmp
    scummvm/trunk/tools/create_hugo/Data/Btn_4.bmp
    scummvm/trunk/tools/create_hugo/Data/Btn_4_off.bmp
    scummvm/trunk/tools/create_hugo/Data/Btn_5.bmp
    scummvm/trunk/tools/create_hugo/Data/Btn_5_off.bmp
    scummvm/trunk/tools/create_hugo/Data/Btn_6.bmp
    scummvm/trunk/tools/create_hugo/Data/Btn_6_off.bmp
    scummvm/trunk/tools/create_hugo/Data/Btn_7.bmp
    scummvm/trunk/tools/create_hugo/Data/Btn_7_off.bmp
    scummvm/trunk/tools/create_hugo/Data/Btn_8.bmp
    scummvm/trunk/tools/create_hugo/Data/Btn_8_off.bmp
    scummvm/trunk/tools/create_hugo/Data/Btn_9.bmp
    scummvm/trunk/tools/create_hugo/Data/Btn_9_off.bmp
    scummvm/trunk/tools/create_hugo/README

Modified: scummvm/trunk/dists/engine-data/hugo.dat
===================================================================
(Binary files differ)

Added: scummvm/trunk/tools/create_hugo/Data/Btn_1.bmp
===================================================================
(Binary files differ)


Property changes on: scummvm/trunk/tools/create_hugo/Data/Btn_1.bmp
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: scummvm/trunk/tools/create_hugo/Data/Btn_1_off.bmp
===================================================================
(Binary files differ)


Property changes on: scummvm/trunk/tools/create_hugo/Data/Btn_1_off.bmp
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: scummvm/trunk/tools/create_hugo/Data/Btn_2.bmp
===================================================================
(Binary files differ)


Property changes on: scummvm/trunk/tools/create_hugo/Data/Btn_2.bmp
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: scummvm/trunk/tools/create_hugo/Data/Btn_2_off.bmp
===================================================================
(Binary files differ)


Property changes on: scummvm/trunk/tools/create_hugo/Data/Btn_2_off.bmp
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: scummvm/trunk/tools/create_hugo/Data/Btn_3.bmp
===================================================================
(Binary files differ)


Property changes on: scummvm/trunk/tools/create_hugo/Data/Btn_3.bmp
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: scummvm/trunk/tools/create_hugo/Data/Btn_3_off.bmp
===================================================================
(Binary files differ)


Property changes on: scummvm/trunk/tools/create_hugo/Data/Btn_3_off.bmp
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: scummvm/trunk/tools/create_hugo/Data/Btn_4.bmp
===================================================================
(Binary files differ)


Property changes on: scummvm/trunk/tools/create_hugo/Data/Btn_4.bmp
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: scummvm/trunk/tools/create_hugo/Data/Btn_4_off.bmp
===================================================================
(Binary files differ)


Property changes on: scummvm/trunk/tools/create_hugo/Data/Btn_4_off.bmp
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: scummvm/trunk/tools/create_hugo/Data/Btn_5.bmp
===================================================================
(Binary files differ)


Property changes on: scummvm/trunk/tools/create_hugo/Data/Btn_5.bmp
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: scummvm/trunk/tools/create_hugo/Data/Btn_5_off.bmp
===================================================================
(Binary files differ)


Property changes on: scummvm/trunk/tools/create_hugo/Data/Btn_5_off.bmp
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: scummvm/trunk/tools/create_hugo/Data/Btn_6.bmp
===================================================================
(Binary files differ)


Property changes on: scummvm/trunk/tools/create_hugo/Data/Btn_6.bmp
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: scummvm/trunk/tools/create_hugo/Data/Btn_6_off.bmp
===================================================================
(Binary files differ)


Property changes on: scummvm/trunk/tools/create_hugo/Data/Btn_6_off.bmp
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: scummvm/trunk/tools/create_hugo/Data/Btn_7.bmp
===================================================================
(Binary files differ)


Property changes on: scummvm/trunk/tools/create_hugo/Data/Btn_7.bmp
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: scummvm/trunk/tools/create_hugo/Data/Btn_7_off.bmp
===================================================================
(Binary files differ)


Property changes on: scummvm/trunk/tools/create_hugo/Data/Btn_7_off.bmp
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: scummvm/trunk/tools/create_hugo/Data/Btn_8.bmp
===================================================================
(Binary files differ)


Property changes on: scummvm/trunk/tools/create_hugo/Data/Btn_8.bmp
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: scummvm/trunk/tools/create_hugo/Data/Btn_8_off.bmp
===================================================================
(Binary files differ)


Property changes on: scummvm/trunk/tools/create_hugo/Data/Btn_8_off.bmp
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: scummvm/trunk/tools/create_hugo/Data/Btn_9.bmp
===================================================================
(Binary files differ)


Property changes on: scummvm/trunk/tools/create_hugo/Data/Btn_9.bmp
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: scummvm/trunk/tools/create_hugo/Data/Btn_9_off.bmp
===================================================================
(Binary files differ)


Property changes on: scummvm/trunk/tools/create_hugo/Data/Btn_9_off.bmp
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: scummvm/trunk/tools/create_hugo/README
===================================================================
--- scummvm/trunk/tools/create_hugo/README	                        (rev 0)
+++ scummvm/trunk/tools/create_hugo/README	2011-01-03 16:15:52 UTC (rev 55102)
@@ -0,0 +1,7 @@
+This tool creates hugo.dat. 
+This file contains all the hardcoded strings, logic, fonts, and bitmaps and 
+is used by the engine depending on the version of the game started.
+
+In order to work properly, the content of the DATA sub-directory has to be
+copy next to the executable.
+


Property changes on: scummvm/trunk/tools/create_hugo/README
___________________________________________________________________
Added: svn:mime-type
   + text/plain
Added: svn:keywords
   + Date Rev Author URL Id
Added: svn:eol-style
   + native

Modified: scummvm/trunk/tools/create_hugo/create_hugo.cpp
===================================================================
--- scummvm/trunk/tools/create_hugo/create_hugo.cpp	2011-01-03 12:48:28 UTC (rev 55101)
+++ scummvm/trunk/tools/create_hugo/create_hugo.cpp	2011-01-03 16:15:52 UTC (rev 55102)
@@ -847,6 +847,281 @@
 	for (int j = 0; j < nbrElem; j++)
 		writeByte(outFile, font8[j]);
 
+	//bitmap images for menu
+	writeUint16BE(outFile, 18);
+
+	FILE* src_file;
+	char buf[2];
+	src_file = fopen("btn_1.bmp", "rb");
+	if (src_file == NULL) {
+		perror("btn_1.bmp");
+		return -1;
+	}
+	fseek(src_file , 0 , SEEK_END);
+	nbrElem = ftell(src_file);
+	writeUint16BE(outFile, nbrElem);
+	rewind(src_file);
+	for (int j = 0; j < nbrElem; j++) {
+		fread(buf, 1, 1, src_file);
+		writeByte(outFile, buf[0]);
+	}
+	fclose(src_file);
+
+	src_file = fopen("btn_1_off.bmp", "rb");
+	if (src_file == NULL) {
+		perror("btn_1_off.bmp");
+		return -1;
+	}
+	fseek(src_file , 0 , SEEK_END);
+	nbrElem = ftell(src_file);
+	writeUint16BE(outFile, nbrElem);
+	rewind(src_file);
+	for (int j = 0; j < nbrElem; j++) {
+		fread(buf, 1, 1, src_file);
+		writeByte(outFile, buf[0]);
+	}
+	fclose(src_file);
+
+	src_file = fopen("btn_2.bmp", "rb");
+	if (src_file == NULL) {
+		perror("btn_2.bmp");
+		return -1;
+	}
+	fseek(src_file , 0 , SEEK_END);
+	nbrElem = ftell(src_file);
+	writeUint16BE(outFile, nbrElem);
+	rewind(src_file);
+	for (int j = 0; j < nbrElem; j++) {
+		fread(buf, 1, 1, src_file);
+		writeByte(outFile, buf[0]);
+	}
+	fclose(src_file);
+
+	src_file = fopen("btn_2_off.bmp", "rb");
+	if (src_file == NULL) {
+		perror("btn_2_off.bmp");
+		return -1;
+	}
+	fseek(src_file , 0 , SEEK_END);
+	nbrElem = ftell(src_file);
+	writeUint16BE(outFile, nbrElem);
+	rewind(src_file);
+	for (int j = 0; j < nbrElem; j++) {
+		fread(buf, 1, 1, src_file);
+		writeByte(outFile, buf[0]);
+	}
+	fclose(src_file);
+
+	src_file = fopen("btn_3.bmp", "rb");
+	if (src_file == NULL) {
+		perror("btn_3.bmp");
+		return -1;
+	}
+	fseek(src_file , 0 , SEEK_END);
+	nbrElem = ftell(src_file);
+	writeUint16BE(outFile, nbrElem);
+	rewind(src_file);
+	for (int j = 0; j < nbrElem; j++) {
+		fread(buf, 1, 1, src_file);
+		writeByte(outFile, buf[0]);
+	}
+	fclose(src_file);
+
+	src_file = fopen("btn_3_off.bmp", "rb");
+	if (src_file == NULL) {
+		perror("btn_3_off.bmp");
+		return -1;
+	}
+	fseek(src_file , 0 , SEEK_END);
+	nbrElem = ftell(src_file);
+	writeUint16BE(outFile, nbrElem);
+	rewind(src_file);
+	for (int j = 0; j < nbrElem; j++) {
+		fread(buf, 1, 1, src_file);
+		writeByte(outFile, buf[0]);
+	}
+	fclose(src_file);
+
+	src_file = fopen("btn_4.bmp", "rb");
+	if (src_file == NULL) {
+		perror("btn_4.bmp");
+		return -1;
+	}
+	fseek(src_file , 0 , SEEK_END);
+	nbrElem = ftell(src_file);
+	writeUint16BE(outFile, nbrElem);
+	rewind(src_file);
+	for (int j = 0; j < nbrElem; j++) {
+		fread(buf, 1, 1, src_file);
+		writeByte(outFile, buf[0]);
+	}
+	fclose(src_file);
+
+	src_file = fopen("btn_4_off.bmp", "rb");
+	if (src_file == NULL) {
+		perror("btn_4_off.bmp");
+		return -1;
+	}
+	fseek(src_file , 0 , SEEK_END);
+	nbrElem = ftell(src_file);
+	writeUint16BE(outFile, nbrElem);
+	rewind(src_file);
+	for (int j = 0; j < nbrElem; j++) {
+		fread(buf, 1, 1, src_file);
+		writeByte(outFile, buf[0]);
+	}
+	fclose(src_file);
+
+	src_file = fopen("btn_5.bmp", "rb");
+	if (src_file == NULL) {
+		perror("btn_5.bmp");
+		return -1;
+	}
+	fseek(src_file , 0 , SEEK_END);
+	nbrElem = ftell(src_file);
+	writeUint16BE(outFile, nbrElem);
+	rewind(src_file);
+	for (int j = 0; j < nbrElem; j++) {
+		fread(buf, 1, 1, src_file);
+		writeByte(outFile, buf[0]);
+	}
+	fclose(src_file);
+
+	src_file = fopen("btn_5_off.bmp", "rb");
+	if (src_file == NULL) {
+		perror("btn_5_off.bmp");
+		return -1;
+	}
+	fseek(src_file , 0 , SEEK_END);
+	nbrElem = ftell(src_file);
+	writeUint16BE(outFile, nbrElem);
+	rewind(src_file);
+	for (int j = 0; j < nbrElem; j++) {
+		fread(buf, 1, 1, src_file);
+		writeByte(outFile, buf[0]);
+	}
+	fclose(src_file);
+
+	src_file = fopen("btn_6.bmp", "rb");
+	if (src_file == NULL) {
+		perror("btn_6.bmp");
+		return -1;
+	}
+	fseek(src_file , 0 , SEEK_END);
+	nbrElem = ftell(src_file);
+	writeUint16BE(outFile, nbrElem);
+	rewind(src_file);
+	for (int j = 0; j < nbrElem; j++) {
+		fread(buf, 1, 1, src_file);
+		writeByte(outFile, buf[0]);
+	}
+	fclose(src_file);
+
+	src_file = fopen("btn_6_off.bmp", "rb");
+	if (src_file == NULL) {
+		perror("btn_6_off.bmp");
+		return -1;
+	}
+	fseek(src_file , 0 , SEEK_END);
+	nbrElem = ftell(src_file);
+	writeUint16BE(outFile, nbrElem);
+	rewind(src_file);
+	for (int j = 0; j < nbrElem; j++) {
+		fread(buf, 1, 1, src_file);
+		writeByte(outFile, buf[0]);
+	}
+	fclose(src_file);
+
+	src_file = fopen("btn_7.bmp", "rb");
+	if (src_file == NULL) {
+		perror("btn_7.bmp");
+		return -1;
+	}
+	fseek(src_file , 0 , SEEK_END);
+	nbrElem = ftell(src_file);
+	writeUint16BE(outFile, nbrElem);
+	rewind(src_file);
+	for (int j = 0; j < nbrElem; j++) {
+		fread(buf, 1, 1, src_file);
+		writeByte(outFile, buf[0]);
+	}
+	fclose(src_file);
+
+	src_file = fopen("btn_7_off.bmp", "rb");
+	if (src_file == NULL) {
+		perror("btn_7_off.bmp");
+		return -1;
+	}
+	fseek(src_file , 0 , SEEK_END);
+	nbrElem = ftell(src_file);
+	writeUint16BE(outFile, nbrElem);
+	rewind(src_file);
+	for (int j = 0; j < nbrElem; j++) {
+		fread(buf, 1, 1, src_file);
+		writeByte(outFile, buf[0]);
+	}
+	fclose(src_file);
+
+	src_file = fopen("btn_8.bmp", "rb");
+	if (src_file == NULL) {
+		perror("btn_8.bmp");
+		return -1;
+	}
+	fseek(src_file , 0 , SEEK_END);
+	nbrElem = ftell(src_file);
+	writeUint16BE(outFile, nbrElem);
+	rewind(src_file);
+	for (int j = 0; j < nbrElem; j++) {
+		fread(buf, 1, 1, src_file);
+		writeByte(outFile, buf[0]);
+	}
+	fclose(src_file);
+
+	src_file = fopen("btn_8_off.bmp", "rb");
+	if (src_file == NULL) {
+		perror("btn_8_off.bmp");
+		return -1;
+	}
+	fseek(src_file , 0 , SEEK_END);
+	nbrElem = ftell(src_file);
+	writeUint16BE(outFile, nbrElem);
+	rewind(src_file);
+	for (int j = 0; j < nbrElem; j++) {
+		fread(buf, 1, 1, src_file);
+		writeByte(outFile, buf[0]);
+	}
+	fclose(src_file);
+
+	src_file = fopen("btn_9.bmp", "rb");
+	if (src_file == NULL) {
+		perror("btn_9.bmp");
+		return -1;
+	}
+	fseek(src_file , 0 , SEEK_END);
+	nbrElem = ftell(src_file);
+	writeUint16BE(outFile, nbrElem);
+	rewind(src_file);
+	for (int j = 0; j < nbrElem; j++) {
+		fread(buf, 1, 1, src_file);
+		writeByte(outFile, buf[0]);
+	}
+	fclose(src_file);
+
+	src_file = fopen("btn_9_off.bmp", "rb");
+	if (src_file == NULL) {
+		perror("btn_9_off.bmp");
+		return -1;
+	}
+	fseek(src_file , 0 , SEEK_END);
+	nbrElem = ftell(src_file);
+	writeUint16BE(outFile, nbrElem);
+	rewind(src_file);
+	for (int j = 0; j < nbrElem; j++) {
+		fread(buf, 1, 1, src_file);
+		writeByte(outFile, buf[0]);
+	}
+	fclose(src_file);
+
 	fclose(outFile);
 	return 0;
 }

Modified: scummvm/trunk/tools/create_hugo/create_hugo.h
===================================================================
--- scummvm/trunk/tools/create_hugo/create_hugo.h	2011-01-03 12:48:28 UTC (rev 55101)
+++ scummvm/trunk/tools/create_hugo/create_hugo.h	2011-01-03 16:15:52 UTC (rev 55102)
@@ -31,7 +31,7 @@
 #define DATAALIGNMENT 4
 
 #define HUGO_DAT_VER_MAJ 0  // 1 byte
-#define HUGO_DAT_VER_MIN 35 // 1 byte
+#define HUGO_DAT_VER_MIN 36 // 1 byte
 
 typedef unsigned char  uint8;
 typedef unsigned char  byte;


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