adafruit / nofrendo_arcada

NES emulator in Arduino that runs on SAMD51 at full speed w/audio
https://learn.adafruit.com/nes-emulator-for-arcada
57 stars 12 forks source link

Move files to subfolder #4

Closed per1234 closed 5 years ago

per1234 commented 5 years ago

The src subfolder of the sketch is compiled recursively. The Arduino IDE only opens files from the root folder of the sketch. This allows the source files to be moved out of the root folder of the sketch so that the user is only presented with nofrendo_arcada.ino when they open the sketch. It also makes it easier to navigate through the files of the repository. The mapnnn.c files were moved to the src/mappers folder.

This is the folder structure discussed in https://github.com/adafruit/nofrendo_arcada/pull/2. However, I notice the tutorial talks about modifying configuration settings in emuapi.h. It might make sense to leave that file in the root of the sketch folder so that it will be opened in the Arduino IDE as a tab along with nofrendo_arcada.ino, allowing the user to easily modify the file. If desired, I'm happy to make that change to this PR.

ladyada commented 5 years ago

yay! ill try it