mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 14:38:51 +02:00
Adamant Armor Affection Adventure: add recipe for 1.1 version
This commit is contained in:
27
games-action/aaaa/patches/aaaa-1.1.patchset
Normal file
27
games-action/aaaa/patches/aaaa-1.1.patchset
Normal file
@@ -0,0 +1,27 @@
|
||||
From bb63bf1383e27cb8b2bd057569b5acd962afe292 Mon Sep 17 00:00:00 2001
|
||||
From: Gerasim Troeglazov <3dEyes@gmail.com>
|
||||
Date: Sun, 30 Sep 2018 21:35:07 +1000
|
||||
Subject: Set current dir
|
||||
|
||||
|
||||
diff --git a/aaaa/src/main/cpp/AAAA-Engine/main.c b/aaaa/src/main/cpp/AAAA-Engine/main.c
|
||||
index 81242ed..da7bd03 100644
|
||||
--- a/aaaa/src/main/cpp/AAAA-Engine/main.c
|
||||
+++ b/aaaa/src/main/cpp/AAAA-Engine/main.c
|
||||
@@ -4,6 +4,13 @@
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
+#ifdef __HAIKU__
|
||||
+ char *ptr;
|
||||
+ if(ptr = strrchr(argv[0], '/')) {
|
||||
+ *ptr = '\0';
|
||||
+ chdir(argv[0]);
|
||||
+ }
|
||||
+#endif
|
||||
zresminit();
|
||||
|
||||
zcoreinit();
|
||||
--
|
||||
2.19.0
|
||||
|
||||
Reference in New Issue
Block a user