Mte90 / GBAATM-Rebirth

From the original source code a new rebirth, to add a Trainer in your GBA roms!
GNU General Public License v3.0
62 stars 3 forks source link

Generate twice the rom create a broken version #3

Closed Mte90 closed 4 years ago

Mte90 commented 4 years ago

This happen on generating again the rom and the output is different.

I think that is part of this issue https://github.com/Mte90/GBAATM-Rebirth/commit/a7fe52cbb1457cec2dae9958126cd91177f3b3e8, with this line the rom generated is broken and the output is the same when is generated twice (without that line). This is part also of https://github.com/Mte90/GBAATM-Rebirth/blob/master/core/cheatcodes.cpp#L427

Probably there are some memory issues with the code, I am working on analyzing with valgrind and any tools that can help on improving the code. Any help is appreciated because my experience with C++ is this project (and the original code is not mine).