-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GNUFrame is still needed? #37
Comments
Actually forget this. It is still needed by |
I wanted to add an argument to the constructor of CommonFrame, but I am getting confused with multiple / virtual inheritance... let me revisit it. |
@audetto I'm not building Anyway, I would suggest revisiting the entire hierarchy of "frames". Maybe like this: classDiagram
FrameBase <|-- CommonFrame
CommonFrame <|-- MarianiFrame
CommonFrame <|-- LinuxFrame
LinuxFrame <|-- SDLFrame
class CommonFrame {
Lifecycle (from SDLFrame)
Execute (from SDLFrame)
FrameBuffer (from LinuxFrame)
}
class LinuxFrame {
Directories (from GNUFrame)
}
class SDLFrame {
Bitmaps
Key/mouse/drag/drop handling
Window title, icon
}
class MarianiFrame {
Directories
Bitmaps
Key/mouse/drag/drop handling
}
I can try refactoring it as above and sending you a PR if you like. Because right now |
The only thing I need to be careful about is Lifecycle and Execute as I still want to handle libretro and the ncurses frontend (which could be improved anyway). Are you able to tell me exactly which methods (from SDL Frame) you use? |
Yup. Here's the diff that reparents (This change would bring the |
Thank you. I will have a look. Your issue sounds very much the same as mine, so I hope we can fix it. |
https://github.com/sh95014/AppleWin/tree/frame-refactor-2023 removes |
I have merged audetto#124 I guess I can sort out |
With your latest changes, I was able to remove all downstream |
See sh95014#37 Signed-off-by: Andrea Odetti <[email protected]>
Hi,
I did introduce
GNUFrame
to ease the native mac os build.audetto@f03c09d
I had a quick look at this repo and I am not sure it is (ever was) still needed?
Can I merge CommonFrame and GNUFrame back together?
The text was updated successfully, but these errors were encountered: