- Timestamp:
- May 30, 2015, 12:22:27 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core7/src/libraries/core/input/KeyBinder.cc
r10380 r10509 37 37 #include "core/config/ConfigValueIncludes.h" 38 38 #include "core/config/ConfigFile.h" 39 #include "core/PathConfig.h" 39 #include "core/ApplicationPaths.h" 40 #include "core/ConfigurablePaths.h" 40 41 #include "InputCommands.h" 41 42 #include "JoyStick.h" … … 255 256 orxout(internal_info, context::input) << "KeyBinder: Loading key bindings..." << endl; 256 257 257 this->configFile_ = new ConfigFile(this->filename_, ! PathConfig::buildDirectoryRun());258 this->configFile_ = new ConfigFile(this->filename_, !ApplicationPaths::buildDirectoryRun()); 258 259 this->configFile_->load(); 259 260 260 if ( PathConfig::buildDirectoryRun())261 if (ApplicationPaths::buildDirectoryRun()) 261 262 { 262 263 // Dev users should have combined key bindings files 263 std::string defaultFilepath( PathConfig::getDataPathString() + ConfigFile::DEFAULT_CONFIG_FOLDER + '/' + this->filename_);264 std::string defaultFilepath(ConfigurablePaths::getDataPathString() + ConfigFile::DEFAULT_CONFIG_FOLDER + '/' + this->filename_); 264 265 std::ifstream file(defaultFilepath.c_str()); 265 266 if (file.is_open()) … … 289 290 addButtonToCommand(binding, it->second); 290 291 std::string str = binding; 291 if ( PathConfig::buildDirectoryRun() && binding.empty())292 if (ApplicationPaths::buildDirectoryRun() && binding.empty()) 292 293 str = "NoBinding"; 293 294 it->second->setBinding(this->configFile_, this->fallbackConfigFile_, binding, bTemporary);
Note: See TracChangeset
for help on using the changeset viewer.