Browse Source

Removed more cruft.

Thomas Buck 11 years ago
parent
commit
55575195d7
4 changed files with 6 additions and 22 deletions
  1. 0
    4
      autogen.sh
  2. 0
    18
      fix-gcc3.sh
  3. 3
    0
      setup.sh
  4. 3
    0
      src/OpenRaider.cpp

+ 0
- 4
autogen.sh View File

@@ -1,4 +0,0 @@
1
-#!/bin/sh
2
-rm -f depend
3
-make depend 2> /dev/null
4
-make $@

+ 0
- 18
fix-gcc3.sh View File

@@ -1,18 +0,0 @@
1
-#!/bin/sh
2
-
3
-if [ -f src/endian.h ]
4
-then
5
-    echo GCC 3.x fix...
6
-    mv src/endian.h src/mendian.h
7
-
8
-    for i in `grep -l "endian.h" src/*.* src/*/*.*`; do mv $i $i.old && sed -e "s/endian.h/mendian.h/" $i.old > $i; done
9
-else
10
-    echo Removing GCC 3.x fix... 
11
-    mv src/mendian.h src/endian.h
12
-
13
-    for i in `grep -l "mendian.h" src/*.* src/*/*.*`; do mv $i $i.old && sed -e "s/mendian.h/endian.h/" $i.old > $i; done
14
-
15
-#    for i in `find . -name "*.old"`; do echo $i > sed.0 && mv $i `sed -e "s/.old//" sed.0`; done
16
-#
17
-#    rm -d sed.0
18
-fi

+ 3
- 0
setup.sh View File

@@ -1,4 +1,7 @@
1 1
 #!/bin/sh
2
+
3
+## If you modify this file, do the same changes to mac_dist/OpenRaider!!!
4
+
2 5
 echo "Setting up OpenRaider for user $USER..."
3 6
 mkdir -p ~/.OpenRaider
4 7
 cp data/OpenRaider.init ~/.OpenRaider/

+ 3
- 0
src/OpenRaider.cpp View File

@@ -863,10 +863,13 @@ void OpenRaider::start()
863 863
 
864 864
 	if (loadResourceFile(filename) < 0)
865 865
 	{
866
+
867
+        printf("Could not find ~/.OpenRaider/OpenRaider.init\n");
866 868
 		if (loadResourceFile("OpenRaider.init") < 0)
867 869
 		{
868 870
 			shutdown(-1);
869 871
 		}
872
+        printf("Loaded defaults...\n");
870 873
 	}
871 874
 
872 875
 	delete [] filename;

Loading…
Cancel
Save