summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/MainNoGUI.cpp
AgeCommit message (Collapse)Author
2015-07-25Revert "Join the emu thread in Core::Stop. Get rid of Core::Shutdown which ↵Jules Blok
did that before." This reverts commit ba664b3293e88ddee94a4b922ced192f3270b569. Added documentation to Core::Shutdown() to prevent breaking changes.
2015-06-08Revert "SDL: handle SDL_QUIT event"Matthew Parlane
2015-06-05SDL: handle SDL_QUIT eventTillmann Karras
Using SDL_INIT_JOYSTICK implies SDL_INIT_EVENTS which installs a signal handler for SIGINT and SIGTERM. There will be a way to prevent this in 2.0.4 but for now we'll need to handle SDL_QUIT.
2015-06-01MainNoGUI: support real Wiimotesaerisarn
This should be restructured to move the connection logic into Core instead of duplicating it in every Host, but alas, I'm too lazy for that right now. ~flacs
2015-05-25Set copyright year to when a file was createdTillmann Karras
2015-05-25Update license headers to GPLv2+Tillmann Karras
2015-04-18no-gui: fix help stringdegasus
2015-04-16Merge pull request #2295 from comex/fix-usb-threadingskidau
Fix threading issues
2015-04-16NoGUI: Don’t segfault when the DISPLAY environment variable isn’t setEmmanuel Gil Peyrot
2015-04-13Join the emu thread in Core::Stop. Get rid of Core::Shutdown which did that ↵comex
before. Core::Shutdown was only called on app exit, yet the emu thread exits whenever emulation stops; if you launched a new game it would just join via the destructor when s_emu_thread was set to a new thread. (Incidentally, the destructor also makes explicitly joining on app exit rather pointless.) Because the GUI thread wasn't waiting for the CPU thread to fully shut down, Core::IsRunning would remain true briefly after CFrame::DoStop which, given Dolphin's penchant for accessing variables belonging to other threads, can only mean trouble... In my case, because the previous commit caused UpdateGUI, which is called at the end of DoStop, to call PauseAndLock, which checks IsRunning, pressing stop at the right time would cause strange behavior.
2015-02-27Merge pull request #2129 from Sonicadvance1/shuffle_user_dirskidau
Move user directory detection location to UICommon.
2015-02-25Formatting/Whitespace CleanupStevoisiak
Various fixes to formatting and whitespace
2015-02-25Move user directory detection location to UICommon.Ryan Houdek
The UI should decide on where it wants the user directory, not our core system. This is in anticipation of some upcoming work on Android which will need proper user directory setting.
2015-01-04Host: Add Host_RendererIsFullscreen().Jules Blok
2014-12-11Silence some -Wswitch-default warnings.Rohit Nirmal
2014-11-24VideoOGL: Move X11 wxWidgets utilities to DolphinWXLioncash
2014-11-17Host: Kill off GetRenderWindowSizeLioncash
2014-11-06Remove unnecessary cstdarg header includesLioncash
2014-11-05Host: Kill off Host_SysMessageLioncash
Equivalent facilities already exist.
2014-11-02Merge pull request #1467 from waddlesplash/dolphin-qtcomex
DolphinQt: Games now boot!
2014-11-02Move GLInterface to the OGL VideoBackend's directory.Augustin Cavalier
2014-11-02Merge pull request #1468 from Tilka/cleanupRyan Houdek
Small cleanup
2014-11-02Fix warnings about non-static variablesTillmann Karras
2014-11-02Reorder MainNoGUI shutdownTillmann Karras
Before this change I always got this when closing dolphin-emu-nogui: X Error of failed request: BadWindow (invalid Window parameter) Major opcode of failed request: 10 (X_UnmapWindow) Resource id in failed request: 0x3400003 Serial number of failed request: 215 Current serial number in output stream: 219 terminate called without an active exception Aborted
2014-10-05Migrate global init stuff into UICommon.Augustin Cavalier
This avoids code duplication in a bunch of places . I also moved the NVIDIA Optimus export into VideoCommon.
2014-09-08Include CommonTypes.h instead of Common.h.Rohit Nirmal
2014-09-05Revert "Don't sleep in the event thread"Ryan Houdek
2014-09-04Don't sleep in the event threadJasper St. Pierre
The person who wrote this seemed to misunderstand how XPending and XNextEvent actually work. XNextEvent will wait in poll if there's no event yet, meaning that we don't need to sleep after we process all the events; the kernel will sleep for us. This changes indentation, so view with -w or a similar feature to understand what's actually changed here.
2014-09-03Change NULL to nullptr.Rohit Nirmal
2014-08-19Core: Move the titlebar / statusbar abstraction to DolphinWXJasper St. Pierre
The concept of a "title bar" / "status bar" shouldn't be a core concept, so remove the Host_UpdateStatusBar function, and move the code handles whether to update the status bar or titlebar into DolphinWX.
2014-08-19Core: Don't pass through a reference to the window handleJasper St. Pierre
Now that MainNoGUI is properly architected and GLX doesn't need to sometimes craft its own windows sometimes which we have to thread back into MainNoGUI, we don't need to thread the window handle that GLX creates at all. This removes the reference to pass back here, and the g_pWindowHandle always be the same as the window returned by Host_GetRenderHandle(). A future cleanup could remove g_pWindowHandle entirely.
2014-08-19MainNoGUI: Move a majority of the event handling from the GLX backendJasper St. Pierre
The only reason the GLX backend handled this at all was because MainNoGUI didn't make its own window before. This is unused in DolphinWX builds.
2014-08-19MainNoGUI: Supply a window in Host_GetRenderHandleJasper St. Pierre
Our existing code was relying on the GLX backend to create the GLX window properly, and for the rest of the code to patch that up, sort of. If we rely on Host_GetRenderHandle() returning a valid window, we can do a lot better about this. Create a simple window inside MainNoGUI to make this happen.
2014-08-19X11Utils: Explicitly pass the window to fullscreen into ToggleFullscreenJasper St. Pierre
MainNoGUI is going to create its own window soon, and we need to fullscreen that one instead of the GLX window.
2014-08-19X11Utils: Simplify the Fullscreen interfaceJasper St. Pierre
Since we only use the toggle action, only keep that.
2014-08-19MainNoGUI: Remove old OS X backend that doesn't work, rearchitectJasper St. Pierre
2014-08-19Remove support for EGL under X11Jasper St. Pierre
Now, the only supported EGL platform is Android. We might eventually add back support for EGL/X11 or EGL/Wayland, but it will have to be architected differently.
2014-08-19Remove support for WaylandJasper St. Pierre
Yes, this is a fancy new feature, but our Wayland support was particularly bitrotten, and ideally this would be handled by a platform layer like SDL. If not, we can always add this back in when GLInterface has caught up. We might be able to even support wxWidgets and GL together with subsurfaces!
2014-08-15Core: Kill off Host_ShowJitResultsLioncash
Another host function that can be killed off by simple wx event handling
2014-08-09Merge pull request #740 from lioncash/hostLioncash
Core: Kill off a few Host interface functions.
2014-08-08Core: Kill off Host_UpdateLogDisplay()Lioncash
This was actually never used as far as I can tell. There was no wx event handling done whatsoever for the global ID, So this is basically a dead function.
2014-08-08Core: Kill off Host_UpdateBreakPointView()Lioncash
Uses wxWidgets event propagation to the parent window which then appropriately handles the breakpoint list updating.
2014-08-07Fix more warnings from #579Tillmann Karras
2014-08-03Merge pull request #716 from delroth/vertex-loaderPierre Bourdon
Make vertex loader testable
2014-08-03Core: Get rid of Host_GetInstance()Lioncash
2014-08-02Move GLInterface around to remove VideoBackends dependency on DolphinWXPierre Bourdon
2014-07-26Cosmetic changes based on feedback on PR #506.Jules Blok
2014-07-21Let the Renderer decide when to exit fullscreen.Jules Blok
This ensures the transition from/to exclusive mode happens while the RenderFrame is fullscreen. This prevents fullscreen loops and relieves us of having to restore the window size after we exit fullscreen.
2014-07-16Host: Add a new "UIHasFocus" hook to determine if the UI has focusJasper St. Pierre
We can't use RendererHasFocus for this purpose because of some issues with exclusive fullscreen, and the new RendererHasFocus implementation didn't work for non-Render to Main Window cases, since the renderer window wasn't managed by wx.
2014-07-13Shutdown the Core before other components.Jules Blok
Other components depend on the EmuThread being stopped.