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
NoGUI: Create MacOS platform #11527
NoGUI: Create MacOS platform #11527
Conversation
|
I don't really know how to review the ObjectiveC code, but the rest looks fine. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BTW instead of manually handling keyboard shortcuts, if you make a menubar that includes the keyboard shortcuts you want to include, macOS should handle them for you and users can then override those with their own in System Preferences.
| #endif | ||
| #ifdef __APPLE__ | ||
| , | ||
| "macos" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
C is okay with trailing commas here, and I think it would look much better if we didn't have single lines with nothing but a comma
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wasn't exactly sure why we were doing it that way, I was just following the style
|
I'm only facing one problem, that I know of, currently and that's properly shutting down dolphin, also I accidentally added two |
|
I may of just resolved the shutdown issues |
b147fe3
to
75b0419
Compare
|
I've squashed my commits, all checks passed before I did so |
2fff45d
to
c5d73bc
Compare
|
Fixed a problem with the window not opening over terminal when launching |
|
The title could read "NoGUI: Create MacOS platform" |
|
I think this is now in a state to merge |
| @@ -112,7 +113,7 @@ @implementation WindowDelegate | |||
| - (void)windowDidResize:(NSNotification*)notification | |||
| { | |||
| if (g_renderer) | |||
| g_renderer->ResizeSurface(); | |||
| g_presenter->ResizeSurface(); | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should probably change to match?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh whoops I'll adjust that
|
This should probably be rebased to get rid of the merge commit. |
|
My plan is to rebase onto upstream, so that all the checks will pass, then I'll squash everything into one commit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good (once you squash)
|
My computer has been refusing to push the squash for some reason |
|
You need to use the |
|
It's not that, it just sits and does nothing that I can perceive, it writes everything and then just hangs, I left it running over night and all |
41c9e84
to
81e55e8
Compare
|
well ok git, let me fix that |
81e55e8
to
41c9e84
Compare
|
I'll rebase it for you, alright? |
|
That's fine with me, I'm still getting used to rebasing |
41c9e84
to
9d6394d
Compare
|
How would I do this for future reference? |
|
Assuming you're on the correct branch and the main Dolphin repository is registered as the |
|
Thanks, much appreciated! |
|
Updated the fullscreen hotkey to be the standard fullscreen hotkey for MacOS, that being |
Use MacOS Standard Fullscreen hotkey
Previously dolphin no-gui on MacOS only had the headless option, this adds another platform that uses Appkit.
I still need to add all of the keydown event's that the other platforms have.This is all complete as wellJust wanted to get feedback while I add the events.Events are now added