mirror of
https://github.com/daniel5151/ANESE.git
synced 2025-04-02 10:32:00 -04:00
1) Movie Cleanup - Movie recording and playback are now well-defined classes. - Infrastructure is in place to enable lazy-loading from a fm2 file (if need be). - File I/O is not handled in main anymore AT ALL 2) Reorg Memory Management I changed the ROM class to be a zero-allocation wrapper around existing memory, essentially just there to bound check raw ROM, and to wrap it in a Memory interface. I also reintroduced the Cartridge class, since in hindsight, deleting it completely was overkill, and that it's actually a useful memory-management construct. It owns both the ROM_File and the Mapper, and frees them automatically. The only real difference between the new Cartridge class and the old one is that now, instead of being the entire class being passed to the nes subsystem, one simply uses a getter to retrieve the Mapper, (the important bit) to pass that to the NES.
11 lines
337 B
Bash
11 lines
337 B
Bash
echo "[cppcheck] starting"
|
|
cppcheck \
|
|
--enable=unusedFunction,missingInclude,warning,style,performance,portability \
|
|
--suppress=missingIncludeSystem \
|
|
--std=c++11 \
|
|
-I ./src \
|
|
./src \
|
|
2> cppcheck.txt && sort cppcheck.txt \
|
|
| sed -e "/constructor with 1 argument/d" \
|
|
| sed -e "/C-style pointer casting/d"
|
|
rm cppcheck.txt
|