pcre: fork, fix sources
[kiss-trunc88.git] / lzdoom / patches / file-paths2.patch
blob1b0042365aaf3c4e20b3d8452d94a79c6e575bbd
1 diff -u -r gzdoom-3.88b/src/gameconfigfile.cpp gzdoom-3.88b-2/src/gameconfigfile.cpp
2 --- gzdoom-3.88b/src/gameconfigfile.cpp 2022-02-26 06:17:38.000000000 -0500
3 +++ gzdoom-3.88b-2/src/gameconfigfile.cpp 2022-07-11 11:50:35.970372501 -0400
4 @@ -194,6 +194,8 @@
5 SetValueForKey("Path", "/usr/local/share/doom/fm_banks", true);
6 SetValueForKey("Path", "/usr/local/share/games/doom/soundfonts", true);
7 SetValueForKey("Path", "/usr/local/share/games/doom/fm_banks", true);
8 + SetValueForKey("Path", "/usr/share/" GAMENAMELOWERCASE "/soundfonts", true);
9 + SetValueForKey("Path", "/usr/share/" GAMENAMELOWERCASE "/fm_banks", true);
10 SetValueForKey("Path", "/usr/share/doom/soundfonts", true);
11 SetValueForKey("Path", "/usr/share/doom/fm_banks", true);
12 SetValueForKey("Path", "/usr/share/games/doom/soundfonts", true);
13 diff -u -r gzdoom-3.88b/src/posix/sdl/i_main.cpp gzdoom-3.88b-2/src/posix/sdl/i_main.cpp
14 --- gzdoom-3.88b/src/posix/sdl/i_main.cpp 2022-02-26 06:17:38.000000000 -0500
15 +++ gzdoom-3.88b-2/src/posix/sdl/i_main.cpp 2022-07-11 11:30:42.230363540 -0400
16 @@ -189,19 +189,7 @@
17 Args = new FArgs(argc, argv);
19 // Should we even be doing anything with progdir on Unix systems?
20 - char program[PATH_MAX];
21 - if (realpath (argv[0], program) == NULL)
22 - strcpy (program, argv[0]);
23 - char *slash = strrchr (program, '/');
24 - if (slash != NULL)
25 - {
26 - *(slash + 1) = '\0';
27 - progdir = program;
28 - }
29 - else
30 - {
31 - progdir = "./";
32 - }
33 + progdir = "/usr/share/lzdoom/";
35 I_StartupJoysticks();