From aa0f5b153eb29a8ce7e48ebf71eac5db3446276c Mon Sep 17 00:00:00 2001 From: Clownacy Date: Thu, 2 Apr 2020 19:56:42 +0100 Subject: [PATCH] Cleanup and fixes --- DoConfig/new/DoConfig.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/DoConfig/new/DoConfig.cpp b/DoConfig/new/DoConfig.cpp index b7bf35cf..1cac2f67 100644 --- a/DoConfig/new/DoConfig.cpp +++ b/DoConfig/new/DoConfig.cpp @@ -108,7 +108,7 @@ int main(int argc, char *argv[]) const int decode_table[6] = {0, 1, 2, 4, 5, 3}; fseek(file, 3, SEEK_CUR); - configuration.joystick_button[i] = decode_table[fgetc(file)]; + configuration.joystick_button[i] = decode_table[fgetc(file) - 1]; } fclose(file); @@ -195,7 +195,7 @@ int main(int argc, char *argv[]) if (x == 0) { - const char *inputs[6] = {"Jump: ", "Attack: ", "Weapon+:", "Weapon-:", "Items: ", "Map: "}; + const char *inputs[6] = {"Jump:", "Attack:", "Weapon+:", "Weapon-:", "Items:", "Map:"}; ImGui::Text(inputs[y - 1]); } else @@ -247,7 +247,7 @@ int main(int argc, char *argv[]) { const int encode_table[6] = {0, 1, 2, 5, 3, 4}; - fputc(encode_table[configuration.joystick_button[i]], file); + fputc(encode_table[configuration.joystick_button[i]] + 1, file); fputc(0, file); fputc(0, file); fputc(0, file);