r/cprogramming • u/Huuf • Oct 15 '26
Oregon Trail II - In C
I reverse engineered the Oregon Trail II binary into C++ first, to make it byte exact decomp first. Then I converted it to C, because as we all know here, it's a better language!
You can find the code here: https://github.com/ot-ii/OregonTrailII/
8
Upvotes
1
u/Ratfus Oct 15 '26
So do you get a segmentation fault when all the members in your party die?
In all seriousness, pretty cool.
1
u/tastygames_official Oct 15 '26
you mean "decompiled". Reverse engineering is something else and generally involves taking something apart to see how it works and then developing something from scratch that behaves the same as the original. You probably just used ghidra or similar. Although weird that it decompiled to C++ instead of C. Or did it just do C but inside .cpp files or something?
1
u/zhivago Oct 15 '26
Well done.
You even have tests. :)