Thread with 11 posts
jump to expanded postthis game is still available on the modern App Store btw, but only as a Lite version. the website's still up too. I guess the developers just keep it up for posterity's sake?
this game does its own text rendering, this will be a pain to debug…
people will tell you Rust is good for debugging because it has tightly controlled unsafeness, algebraic data types for results, bounds checks everywhere, assertions etc.
none of this is wrong but also i <3 <3 <3 std::fs::write
very glad i added gdb support and that this app has function name symbols, this is making debugging fun rather than frustrating. going from glDrawArrays to COverlay::DrawStack, guessing COverlay::AddQuadToPacket is relevant, finding NMenu::CMenuGfx::WriteText is a caller…
ah… I traced it to the code that fetches locale strings, and it's calling… bsearch, which I implemented earlier today but didn't test very thoroughly…
I think we all know where this is going.
aha, I found the bug. thankfully for my faith in my ability to write algorithms correctly, the binary search itself was correct… but the C standard requires you to pass the key as the first argument to the callback, whereas I had reversed the order. oops. ^^;
@hikari oh god is it this function that Microsoft fucked up and flipped the callback on? they did it to one of the c standard functions. in case you wound up remembering their order or something.
@leftpaddotpy oh I think I read about that earlier this week, but I don't think it was this one