diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2007-11-06 10:26:13 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2007-11-06 10:26:13 +0000 |
commit | 314ce217e2858ab8b10cdfddd60ea4089f9e1c2c (patch) | |
tree | e326a66a1efe167618c3855bada140172066c502 /games/xlogical | |
parent | 8f21fec38ee1e0b8430109d61fd75b38f06e7f1d (diff) | |
download | ports-314ce217e2858ab8b10cdfddd60ea4089f9e1c2c.tar.gz ports-314ce217e2858ab8b10cdfddd60ea4089f9e1c2c.zip |
Notes
Diffstat (limited to 'games/xlogical')
-rw-r--r-- | games/xlogical/Makefile | 32 | ||||
-rw-r--r-- | games/xlogical/files/patch-Makefile.am | 10 | ||||
-rw-r--r-- | games/xlogical/files/patch-acinclude.m4 | 11 | ||||
-rw-r--r-- | games/xlogical/files/patch-gamelogic.cpp | 499 | ||||
-rw-r--r-- | games/xlogical/files/patch-gpl.h | 11 | ||||
-rw-r--r-- | games/xlogical/files/patch-graph_images.cpp | 11 | ||||
-rw-r--r-- | games/xlogical/files/patch-levelmap.cpp | 20 | ||||
-rw-r--r-- | games/xlogical/files/patch-mapedit.cpp | 88 | ||||
-rw-r--r-- | games/xlogical/files/patch-menuentry.cpp | 28 | ||||
-rw-r--r-- | games/xlogical/files/patch-music_files.cpp | 11 | ||||
-rw-r--r-- | games/xlogical/files/patch-sound_files.cpp | 11 |
11 files changed, 713 insertions, 19 deletions
diff --git a/games/xlogical/Makefile b/games/xlogical/Makefile index 49e174e0ed25..b810e82c80c7 100644 --- a/games/xlogical/Makefile +++ b/games/xlogical/Makefile @@ -5,20 +5,20 @@ # $FreeBSD$ # -PORTNAME= xlogical -PORTVERSION= 1.0p8 -CATEGORIES= games -MASTER_SITES= http://changeling.ixionstudios.com/xlogical/downloads/ \ - http://freebsd.portsreview.info/downloads/ -DISTNAME= ${PORTNAME}-${PORTVERSION:S/p/-/} +PORTNAME= xlogical +PORTVERSION= 1.0p8 +CATEGORIES= games +MASTER_SITES= http://changeling.ixionstudios.com/xlogical/downloads/ \ + http://freebsd.portsreview.info/downloads/ +DISTNAME= ${PORTNAME}-${PORTVERSION:S/p/-/} -MAINTAINER= aaron@baugher.biz -COMMENT= Remake of the classic puzzle game Logical +MAINTAINER= aaron@baugher.biz +COMMENT= Remake of the classic puzzle game Logical -USE_BZIP2= yes -USE_GMAKE= yes -USE_SDL= sdl image mixer -GNU_CONFIGURE= yes +USE_BZIP2= yes +USE_GMAKE= yes +USE_SDL= sdl image mixer +GNU_CONFIGURE= yes CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL} @@ -30,10 +30,4 @@ post-install: ${RM} ${WRKSRC}/LICENSE ${CP} ${WRKSRC}/[A-Z][A-Z]* ${DOCSDIR} -.include <bsd.port.pre.mk> - -.if ${OSVERSION} >= 700042 -BROKEN= Does not compile with GCC 4.2 -.endif - -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/games/xlogical/files/patch-Makefile.am b/games/xlogical/files/patch-Makefile.am new file mode 100644 index 000000000000..8c4770745ca0 --- /dev/null +++ b/games/xlogical/files/patch-Makefile.am @@ -0,0 +1,10 @@ +--- Makefile.am.orig 2007-11-05 20:42:20.000000000 +0100 ++++ Makefile.am 2007-11-05 20:42:57.000000000 +0100 +@@ -7,6 +7,7 @@ + FILEOWNER = bin + FILEGROUP = games + install-exec-am: $(bin_PROGRAMS) ++ cp ${bin_PROGRAMS} ${bindir}/xlogical + -chown $(FILEOWNER):$(FILEGROUP) $(bindir)/xlogical + chmod 2755 $(bindir)/xlogical + install-data-am: $(DATAFILES) $(SCOREFILE) diff --git a/games/xlogical/files/patch-acinclude.m4 b/games/xlogical/files/patch-acinclude.m4 new file mode 100644 index 000000000000..854f98a99451 --- /dev/null +++ b/games/xlogical/files/patch-acinclude.m4 @@ -0,0 +1,11 @@ +--- acinclude.m4.orig 2000-10-07 15:39:52.000000000 +0200 ++++ acinclude.m4 2007-11-05 23:59:45.000000000 +0100 +@@ -8,7 +8,7 @@ + dnl AM_PATH_SDL([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]]) + dnl Test for SDL, and define SDL_CFLAGS and SDL_LIBS + dnl +-AC_DEFUN(AM_PATH_SDL, ++AC_DEFUN([AM_PATH_SDL], + [dnl + dnl Get the cflags and libraries from the sdl-config script + dnl diff --git a/games/xlogical/files/patch-gamelogic.cpp b/games/xlogical/files/patch-gamelogic.cpp new file mode 100644 index 000000000000..8651875db2cd --- /dev/null +++ b/games/xlogical/files/patch-gamelogic.cpp @@ -0,0 +1,499 @@ +--- gamelogic.cpp.orig 2001-08-01 02:59:40.000000000 +0200 ++++ gamelogic.cpp 2007-11-05 23:50:06.000000000 +0100 +@@ -1,4 +1,4 @@ +-////////////////////////////////////////////////////////////////////// ++///////////////////////////////////////////////////////////////////// + // XLogical - A puzzle game + // + // Copyright (C) 2000 Neil Brown, Tom Warkentin +@@ -154,7 +154,7 @@ + levelFile = NULL; + } + +- currentMap = NULL; ++ currentMap = gameLevels.end( ); + + playerName = new char[32+1]; + strcpy( playerName, "nobody" ); +@@ -193,14 +193,14 @@ + livesLeft = 3; + + modScroller.set_bounds( 32, 256, 40 ); +- modScroller.set_string( " " ); ++ modScroller.set_string((char *) " " ); + + infoScroller.set_bounds( 384, 607, 40 ); +- infoScroller.set_string( " " ); ++ infoScroller.set_string((char *) " " ); + read_hiscores( ); + + scrFont.set_font_info( BMP_FONT_3, scrFontWidths, 26, 2, ' ', '`' ); +- infoScroller.set_string( " " ); ++ infoScroller.set_string((char *) " " ); + } + + +@@ -1441,7 +1441,7 @@ + static int renderLineAbout = 0; + static int blankLineAbout = 0; + +- static char *credits[] = { ++ static const char *credits[] = { + "XLOGICAL", + " ", + " ", +@@ -1505,7 +1505,7 @@ + // Blink on and off here. + if( blinker ) + { +- scrFont.render_string_center( "BALL TIMEOUT", 0, PLAYWIDTH, 50 ); ++ scrFont.render_string_center((char *) "BALL TIMEOUT", 0, PLAYWIDTH, 50 ); + } + break; + case MAP_TIMEOUT: +@@ -1516,15 +1516,14 @@ + graphDriver->graph_main_height() ); + if( blinker ) + { +- scrFont.render_string_center( "OUT OF TIME", 0, PLAYWIDTH, 50 ); ++ scrFont.render_string_center((char *) "OUT OF TIME", 0, PLAYWIDTH, 50 ); + } + break; + case WON: + // Blink our congrats + if( blinker ) + { +- scrFont.render_string_center( +- "CONGRATULATIONS!! YOU WON", 0, PLAYWIDTH, 50 ); ++ scrFont.render_string_center((char *) "CONGRATULATIONS!! YOU WON", 0, PLAYWIDTH, 50 ); + } else { + + // Clear the blinker area +@@ -1536,7 +1535,7 @@ + + if (gEnteringHiScore) + { +- scrFont.render_string_center("ENTER YOUR NAME", 0, PLAYWIDTH, 200); ++ scrFont.render_string_center((char *) "ENTER YOUR NAME", 0, PLAYWIDTH, 200); + static int wonBlinkCount = 3; + static bool wonOnOffFlag = true; + if (wonBlinkCount <= 0) +@@ -1558,7 +1557,7 @@ + { + int len = scrFont.stringLen( buf ); + int x = (PLAYWIDTH - len ) / 2 + len; +- scrFont.render_string( "-", x, 250 ); ++ scrFont.render_string((char *) "-", x, 250 ); + } + } else { + +@@ -1577,7 +1576,7 @@ + // We're not on the last line yet so keep drawing stuff + // Draw our line of text starting at the bottom + scrFont.render_string_center( +- credits[renderLine], 0, PLAYWIDTH, ++ (char *)credits[renderLine], 0, PLAYWIDTH, + CREDITS_SCROLL_BASE + CREDITS_SCROLL_HEIGHT - scrollPixSkip ); + } + +@@ -1620,20 +1619,20 @@ + graphDriver->graph_main_width(), + graphDriver->graph_main_height() ); + // Do some scoring here..... +- scrFont.render_string_center( "WELL DONE", 0, PLAYWIDTH, 5 ); +- scrFont.render_string_center( "LEVEL COMPLETED", 0, PLAYWIDTH, 50 ); +- scrFont.render_string( "SPINNERS", 50, 150 ); ++ scrFont.render_string_center((char *) "WELL DONE", 0, PLAYWIDTH, 5 ); ++ scrFont.render_string_center((char *) "LEVEL COMPLETED", 0, PLAYWIDTH, 50 ); ++ scrFont.render_string((char *) "SPINNERS", 50, 150 ); + + sprintf( cstr, "%d", CURMAP->spinnersOnMap ); + scrFont.render_string_rjust( cstr, PLAYWIDTH - 50 , 150 ); + + if( CURMAP->haveMapTimer ) + { +- scrFont.render_string( "SECONDS LEFT", 50, 200 ); ++ scrFont.render_string((char *) "SECONDS LEFT", 50, 200 ); + sprintf( cstr, "%ld", spareTime / kTicksInSecond ); + scrFont.render_string_rjust( cstr, PLAYWIDTH - 50, 200 ); + +- scrFont.render_string( "TIME BONUS", 50, 250 ); ++ scrFont.render_string((char *) "TIME BONUS", 50, 250 ); + sprintf( cstr, "%ld", currentGame->bonus ); + scrFont.render_string_rjust( cstr, PLAYWIDTH - 50, 250 ); + +@@ -1652,12 +1651,12 @@ + currentGame->bonus = 0; + } + } else { +- scrFont.render_string( "NO TIME LIMIT", 50, 200 ); +- scrFont.render_string( "NO TIME BONUS", 50, 250 ); ++ scrFont.render_string((char *) "NO TIME LIMIT", 50, 200 ); ++ scrFont.render_string((char *) "NO TIME BONUS", 50, 250 ); + currentGame->bonus = 0; + } + +- scrFont.render_string( "SCORE", 50, 300 ); ++ scrFont.render_string((char *) "SCORE", 50, 300 ); + sprintf( cstr, "%ld", currentGame->score ); + scrFont.render_string_rjust( cstr, PLAYWIDTH - 50, 300 ); + +@@ -1676,12 +1675,12 @@ + sprintf( cstr, "%s", (*currentGame->currentMap)->mapName ); + scrFont.render_string_center( cstr, 5, PLAYWIDTH - 5, 20 ); + +- scrFont.render_string( "PASSWORD" , 50, 100 ); ++ scrFont.render_string((char *) "PASSWORD" , 50, 100 ); + sprintf( cstr, "%s", encrypt( + (*currentGame->currentMap)->mapName, currentGame->encryptName ) ); + scrFont.render_string_rjust( cstr, PLAYWIDTH - 50, 100 ); + +- scrFont.render_string( "SPINNERS" , 50, 150 ); ++ scrFont.render_string((char *) "SPINNERS" , 50, 150 ); + sprintf( cstr, "%d", CURMAP->spinnersOnMap ); + scrFont.render_string_rjust( cstr, PLAYWIDTH - 50, 150 ); + +@@ -1690,23 +1689,23 @@ + long totalSecs = CURMAP->mapTimeLimit / kTicksInSecond; + long mins = totalSecs / 60; + long secs = totalSecs % 60; +- scrFont.render_string( "MAP TIME" , 50, 200 ); ++ scrFont.render_string((char *) "MAP TIME" , 50, 200 ); + sprintf( cstr, "%02ld:%02ld", mins, secs ); + scrFont.render_string_rjust( cstr, PLAYWIDTH - 50, 200 ); + } else { +- scrFont.render_string( "NO TIME LIMIT" , 50, 200 ); ++ scrFont.render_string((char *) "NO TIME LIMIT" , 50, 200 ); + } + + { + long totalSecs = CURMAP->ballTimeLimit / kTicksInSecond; + long mins = totalSecs / 60; + long secs = totalSecs % 60; +- scrFont.render_string( "BALL TIME" , 50, 250 ); ++ scrFont.render_string((char *) "BALL TIME" , 50, 250 ); + sprintf( cstr, "%02ld:%02ld", mins, secs ); + scrFont.render_string_rjust( cstr, PLAYWIDTH - 50, 250 ); + } + +- scrFont.render_string( "LIVES LEFT" , 50, 300 ); ++ scrFont.render_string((char *) "LIVES LEFT" , 50, 300 ); + sprintf( cstr, "%d", currentGame->livesLeft ); + scrFont.render_string_rjust( cstr, PLAYWIDTH - 50, 300 ); + +@@ -1717,10 +1716,10 @@ + 0, 0, + graphDriver->graph_main_width(), + graphDriver->graph_main_height() ); +- scrFont.render_string_center( "GAME OVER", 0, PLAYWIDTH, 50 ); ++ scrFont.render_string_center((char *) "GAME OVER", 0, PLAYWIDTH, 50 ); + if (gEnteringHiScore) + { +- scrFont.render_string_center("ENTER YOUR NAME", 0, PLAYWIDTH, 200); ++ scrFont.render_string_center((char *) "ENTER YOUR NAME", 0, PLAYWIDTH, 200); + static int blinkCount = 3; + static bool onOffFlag = true; + if (blinkCount <= 0) +@@ -1737,7 +1736,7 @@ + { + int len = scrFont.stringLen( buf ); + int x = (PLAYWIDTH - len ) / 2 + len; +- scrFont.render_string( "-", x, 250 ); ++ scrFont.render_string((char *) "-", x, 250 ); + } + } + break; +@@ -1747,7 +1746,7 @@ + 0, 0, + graphDriver->graph_main_width(), + graphDriver->graph_main_height() ); +- scrFont.render_string_center( "HIGH SCORES", 0, PLAYWIDTH, 10 ); ++ scrFont.render_string_center((char *) "HIGH SCORES", 0, PLAYWIDTH, 10 ); + + // Draw the high scores + for( i = 0; i < NUM_HI_SCORES; i++ ) +@@ -1760,24 +1759,24 @@ + } + break; + case ABOUT: +- scrFont.render_string_center( "ABOUT XLOGICAL", 0, PLAYWIDTH, 30 ); ++ scrFont.render_string_center((char *) "ABOUT XLOGICAL", 0, PLAYWIDTH, 30 ); + j = 100; +- scrFont.render_string( "CODERS", 50, j ); +- scrFont.render_string_rjust( "NEIL BROWN", PLAYWIDTH - 50, j ); ++ scrFont.render_string((char *) "CODERS", 50, j ); ++ scrFont.render_string_rjust((char *) "NEIL BROWN", PLAYWIDTH - 50, j ); + j += 35; +- scrFont.render_string_rjust( "TOM WARKENTIN", PLAYWIDTH - 50, j ); ++ scrFont.render_string_rjust((char *) "TOM WARKENTIN", PLAYWIDTH - 50, j ); + j += 35; + j += 35; +- scrFont.render_string( "GRAPHICS", 50, j ); +- scrFont.render_string_rjust( "SLOANE MUSCROFT", PLAYWIDTH - 50, j ); ++ scrFont.render_string((char *) "GRAPHICS", 50, j ); ++ scrFont.render_string_rjust((char *) "SLOANE MUSCROFT", PLAYWIDTH - 50, j ); + +- modScroller.render_string_center( ++ modScroller.render_string_center((char *) + "XLOGICAL V1.0 COPYRIGHT (C) 2000 NEIL BROWN, TOM WARKENTIN", + 0, PLAYWIDTH, 280 ); +- modScroller.render_string_center( ++ modScroller.render_string_center((char *) + "XLOGICAL COMES WITH ABSOLUTELY NO WARRANTY;", + 0, PLAYWIDTH, 290 ); +- modScroller.render_string_center( ++ modScroller.render_string_center((char *) + "XLOGICAL IS DISTRIBUTED UNDER THE GNU PUBLIC LICENSE", + 0, PLAYWIDTH, 300 ); + +@@ -1796,7 +1795,7 @@ + 1 ); + + +- modScroller.render_string_center( ++ modScroller.render_string_center((char *) + "GNU PUBLIC LICENSE", + 0, PLAYWIDTH, LICENSE_SCROLL_BASE - 13 ); + +@@ -1815,7 +1814,7 @@ + // We're not on the last line yet so keep drawing stuff + // Draw our line of text starting at the bottom + modScroller.render_string_center( +- gpl[renderLineAbout], 0, PLAYWIDTH, ++ (char *)gpl[renderLineAbout], 0, PLAYWIDTH, + LICENSE_SCROLL_BASE + LICENSE_SCROLL_HEIGHT - scrollPixSkipAbout ); + } + +@@ -1870,12 +1869,12 @@ + 0, 0, + graphDriver->graph_main_width(), + graphDriver->graph_main_height() ); +- scrFont.render_string_center( "HOW DID YOU GET HERE???", 0, ++ scrFont.render_string_center((char *) "HOW DID YOU GET HERE???", 0, + PLAYWIDTH, 40 ); + break; + } + +- scrFont.render_string_center( "PRESS SPACE TO CONTINUE", 0, PLAYWIDTH, 440 ); ++ scrFont.render_string_center((char *) "PRESS SPACE TO CONTINUE", 0, PLAYWIDTH, 440 ); + } + + +@@ -1891,28 +1890,28 @@ + graphDriver->graph_main_width(), + graphDriver->graph_main_height() ); + +- scrFont.render_string_center( "HOW TO PLAY", 0, PLAYWIDTH, 5 ); ++ scrFont.render_string_center((char *) "HOW TO PLAY", 0, PLAYWIDTH, 5 ); + + xoff = 10; + yoff = 50; + graphDriver->graph_draw( BMP_BACK_GAME, xoff, yoff ); + graphDriver->graph_draw( BMP_TELEPORT_BASE, xoff, yoff ); + graphDriver->graph_draw( BMP_TELEPORT_UD, xoff, yoff ); +- modScroller.render_string( "-- Teleporter --", xoff+70, yoff+5 ); +- modScroller.render_string( "The ball will be", xoff+70, yoff+15 ); +- modScroller.render_string( "transported to", xoff+70, yoff+ 25 ); +- modScroller.render_string( "the matching", xoff+70, yoff+35); +- modScroller.render_string( "teleporter tile.", xoff+70, yoff+45 ); ++ modScroller.render_string((char *) "-- Teleporter --", xoff+70, yoff+5 ); ++ modScroller.render_string((char *) "The ball will be", xoff+70, yoff+15 ); ++ modScroller.render_string((char *) "transported to", xoff+70, yoff+ 25 ); ++ modScroller.render_string((char *) "the matching", xoff+70, yoff+35); ++ modScroller.render_string((char *) "teleporter tile.", xoff+70, yoff+45 ); + + yoff += 70 ; + graphDriver->graph_draw( BMP_BACK_GAME, xoff, yoff ); + graphDriver->graph_draw( BMP_BALLMOVE5_5, xoff + 12, yoff + 5 ); +- modScroller.render_string( "--Moving Balls--", xoff+70, yoff+5 ); +- modScroller.render_string( "Colored bars show", xoff+70, yoff+15 ); +- modScroller.render_string( "how many balls are", xoff+70, yoff+ 25 ); +- modScroller.render_string( "in motion. When it", xoff+70, yoff+35); +- modScroller.render_string( "is full, no more", xoff+70, yoff+45 ); +- modScroller.render_string( "balls can be moved.", xoff+70, yoff+55 ); ++ modScroller.render_string((char *) "--Moving Balls--", xoff+70, yoff+5 ); ++ modScroller.render_string((char *) "Colored bars show", xoff+70, yoff+15 ); ++ modScroller.render_string((char *) "how many balls are", xoff+70, yoff+ 25 ); ++ modScroller.render_string((char *) "in motion. When it", xoff+70, yoff+35); ++ modScroller.render_string((char *) "is full, no more", xoff+70, yoff+45 ); ++ modScroller.render_string((char *) "balls can be moved.", xoff+70, yoff+55 ); + + yoff += 70 ; + graphDriver->graph_draw( BMP_BACK_GAME, xoff, yoff ); +@@ -1921,11 +1920,11 @@ + graphDriver->graph_draw( BMP_GEM_C2, xoff + 43, yoff + 23 ); + graphDriver->graph_draw( BMP_GEM_C3, xoff + 23, yoff + 42 ); + graphDriver->graph_draw( BMP_GEM_C4, xoff + 2, yoff + 23 ); +- modScroller.render_string( "--Pattern--", xoff+70, yoff+5 ); +- modScroller.render_string( "Shows the colors", xoff+70, yoff+15 ); +- modScroller.render_string( "of the balls in", xoff+70, yoff+ 25 ); +- modScroller.render_string( "a spinner for it", xoff+70, yoff+35); +- modScroller.render_string( "to be completed.", xoff+70, yoff+45 ); ++ modScroller.render_string((char *) "--Pattern--", xoff+70, yoff+5 ); ++ modScroller.render_string((char *) "Shows the colors", xoff+70, yoff+15 ); ++ modScroller.render_string((char *) "of the balls in", xoff+70, yoff+ 25 ); ++ modScroller.render_string((char *) "a spinner for it", xoff+70, yoff+35); ++ modScroller.render_string((char *) "to be completed.", xoff+70, yoff+45 ); + xoff = 235; + yoff = 50 ; + graphDriver->graph_draw( BMP_BACK_GAME, xoff, yoff ); +@@ -1933,98 +1932,98 @@ + graphDriver->graph_draw( BMP_GEM_C1, xoff + 23, yoff + 4 ); + graphDriver->graph_draw( BMP_GEM_C2, xoff + 23, yoff + 23 ); + graphDriver->graph_draw( BMP_GEM_C3, xoff + 23, yoff + 42 ); +- modScroller.render_string( "--Order--", xoff+70, yoff+5 ); +- modScroller.render_string( "Shows which", xoff+70, yoff+15 ); +- modScroller.render_string( "color balls", xoff+70, yoff+ 25 ); +- modScroller.render_string( "to fill the", xoff+70, yoff+35); +- modScroller.render_string( "spinner with", xoff+70, yoff+45 ); +- modScroller.render_string( "first.", xoff+70, yoff+55 ); ++ modScroller.render_string((char *) "--Order--", xoff+70, yoff+5 ); ++ modScroller.render_string((char *) "Shows which", xoff+70, yoff+15 ); ++ modScroller.render_string((char *) "color balls", xoff+70, yoff+ 25 ); ++ modScroller.render_string((char *) "to fill the", xoff+70, yoff+35); ++ modScroller.render_string((char *) "spinner with", xoff+70, yoff+45 ); ++ modScroller.render_string((char *) "first.", xoff+70, yoff+55 ); + yoff += 70 ; + graphDriver->graph_draw( BMP_BACK_GAME, xoff, yoff ); + graphDriver->graph_draw( BMP_NEXT_BASE, xoff, yoff ); + graphDriver->graph_draw( BMP_GEM_C1, xoff + 24, yoff + 24 ); +- modScroller.render_string( "--Next Ball--", xoff+70, yoff+5 ); +- modScroller.render_string( "Shows what the", xoff+70, yoff+15 ); +- modScroller.render_string( "color of the", xoff+70, yoff+ 25 ); +- modScroller.render_string( "next ball will", xoff+70, yoff+35); +- modScroller.render_string( "be.", xoff+70, yoff+45); ++ modScroller.render_string((char *) "--Next Ball--", xoff+70, yoff+5 ); ++ modScroller.render_string((char *) "Shows what the", xoff+70, yoff+15 ); ++ modScroller.render_string((char *) "color of the", xoff+70, yoff+ 25 ); ++ modScroller.render_string((char *) "next ball will", xoff+70, yoff+35); ++ modScroller.render_string((char *) "be.", xoff+70, yoff+45); + yoff += 70 ; + graphDriver->graph_draw( BMP_BACK_GAME, xoff, yoff ); + graphDriver->graph_draw( BMP_TIMER, xoff, yoff ); +- modScroller.render_string( "--Map Timer--", xoff+70, yoff+5 ); +- modScroller.render_string( "Counts down", xoff+70, yoff+15 ); +- modScroller.render_string( "the time left", xoff+70, yoff+ 25 ); +- modScroller.render_string( "to complete", xoff+70, yoff+35); +- modScroller.render_string( "the map.", xoff+70, yoff+45); ++ modScroller.render_string((char *) "--Map Timer--", xoff+70, yoff+5 ); ++ modScroller.render_string((char *) "Counts down", xoff+70, yoff+15 ); ++ modScroller.render_string((char *) "the time left", xoff+70, yoff+ 25 ); ++ modScroller.render_string((char *) "to complete", xoff+70, yoff+35); ++ modScroller.render_string((char *) "the map.", xoff+70, yoff+45); + xoff = 420; + yoff = 50 ; + graphDriver->graph_draw( BMP_BACK_GAME, xoff, yoff ); + graphDriver->graph_draw( BMP_STARTTIMER_00, xoff + 7, yoff + 8 ); +- modScroller.render_string( "--Ball Timer--", xoff+70, yoff+5 ); +- modScroller.render_string( "Indicates how", xoff+70, yoff+15 ); +- modScroller.render_string( "much time you", xoff+70, yoff+ 25 ); +- modScroller.render_string( "have to get", xoff+70, yoff+ 35 ); +- modScroller.render_string( "the ball off the", xoff+70, yoff+45); +- modScroller.render_string( "starting track.", xoff+70, yoff+55 ); ++ modScroller.render_string((char *) "--Ball Timer--", xoff+70, yoff+5 ); ++ modScroller.render_string((char *) "Indicates how", xoff+70, yoff+15 ); ++ modScroller.render_string((char *) "much time you", xoff+70, yoff+ 25 ); ++ modScroller.render_string((char *) "have to get", xoff+70, yoff+ 35 ); ++ modScroller.render_string((char *) "the ball off the", xoff+70, yoff+45); ++ modScroller.render_string((char *) "starting track.", xoff+70, yoff+55 ); + yoff += 70 ; + graphDriver->graph_draw( BMP_BACK_GAME, xoff, yoff ); + graphDriver->graph_draw( BMP_BLOCK_BASE, xoff, yoff ); + graphDriver->graph_draw( BMP_GEM_C1, xoff + 24, yoff + 24 ); +- modScroller.render_string( "--Blocker--", xoff+70, yoff+5 ); +- modScroller.render_string( "Only balls that", xoff+70, yoff+15 ); +- modScroller.render_string( "match the", xoff+70, yoff+ 25 ); +- modScroller.render_string( "blocker's color", xoff+70, yoff+35); +- modScroller.render_string( "may pass.", xoff+70, yoff+45); ++ modScroller.render_string((char *) "--Blocker--", xoff+70, yoff+5 ); ++ modScroller.render_string((char *) "Only balls that", xoff+70, yoff+15 ); ++ modScroller.render_string((char *) "match the", xoff+70, yoff+ 25 ); ++ modScroller.render_string((char *) "blocker's color", xoff+70, yoff+35); ++ modScroller.render_string((char *) "may pass.", xoff+70, yoff+45); + yoff += 70 ; + graphDriver->graph_draw( BMP_BACK_GAME, xoff, yoff ); + graphDriver->graph_draw( BMP_PAINT_BASE, xoff, yoff ); + graphDriver->graph_draw( BMP_GEM_C1, xoff + 24, yoff + 24 ); +- modScroller.render_string( "--Painter--", xoff+70, yoff+5 ); +- modScroller.render_string( "Changes the color", xoff+70, yoff+15 ); +- modScroller.render_string( "of the ball to", xoff+70, yoff+ 25 ); +- modScroller.render_string( "match", xoff+70, yoff+35); ++ modScroller.render_string((char *) "--Painter--", xoff+70, yoff+5 ); ++ modScroller.render_string((char *) "Changes the color", xoff+70, yoff+15 ); ++ modScroller.render_string((char *) "of the ball to", xoff+70, yoff+ 25 ); ++ modScroller.render_string((char *) "match", xoff+70, yoff+35); + yoff += 70 ; + xoff = 10; + yoff = 265 ; + graphDriver->graph_draw( BMP_BACK_GAME, xoff, yoff ); + graphDriver->graph_draw( BMP_NEXT_BASE, xoff, yoff ); + graphDriver->graph_draw( BMP_ARROW_R, xoff + 23, yoff + 23 ); +- modScroller.render_string( "--Oneway--", xoff+70, yoff+5 ); +- modScroller.render_string( "Balls may only", xoff+70, yoff+15 ); +- modScroller.render_string( "travel in the", xoff+70, yoff+ 25 ); +- modScroller.render_string( "direction of the", xoff+70, yoff+35); +- modScroller.render_string( "arrow.", xoff+70, yoff+45 ); ++ modScroller.render_string((char *) "--Oneway--", xoff+70, yoff+5 ); ++ modScroller.render_string((char *) "Balls may only", xoff+70, yoff+15 ); ++ modScroller.render_string((char *) "travel in the", xoff+70, yoff+ 25 ); ++ modScroller.render_string((char *) "direction of the", xoff+70, yoff+35); ++ modScroller.render_string((char *) "arrow.", xoff+70, yoff+45 ); + xoff = 235; + yoff = 265 ; + graphDriver->graph_draw( BMP_BACK_GAME, xoff, yoff ); + graphDriver->graph_draw( BMP_SPIN_0, xoff, yoff ); +- modScroller.render_string( "--Spinner--", xoff+70, yoff+5 ); +- modScroller.render_string( "Must be filled with balls of the", xoff+70, yoff+15 ); +- modScroller.render_string( "same color or following the order", xoff+70, yoff+ 25 ); +- modScroller.render_string( "and pattern tiles. Right-click", xoff+70, yoff+35); +- modScroller.render_string( "to spin. Left-click on a ball to", xoff+70, yoff+45 ); +- modScroller.render_string( "eject it.", xoff+70, yoff+55 ); ++ modScroller.render_string((char *) "--Spinner--", xoff+70, yoff+5 ); ++ modScroller.render_string((char *) "Must be filled with balls of the", xoff+70, yoff+15 ); ++ modScroller.render_string((char *) "same color or following the order", xoff+70, yoff+ 25 ); ++ modScroller.render_string((char *) "and pattern tiles. Right-click", xoff+70, yoff+35); ++ modScroller.render_string((char *) "to spin. Left-click on a ball to", xoff+70, yoff+45 ); ++ modScroller.render_string((char *) "eject it.", xoff+70, yoff+55 ); + + xoff = 230; + yoff = 340 ; +- modScroller.render_string( "[ESC] - Bring up the menu", xoff, yoff ); +- modScroller.render_string( "[LEFT] - Play Previous MOD", xoff, yoff+10 ); +- modScroller.render_string( "[RIGHT] - Play Next MOD", xoff, yoff+20 ); ++ modScroller.render_string((char *) "[ESC] - Bring up the menu", xoff, yoff ); ++ modScroller.render_string((char *) "[LEFT] - Play Previous MOD", xoff, yoff+10 ); ++ modScroller.render_string((char *) "[RIGHT] - Play Next MOD", xoff, yoff+20 ); + + yoff = 375; +- modScroller.render_string_center( "The object of the game is to fill up the spinners on the", 0, PLAYWIDTH, yoff ); ++ modScroller.render_string_center((char *) "The object of the game is to fill up the spinners on the", 0, PLAYWIDTH, yoff ); + yoff += 10; +- modScroller.render_string_center( "map with balls of the same color. If there is a pattern", 0, PLAYWIDTH, yoff ); ++ modScroller.render_string_center((char *) "map with balls of the same color. If there is a pattern", 0, PLAYWIDTH, yoff ); + yoff += 10; +- modScroller.render_string_center( "indicator on the level, the spinners must match that", 0, PLAYWIDTH, yoff ); ++ modScroller.render_string_center((char *) "indicator on the level, the spinners must match that", 0, PLAYWIDTH, yoff ); + yoff += 10; +- modScroller.render_string_center( "pattern instead. If there is an order indicator", 0, PLAYWIDTH, yoff ); ++ modScroller.render_string_center((char *) "pattern instead. If there is an order indicator", 0, PLAYWIDTH, yoff ); + yoff += 10; +- modScroller.render_string_center( "then the spinners must be filled with balls matching", 0, PLAYWIDTH, yoff ); ++ modScroller.render_string_center((char *) "then the spinners must be filled with balls matching", 0, PLAYWIDTH, yoff ); + yoff += 10; +- modScroller.render_string_center( "the colors in the order indicator until it is empty.", 0, PLAYWIDTH, yoff ); ++ modScroller.render_string_center((char *) "the colors in the order indicator until it is empty.", 0, PLAYWIDTH, yoff ); + yoff += 10; +- modScroller.render_string_center( "", 0, PLAYWIDTH, yoff ); ++ modScroller.render_string_center((char *) "", 0, PLAYWIDTH, yoff ); + + } + +@@ -2125,7 +2124,7 @@ + } else { + if (!noModInfoSet) + { +- modScroller.set_string( "NO MODULE INFO" ); ++ modScroller.set_string((char *) "NO MODULE INFO" ); + noModInfoSet = true; + } + modScroller.draw( ); diff --git a/games/xlogical/files/patch-gpl.h b/games/xlogical/files/patch-gpl.h new file mode 100644 index 000000000000..cd0653268851 --- /dev/null +++ b/games/xlogical/files/patch-gpl.h @@ -0,0 +1,11 @@ +--- gpl.h.orig 2007-11-05 23:45:33.000000000 +0100 ++++ gpl.h 2007-11-05 23:45:40.000000000 +0100 +@@ -20,7 +20,7 @@ + //
+ ////////////////////////////////////////////////////////////////////////
+
+-char *gpl[] = {
++const char *gpl[] = {
+ "GNU GENERAL PUBLIC LICENSE",
+ "TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION",
+ " ",
diff --git a/games/xlogical/files/patch-graph_images.cpp b/games/xlogical/files/patch-graph_images.cpp new file mode 100644 index 000000000000..b8e867d9703d --- /dev/null +++ b/games/xlogical/files/patch-graph_images.cpp @@ -0,0 +1,11 @@ +--- graph_images.cpp.orig 2007-11-06 00:02:06.000000000 +0100 ++++ graph_images.cpp 2007-11-06 00:02:21.000000000 +0100 +@@ -22,7 +22,7 @@ +
+ #include "defs.h"
+
+-char *imageFiles[] = {
++const char *imageFiles[] = {
+ DATA_DIR PATHSEP "images" PATHSEP "arrow_d.bmp",
+ DATA_DIR PATHSEP "images" PATHSEP "arrow_l.bmp",
+ DATA_DIR PATHSEP "images" PATHSEP "arrow_r.bmp",
diff --git a/games/xlogical/files/patch-levelmap.cpp b/games/xlogical/files/patch-levelmap.cpp new file mode 100644 index 000000000000..bbf0cf8dd11e --- /dev/null +++ b/games/xlogical/files/patch-levelmap.cpp @@ -0,0 +1,20 @@ +--- levelmap.cpp.orig 2007-11-06 00:03:04.000000000 +0100 ++++ levelmap.cpp 2007-11-06 00:07:30.000000000 +0100 +@@ -199,7 +199,7 @@ + };
+
+ // Possible text tokens in the map text
+-char *tokenStrings[] = {
++const char *tokenStrings[] = {
+ "notoken",
+ "{",
+ "}",
+@@ -1225,7 +1225,7 @@ + #endif
+ for( int i = 0; i < NUM_EXTERNAL_TOKENS; i ++ )
+ {
+- tokenMap[tokenStrings[i]] = i;
++ tokenMap[(char *)tokenStrings[i]] = i;
+ }
+ }
+
diff --git a/games/xlogical/files/patch-mapedit.cpp b/games/xlogical/files/patch-mapedit.cpp new file mode 100644 index 000000000000..893ed10280f7 --- /dev/null +++ b/games/xlogical/files/patch-mapedit.cpp @@ -0,0 +1,88 @@ +--- mapedit.cpp.orig 2007-11-06 00:24:09.000000000 +0100 ++++ mapedit.cpp 2007-11-06 00:24:48.000000000 +0100 +@@ -405,22 +405,22 @@ + }
+ if( ! (flags & SEEN_START) )
+ {
+- errScroll.render_string( "Start Tile Needed", 300, 0 );
++ errScroll.render_string((char *) "Start Tile Needed", 300, 0 );
+ }
+
+ if( ! (flags & SEEN_SPINNER) )
+ {
+- errScroll.render_string( "Spinner Needed", 300, 10 );
++ errScroll.render_string((char *) "Spinner Needed", 300, 10 );
+ }
+
+ if( (leftCount % 2) || (upCount % 2) )
+ {
+- errScroll.render_string( "Unmatched Teleporters", 300, 20 );
++ errScroll.render_string((char *) "Unmatched Teleporters", 300, 20 );
+ }
+
+ if( (leftCount > 2) || (upCount > 2) )
+ {
+- errScroll.render_string( "Too Many Teleporters", 450, 0 );
++ errScroll.render_string((char *) "Too Many Teleporters", 450, 0 );
+ }
+
+ sprintf( cstr, "MAP NAME: %s", CURMAP->mapName );
+@@ -481,13 +481,13 @@ + {
+
+ graphDriver->graph_hi_font( )->
+- render_string("UP",
++ render_string((char *) "UP",
+ NUM_COLS*TILESIZE + MENU_SEP + 60,
+ TOP_MAP_OFFSET + SPACER + 15 );
+ } else {
+ // Draw the label
+ graphDriver->graph_lo_font( )->
+- render_string("UP",
++ render_string((char *) "UP",
+ NUM_COLS*TILESIZE + MENU_SEP + 60,
+ TOP_MAP_OFFSET + SPACER + 15 );
+ }
+@@ -497,13 +497,13 @@ + {
+ // Draw the label
+ graphDriver->graph_hi_font( )->
+- render_string("DOWN",
++ render_string((char *) "DOWN",
+ NUM_COLS*TILESIZE+MENU_SEP + 27,
+ MENU_NUM_ROWS*TILESIZE + MENU_Y_OFFSET + SPACER + 13);
+ } else {
+ // Draw the label
+ graphDriver->graph_lo_font( )->
+- render_string("DOWN",
++ render_string((char *) "DOWN",
+ NUM_COLS*TILESIZE+MENU_SEP + 27,
+ MENU_NUM_ROWS*TILESIZE + MENU_Y_OFFSET + SPACER + 13);
+ }
+@@ -682,7 +682,7 @@ + 5 );
+
+ graphDriver->graph_hi_font( )->
+- render_string("MAP",
++ render_string((char *) "MAP",
+ NUM_COLS*TILESIZE + MENU_SEP + 43,
+ 0 );
+
+@@ -698,7 +698,7 @@ + graphDriver->graph_draw( BMP_BALL_C2,
+ NUM_COLS*TILESIZE - 150,
+ NUM_ROWS * TILESIZE + 39 );
+- errScroll.render_string( "Quit WITHOUT Saving",
++ errScroll.render_string((char *) "Quit WITHOUT Saving",
+ NUM_COLS*TILESIZE - 150 + 20,
+ NUM_ROWS * TILESIZE + 44 );
+
+@@ -706,7 +706,7 @@ + graphDriver->graph_draw( BMP_BALL_C2,
+ NUM_COLS*TILESIZE + 60,
+ NUM_ROWS * TILESIZE + 39);
+- errScroll.render_string( "Quit And Save",
++ errScroll.render_string((char *) "Quit And Save",
+ NUM_COLS*TILESIZE + 80,
+ NUM_ROWS * TILESIZE + 44 );
+ }
diff --git a/games/xlogical/files/patch-menuentry.cpp b/games/xlogical/files/patch-menuentry.cpp new file mode 100644 index 000000000000..83e1fd7bcc6f --- /dev/null +++ b/games/xlogical/files/patch-menuentry.cpp @@ -0,0 +1,28 @@ +--- menuentry.cpp.orig 2007-11-06 00:04:44.000000000 +0100 ++++ menuentry.cpp 2007-11-06 00:06:49.000000000 +0100 +@@ -104,14 +104,14 @@ + if (fOnOff)
+ {
+ font->render_string(
+- "*",
++ (char *)"*",
+ fX + graphDriver->graph_hi_font( )->stringLen( const_cast<char *>(fText.c_str() ) ),
+ fY );
+ } else {
+ graphDriver->graph_clear_rect(
+ fX + graphDriver->graph_hi_font()->stringLen( const_cast<char *>(fText.c_str() ) ),
+ fY,
+- graphDriver->graph_hi_font()->stringLen( "*" ),
++ graphDriver->graph_hi_font()->stringLen((char *) "*" ),
+ graphDriver->graph_hi_font()->get_height() );
+ }
+
+@@ -131,7 +131,7 @@ + graphDriver->graph_clear_rect(
+ fX + graphDriver->graph_hi_font()->stringLen( const_cast<char *>(fText.c_str() ) ),
+ fY,
+- graphDriver->graph_hi_font()->stringLen( "*" ),
++ graphDriver->graph_hi_font()->stringLen((char *) "*" ),
+ graphDriver->graph_hi_font()->get_height() );
+
+ switch( aKeyval )
diff --git a/games/xlogical/files/patch-music_files.cpp b/games/xlogical/files/patch-music_files.cpp new file mode 100644 index 000000000000..9b9339d22c44 --- /dev/null +++ b/games/xlogical/files/patch-music_files.cpp @@ -0,0 +1,11 @@ +--- music_files.cpp.orig 2007-11-06 00:07:45.000000000 +0100 ++++ music_files.cpp 2007-11-06 00:08:06.000000000 +0100 +@@ -22,7 +22,7 @@ +
+ #include "defs.h"
+
+-char *musicFiles[] = {
++const char *musicFiles[] = {
+ DATA_DIR PATHSEP "music" PATHSEP "intro.mod",
+ DATA_DIR PATHSEP "music" PATHSEP "pregame.mod",
+ DATA_DIR PATHSEP "music" PATHSEP "ingame.mod",
diff --git a/games/xlogical/files/patch-sound_files.cpp b/games/xlogical/files/patch-sound_files.cpp new file mode 100644 index 000000000000..c6b49a13501d --- /dev/null +++ b/games/xlogical/files/patch-sound_files.cpp @@ -0,0 +1,11 @@ +--- sound_files.cpp.orig 2007-11-06 00:08:33.000000000 +0100 ++++ sound_files.cpp 2007-11-06 00:08:45.000000000 +0100 +@@ -22,7 +22,7 @@ +
+ #include "defs.h"
+
+-char *soundFiles[] = {
++const char *soundFiles[] = {
+ DATA_DIR PATHSEP "sound" PATHSEP "block_ball.wav",
+ DATA_DIR PATHSEP "sound" PATHSEP "bonus_life.wav",
+ DATA_DIR PATHSEP "sound" PATHSEP "catch_ball.wav",
|