sqrtM / nesemu

tiny nes emulator, for fun
0 stars 0 forks source link

refactor gui directory + organize endpoints #6

Open sqrtM opened 11 months ago

sqrtM commented 11 months ago

now that the web and native applications work well, refactor the directories to keep the logic separate (there's lots of thread logic and architecture logic in the gui files right now.)

The goal is for the GUI directory to ONLY contain entry points and things related to the gui application itself. No struct declarations or thread logic. All of that should come from the CPU or NES directories.

We ideally want to have three clean entry points we can call from the root: Web, Native, and Headless (mostly to enforce good, modular code, ensuring that the CPU stuff never depends on anything from the GUI directory and doesn't cause any circular dependencies).