by HunterZ » Sat 19. Oct 2013, 15:29
Not sure. What are the filenames? It may be worth running dos2unix on them to convert the line endings just to see what happens.
If it helps, it looks like the crash happens sometime after keybindings.txt gets regenerated, because I tried deleting it between runs to see what would happen.
Edit: Forgot to mention that the new build is playable for me, except for the keybindings menu crash.
Edit 2: The crash is happening somewhere in the code that reads keybindings.txt, as I put sleep's in various places and counted the number of times I had to hit a key before the crash occurred (I don't know how to draw debug text on the screen at the moment).
Edit 3: It's happening somewhere near the time that it finishes parsing the file, because I put a sleep inside the loop and had to hit a key many times before it crashed. Converting line endings from CR/LF to LF-only didn't help. Removing or adding blank lines from/to the end of the file didn't help either.