Changeset 1538 for code/trunk/src/core
- Timestamp:
- Jun 4, 2008, 10:44:41 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/core/input/KeyBinder.cc
r1535 r1538 214 214 std::ifstream infile; 215 215 infile.open("keybindings.ini"); 216 if (!infile .is_open())216 if (!infile) 217 217 { 218 218 ConfigFileManager::getSingleton()->setFile(CFT_Keybindings, "def_keybindings.ini"); 219 219 ConfigFileManager::getSingleton()->save(CFT_Keybindings, "keybindings.ini"); 220 220 } 221 infile.close(); 221 else 222 infile.close(); 222 223 ConfigFileManager::getSingleton()->setFile(CFT_Keybindings, "keybindings.ini"); 223 224
Note: See TracChangeset
for help on using the changeset viewer.