abandon
This commit is contained in:
@@ -26,11 +26,15 @@ void Keybinds::loadKeybindsFromFile() {
|
||||
}
|
||||
|
||||
char byte;
|
||||
while (layoutFile.get(&byte, 1)) {
|
||||
while (layoutFile.get(byte)) {
|
||||
if (layoutFile.eof()) break;
|
||||
|
||||
Action action = Action(byte);
|
||||
|
||||
do {
|
||||
layoutFile.get(&byte, 1);
|
||||
layoutFile.get(byte);
|
||||
if (layoutFile.eof()) break;
|
||||
|
||||
if (byte != 0xFF) {
|
||||
this->keybinds.at(action).insert(sfKey(byte));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user