pineman / fpt

Gameboy emulator (yes, written in rust)
https://pineman.github.io/fpt
MIT License
5 stars 1 forks source link

Rc<RefCell<Gameboy>> #38

Closed diogotito closed 5 months ago

diogotito commented 5 months ago

I know this isn't the agreed upon way to share the Gameboy between the GUI and the Debugger. But look at this UI!

https://github.com/pineman/fpt/assets/3079989/417c1df7-6baa-491c-8273-88dd5afb43a0

(sorry for the light background)

pineman commented 5 months ago

nice!!!!!! looks like we'll have to keep arc mutex 😆

diogotito commented 5 months ago

Just to clear my conscience, these changes are a bit hacky and other approaches (trait Gameboy, putting the Debugger inside the Gameboy) are still on the table

pineman commented 5 months ago

I say we move forward with this for now, since we still have so much other stuff to do, and revisit it later if need be

diogotito commented 5 months ago

Now it's Rc<RefCell<Gameboy>> because Clippy told so