This is a patch file for Hein Zelle's Othello [AKA Reversi] 1.9.4. This file is distro-specific. It relies on the following meta-symbol: __META_PREFIX__ = Absolute path for installed-package tree The original distro's "build" system defined this symbol automatical- ly. If you'd like to apply this file under a standard distro, use "sed" or a text editor to replace the symbol with the appropriate val- ue. The following changes modify Othello so that it can be executed from any directory. --- othello-1.9.4.old/draw.cpp +++ othello-1.9.4/draw.cpp @@ -152,7 +152,7 @@ show_mouse(screen); // load font - lucida18 = load_datafile("lucida18.dat"); + lucida18 = load_datafile ("__META_PREFIX__/data/lucida18.dat"); if (!lucida18) { allegro_message("Could not load font 'lucida18.dat'\n"); @@ -161,7 +161,7 @@ font = (FONT *)(lucida18[LUCIDA18].dat); // load the board bitmap from datafile - graphicsdat = load_datafile("graphics.dat"); + graphicsdat = load_datafile ("__META_PREFIX__/data/graphics.dat"); if (!graphicsdat) { allegro_message("Could not load datafile 'graphics.dat'.\n"); @@ -183,7 +183,7 @@ // this does not belong here, but oh well. // sound samples (from datafile) - sounddat = load_datafile("sound.dat"); + sounddat = load_datafile ("__META_PREFIX__/data/sound.dat"); if (!sounddat) { allegro_message("Could not load datafile 'sound.dat'.\n"); @@ -195,7 +195,7 @@ set_color_conversion(COLORCONV_NONE); // stone bitmaps (from datafile) - stonedat = load_datafile("stones.dat"); + stonedat = load_datafile ("__META_PREFIX__/data/stones.dat"); if (!stonedat) { allegro_message("Could not load datafile 'stones.dat'.\n"); --- othello-1.9.4.old/trans.cpp.no +++ othello-1.9.4/trans.cpp.no @@ -8,7 +8,8 @@ set_color_depth(24); set_gfx_mode(GFX_AUTODETECT, 640, 480, 0, 0); - DATAFILE *stonedat = load_datafile("othello24.dat"); + DATAFILE *stonedat = + load_datafile ("__META_PREFIX__/data/othello24.dat"); if (!stonedat) { allegro_message("Could not load datafile 'othello.dat'.\n");