l'espoir renaît????
This commit is contained in:
@@ -26,19 +26,20 @@ void Keybinds::loadKeybindsFromFile() {
|
||||
}
|
||||
|
||||
char byte;
|
||||
while (layoutFile.get(byte)) {
|
||||
if (layoutFile.eof()) break;
|
||||
|
||||
while (layoutFile.peek() != EOF) {
|
||||
layoutFile.get(byte);
|
||||
Action action = Action(byte);
|
||||
|
||||
do {
|
||||
bool separatorMet = false;
|
||||
while (!separatorMet) {
|
||||
layoutFile.get(byte);
|
||||
if (layoutFile.eof()) break;
|
||||
|
||||
if (byte != 0xFF) {
|
||||
if (byte == (char) 0xFF) {
|
||||
separatorMet = true;
|
||||
}
|
||||
else {
|
||||
this->keybinds.at(action).insert(sfKey(byte));
|
||||
}
|
||||
} while (byte != 0xFF);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user