Просмотр исходного кода

Fixed Mac Bundle setup script and its permissions

Thomas Buck 10 лет назад
Родитель
Сommit
cc9bb0d9b8
3 измененных файлов: 4 добавлений и 13 удалений
  1. 2
    11
      cmake/setup_mac.sh
  2. 1
    0
      src/CMakeLists.txt
  3. 1
    2
      src/OpenRaider.cpp

+ 2
- 11
cmake/setup_mac.sh Просмотреть файл

@@ -17,16 +17,7 @@ if [ ! -d "${HOME}/.OpenRaider" ]; then
17 17
 fi
18 18
 if [[ ! -n `find "${HOME}/.OpenRaider/paks" -type f -exec echo Found {} \;` ]]; then
19 19
     echo "Missing level files!"
20
-    osascript -e 'tell app "System Events" to display alert "No level files stored in ~/.OpenRaider/paks\n\nPlace level files there and edit ~/.OpenRaider/OpenRaider.init"'
20
+    osascript -e 'tell app "System Events" to display alert "No level files stored in ~/.OpenRaider/paks\n\nPlace original Tomb Raider level files there!"'
21 21
 else
22
-    if [[ ! `diff "${HOME}/.OpenRaider/OpenRaider.init" "../Resources/defaults/OpenRaider.init"` ]]; then
23
-        if [[ ! `diff "${HOME}/.OpenRaider/custom.cfg" "../Resources/defaults/custom.cfg"` ]]; then
24
-            echo "Unconfigured user!"
25
-            osascript -e 'tell app "System Events" to display alert "Please edit ~/.OpenRaider/OpenRaider.init or ~/.OpenRaider/custom.cfg"'
26
-        else
27
-            ./OpenRaider
28
-        fi
29
-    else
30
-        ./OpenRaider
31
-    fi
22
+    ./OpenRaider
32 23
 fi

+ 1
- 0
src/CMakeLists.txt Просмотреть файл

@@ -96,6 +96,7 @@ if (APPLE)
96 96
         add_custom_command (TARGET OpenRaider POST_BUILD
97 97
             COMMAND echo "Injecting setup script..."
98 98
             COMMAND cp "${PROJECT_SOURCE_DIR}/cmake/setup_mac.sh" "${PROJECT_BINARY_DIR}/src/OpenRaider.app/Contents/MacOS/OpenRaider.sh"
99
+            COMMAND chmod "a+x" "${PROJECT_BINARY_DIR}/src/OpenRaider.app/Contents/MacOS/OpenRaider.sh"
99 100
         )
100 101
 
101 102
         # Fix executable name, so setup script will be called

+ 1
- 2
src/OpenRaider.cpp Просмотреть файл

@@ -485,7 +485,7 @@ void OpenRaider::handleConsoleKeyPressEvent(unsigned int key,unsigned int mod)
485 485
                 buffer[2] = 0;
486 486
                 break;
487 487
             default:
488
-                // Workaround until proper SDL2 text input is used
488
+                //! \fixme Workaround until proper SDL2 text input is used
489 489
                 if ((key >= 1073742049) && (key <= 1073742051))
490 490
                     break;
491 491
 
@@ -2698,7 +2698,6 @@ void OpenRaider::processRoom(int index)
2698 2698
     //fflush(stdout);
2699 2699
 }
2700 2700
 
2701
-//! \fixme Use rc_get_bool consistently!
2702 2701
 void OpenRaider::consoleCommand(char *cmd)
2703 2702
 {
2704 2703
     bool b = false;

Загрузка…
Отмена
Сохранить