mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-04 14:08:51 +02:00
abrick, updated recipe and added patch file
This commit is contained in:
23
games-puzzle/abrick/patches/abrick-1.12.patch
Normal file
23
games-puzzle/abrick/patches/abrick-1.12.patch
Normal file
@@ -0,0 +1,23 @@
|
||||
--- abrick-1.12-src/main.cpp.org 2014-09-03 20:35:03.195821568 +0200
|
||||
+++ abrick-1.12-src/main.cpp 2014-09-03 20:34:52.090177536 +0200
|
||||
@@ -10,11 +10,20 @@
|
||||
#include "config.h"
|
||||
#include "menu.h"
|
||||
#include "allmenus.h"
|
||||
+
|
||||
+#ifdef __HAIKU__
|
||||
+#include <unistd.h>
|
||||
+#include <libgen.h>
|
||||
+#endif
|
||||
+
|
||||
SDL_Surface *Screen; // global object
|
||||
//-----------------------------------------------------------------------------
|
||||
//! initialize SDL, and start main menu
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
+ #ifdef __HAIKU__
|
||||
+ chdir(dirname(argv[0]));
|
||||
+ #endif
|
||||
Screen = 0;
|
||||
bool Fullscreen = false; // defaults
|
||||
bool SWSurface = true;
|
||||
Reference in New Issue
Block a user