]> git.pld-linux.org Git - packages/doomsday.git/commitdiff
- patch to change runtimedir to ~/.doomsday. so it would not crash if started from...
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 10 Apr 2005 16:23:07 +0000 (16:23 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    doomsday-runtimedir.patch -> 1.1

doomsday-runtimedir.patch [new file with mode: 0644]

diff --git a/doomsday-runtimedir.patch b/doomsday-runtimedir.patch
new file mode 100644 (file)
index 0000000..33df4ff
--- /dev/null
@@ -0,0 +1,28 @@
+--- ./Src/dd_main.c~   2005-04-10 18:52:35.000000000 +0300
++++ ./Src/dd_main.c    2005-04-10 18:52:37.000000000 +0300
+@@ -248,6 +248,15 @@
+       DD_Verbosity();
++#ifdef UNIX
++      if (getenv("HOME")) {
++              filename_t h;
++              sprintf(h, "%s/.doomsday", getenv("HOME"));
++              Dir_MakeDir(h, &ddRuntimeDir);
++              userdir_ok = Dir_ChDir(&ddRuntimeDir);
++      }
++#endif
++
+       // The -userdir option sets the working directory.
+       if(ArgCheckWith("-userdir", 1))
+       {
+--- ../Src/dd_main.c~  2005-04-10 18:53:29.000000000 +0300
++++ ../Src/dd_main.c   2005-04-10 19:07:46.000000000 +0300
+@@ -252,6 +252,7 @@
+       if (getenv("HOME")) {
+               filename_t h;
+               sprintf(h, "%s/.doomsday", getenv("HOME"));
++              M_CheckPath(h);
+               Dir_MakeDir(h, &ddRuntimeDir);
+               userdir_ok = Dir_ChDir(&ddRuntimeDir);
+       }
This page took 0.067862 seconds and 4 git commands to generate.