openbsd-ports/games/openomf/patches/patch-src_resources_pathmanager_c
bcallah 993ac80a33 Import games/openomf, a free remake of One Must Fall 2097 game engine.
Original work from Tom Murphy <openbsd () pertho ! net> and testing from
the #openbsd-gaming people.
ok solene@

OpenOMF is a Open Source remake of "One Must Fall 2097" by Diversions
Entertainment. Together with networking support, OpenOMF tries to make
it easier to play One Must Fall in its original glory on multiple
platforms.

Project goals:
* At first, as faithful a game binary to the original as possible.
* Better game controller support (new gamepads etc.)
* Better networking support. The original game used IPX/SPX networking.
* More network game types. For example full Internet tournaments are
  being planned.
* Support for new graphics and audio. The current version of OpenOMF
  already supports loading alternate music files. Support for alternate
  sprites is coming after the game is otherwise working okay.
* Enhanced tournament mode!

While OpenOMF is open source, the game and its assets are not.
Fortunately, the developers released the game as freeware in 1999. It
can be obtained from archive.org:
https://archive.org/download/OneMustFall2097/OMF21cd-playable.ZIP
2018-08-01 18:10:26 +00:00

26 lines
1.2 KiB
Plaintext

$OpenBSD: patch-src_resources_pathmanager_c,v 1.1.1.1 2018/08/01 18:10:26 bcallah Exp $
Reconfigure game asset search paths.
Index: src/resources/pathmanager.c
--- src/resources/pathmanager.c.orig
+++ src/resources/pathmanager.c
@@ -91,7 +91,7 @@ int pm_init() {
// on linux, the resources will be in ../share/games/openomf, relative to the binary
// so if openomf is installed to /usr/local/bin,
// the resources will be in /usr/local/share/games/openomf
- local_path_build(RESOURCE_PATH, bin_base_dir, "../share/games/openomf/");
+ local_path_build(RESOURCE_PATH, bin_base_dir, "../share/openomf/");
local_path_build(PLUGIN_PATH, bin_base_dir, "../lib/openomf/");
m_ok = 1;
} else if(!strcasecmp(SDL_GetPlatform(), "Mac OS X")) {
@@ -112,7 +112,7 @@ int pm_init() {
local_path_build(RESOURCE_PATH, "resources\\", "");
local_path_build(PLUGIN_PATH, "plugins\\", "");
} else {
- local_path_build(RESOURCE_PATH, "resources/", "");
+ local_path_build(RESOURCE_PATH, "", "");
local_path_build(PLUGIN_PATH, "plugins/", "");
}
}