DisabledMallis/battles2cheat ? reverse-engineered prompt
Reverse engineered prompt
Help me get this old C++ project building cleanly again and make it easier to understand.
I’ve got a small codebase with shared code, some handwritten headers that interact with a game, and the actual source in src. Please organize it so it compiles from the root with CMake, fix any broken includes or build issues, and make the structure clearer for someone new to the repo. If anything depends on current docs or compiler behavior, look it up online and use the latest practical approach.
Also add a simple README that explains what each folder is for, how to build it, and any important warnings about the handwritten game interaction headers so nobody uses them blindly. If you can, leave the code a bit cleaner and easier to maintain without changing the basic behavior.
Are you gonna build this?
make sure you review the code using coderabbit