Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 23, 2009, 8:57:42 PM (16 years ago)
Author:
rgrieder
Message:
  • Moved def_keybindings to media repository in folder defaultConfig
  • If you have a better name for that folder, you're welcome
  • the "def_" prefix has been removed
  • ConfigFileManager now looks for a file in media/defaultConfig with the same name if the config file does not exist yet
  • No file gets written while only loading
  • Removed hacky GCC 3 warning code for each library and instead just put "Wno-sign-compare" to the GCC 3 flags (that will remove all boost::filesystem warnings)
  • ogre.cfg still remains on tardis for the development build (not install though)
Location:
code/branches/buildsystem3/src/orxonox
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • code/branches/buildsystem3/src/orxonox/CMakeLists.txt

    r2685 r2690  
    3939# Not using precompiled header files: Avoid dependencies
    4040INCLUDE_DIRECTORIES(pch/nopch)
    41 
    42 IF(GCC_NO_SYSTEM_HEADER_SUPPORT)
    43   # Get around displaying a few hundred lines of warning code
    44   SET_SOURCE_FILES_PROPERTIES(
    45     gamestates/GSGraphics.cc
    46     gui/GUIManager.cc
    47     PROPERTIES COMPILE_FLAGS "-Wno-sign-compare"
    48   )
    49 ENDIF()
    5041
    5142ADD_EXECUTABLE(orxonox ${ORXONOX_FILES})
  • code/branches/buildsystem3/src/orxonox/Main.cc

    r2685 r2690  
    3737#include <exception>
    3838#include <cassert>
    39 #include <fstream>
    4039
    4140#include "OrxonoxConfig.h"
     
    9594    // First, determine whether we have an installed or a binary dir run
    9695    // The latter occurs when simply running from the build directory
    97     std::ifstream probe;
    98     probe.open("orxonox_dev_build.keep_me");
    99     if (probe)
    100     {
    101         Core::setDevBuild();
    102         probe.close();
    103     }
     96    Core::checkDevBuild();
     97
     98    // Make sure the directories we write in exist or else make them
     99    Core::createDirectories();
    104100
    105101    // create a signal handler (only active for linux)
  • code/branches/buildsystem3/src/orxonox/gamestates/GSGraphics.cc

    r2687 r2690  
    107107        SetConfigValue(ogreLogLevelCritical_, 2)
    108108            .description("Corresponding orxonox debug level for ogre Critical");
    109         SetConfigValue(defaultMasterKeybindings_, "def_masterKeybindings.ini")
    110             .description("Filename of default master keybindings.");
    111109    }
    112110
     
    148146        // Configure master input state with a KeyBinder
    149147        masterKeyBinder_ = new KeyBinder();
    150         masterKeyBinder_->loadBindings("masterKeybindings.ini", defaultMasterKeybindings_);
     148        masterKeyBinder_->loadBindings("masterKeybindings.ini");
    151149        inputManager_->getMasterInputState()->addKeyHandler(masterKeyBinder_);
    152150
  • code/branches/buildsystem3/src/orxonox/gamestates/GSGraphics.h

    r2664 r2690  
    105105        int                   ogreLogLevelNormal_;       //!< Corresponding Orxonx debug level for LL_NORMAL
    106106        int                   ogreLogLevelCritical_;     //!< Corresponding Orxonx debug level for LL_CRITICAL
    107         std::string           defaultMasterKeybindings_; //!< Filename of default master keybindings.
    108107
    109108        // console commands
  • code/branches/buildsystem3/src/orxonox/gamestates/GSLevel.cc

    r2685 r2690  
    7575    {
    7676        SetConfigValue(keyDetectorCallbackCode_, "KeybindBindingStringKeyName=");
    77         SetConfigValue(defaultKeybindings_, "def_keybindings.ini")
    78             .description("Filename of default keybindings.");
    7977    }
    8078
     
    8583            inputState_ = InputManager::getInstance().createInputState<SimpleInputState>("game", 20);
    8684            keyBinder_ = new KeyBinder();
    87             keyBinder_->loadBindings("keybindings.ini", defaultKeybindings_);
     85            keyBinder_->loadBindings("keybindings.ini");
    8886            inputState_->setHandler(keyBinder_);
    8987
  • code/branches/buildsystem3/src/orxonox/gamestates/GSLevel.h

    r2662 r2690  
    6666        //##### ConfigValues #####
    6767        std::string           keyDetectorCallbackCode_;
    68         //! Filename of default keybindings.
    69         std::string           defaultKeybindings_;
    7068
    7169        // console commands
Note: See TracChangeset for help on using the changeset viewer.