Debian Codegraph @

debian/patches/load_resources_from_usr_share.patch

raw symbols SCIP
1 From: Debian QA Group <[email protected]>
2 Date: Wed, 25 Apr 2018 23:08:26 +0200
3 Subject: load_resources_from_usr_share
4
5 ---
6 dokidoki-support/minlua.c | 8 +++++++-
7 1 file changed, 7 insertions(+), 1 deletion(-)
8
9 diff --git a/dokidoki-support/minlua.c b/dokidoki-support/minlua.c
10 index 89c5772..45e5466 100644
11 --- a/dokidoki-support/minlua.c
12 +++ b/dokidoki-support/minlua.c
13 @@ -3,6 +3,7 @@
14 #include <stdlib.h>
15 #include <string.h>
16 #include <unistd.h>
17 +#include <errno.h>
18
19 #include <lua.h>
20 #include <lauxlib.h>
21 @@ -169,7 +170,12 @@ int main(int argc, char ** argv)
22 use_logfile = 0;
23 log_init(use_logfile);
24
25 - switch_to_game_directory();
26 + // switch_to_game_directory();
27 + char *dir = "/usr/share/pax-britannica";
28 + log_messagef("changing directory to '%s'", dir);
29 + int success = chdir(dir);
30 + if(success == -1)
31 + perror("chdir()");
32
33 // load lua and libraries
34 lua_State *L = lua_open();