summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/Main.cpp
AgeCommit message (Collapse)Author
2018-06-26Remove DolphinWXspycrab
2018-05-28Common: Move host communication enum to Host.hLioncash
Given this is actually a part of the Host interface, this should be placed with it. While we're at it, turn it into an enum class so that we don't dump its contained values into the surrounding scope. We can also make Host_Message take the enum type itself directly instead of taking a general int value. After this, it'll be trivial to divide out the rest of Common.h and remove the header from the repository entirely
2018-04-09DolphinWX: Set C++ localeJosJuice
After 3a83ebc, the Show System Clock feature started using the unfortunate combination of MM/DD/YY dates (rare outside of the US) and 24-hour time (rare in the US) regardless of the user's locale settings. This commit makes it use the configured locale again. I've noticed one minor difference in behavior between now and before 3a83ebc: The new way of setting the C/C++ locale seems to treat "en" as "en-US", but the wx way of setting the C locale treated it as "en-GB" (at least on Windows).
2017-12-26Redesign the ability to load state at bootJosJuice
BootParameters can now contain the path of a savestate to load at boot. Movie has been made to use this instead of poking at Core.cpp's state.
2017-12-07Merge pull request #6220 from leoetlino/utf8Pierre Bourdon
WX: Fix argument parsing
2017-12-04DolphinWX/Main: Fix shader compilation dialog translationsLioncash
Fixes issue 10685
2017-11-26WX: Fix argument parsingLéo Lam
Manually convert each argument to a UTF-8 std::string, because the implicit conversion for wxCmdLineArgsArray to char** calls ToAscii (which is obviously undesired). Fixes https://bugs.dolphin-emu.org/issues/10274
2017-10-24UI: Implement a command line option to boot NAND titleLéo Lam
2017-09-09Common: Move version strings to their own headerLioncash
Ideally Common.h wouldn't be a header in the Common library, and instead be renamed to something else, like PlatformCompatibility.h or something, but even then, there's still some things in the header that don't really fall under that label This moves the version strings out to their own version header that doesn't dump a bunch of other unrelated things into scope, like what Common.h was doing. This also places them into the Common namespace, as opposed to letting them sit in the global namespace.
2017-08-04DolphinWX: Prevent Dolphin to be shutdown when closing cmd.exeSepalani
2017-08-03MsgHandler: small cleanupMichael M
2017-07-30DolphinWX: Add a progress dialog host commandStenzek
Allows feedback from backends to be communicated to the user when long-running operation are performed (e.g. shader compilation).
2017-07-23Move the Wiimote connect code out of HostLéo Lam
I don't know who thought it would be a good idea to put the Wiimote connect code as part of the Host interface, and have that called from both the UI code and the core. And then hack around it by having "force connect" events whenever Host_ConnectWiimote is called from the core...
2017-07-15Remove Wii Remote connection status from status barLéo Lam
Showing the Wii remote connection status leads to inconsistent UX, because we don't do anything like that for GameCube controllers or with Bluetooth passthrough. It's also questionable how useful it is given that: * it doesn't print the number of connected remotes, just that one remote is connected, connecting or not connected, so the only info it provides is actually wrong when using multiple remotes; * this user-facing feature is actually broken in master and no one has complained AFAIK, which means people don't really rely on it; * the status bar isn't visible most of the time unless the user is using render to main or deliberately keeping the main window's status bar visible by moving the render window and they're not too far away from their screen; * emulated Wii remotes now reconnect on input, which means that there is less of a need to actually know at all times whether a remote is connected, since pressing any button will reconnect it and provide immediate, visible feedback via OSD messages and the Wii remote pointer appearing.
2017-07-12DolphinWX: fix input bitmaps not working when background input is offMichael Maltese
2017-06-23DolphinWX: show simple message about scanning in statusbar.Shawn Hoffman
2017-06-23DolphinWX: defer gamelist scanning and switch to single-file cache.Shawn Hoffman
2017-06-12Silent GameList PNG warningsSepalani
2017-05-14Host: Get rid of Host_SetStartupDebuggingParameters()Lioncash
This is something that should be the responsibility of the frontend booting the game. Making this part of the host 'interface' inherently requires frontends to leak internal details (much like the other UI-related functions in the interface). This also decouples more behavior from the debugger and the initialization process in the wx frontend. This also eliminates several usages of the parent menubar in the debugger code window.
2017-05-02Merge pull request #5350 from lioncash/frameJosJuice
Frame: Normalize member names
2017-05-01Frame: Normalize member namesLioncash
2017-04-26Make ENABLE_ANALYTICS=0 do somethingspycrab
2017-04-08VideoConfigDiag: Move event implementations into the cpp fileLioncash
Also removes the unused Event_Adapter event stub which did nothing. It wasn't even hooked up to wx's event system. Allows removing several includes from the header file and moving them to the cpp file. Prevents includes being dumped into other source files that include the header. This uncovered an indirect include in Main for MsgHandler utilities.
2017-03-25WX: Redirect stdout to console outputLéo Lam
Thank Windows for its default console handling. This fixes std::cout not working on Windows.
2017-03-25WX: Move init mutex lock to after command lineLéo Lam
Calling std::exit while having a mutex locked leads to an assertion. Moving the lock is fine, since all it protects against is really just UICommon.
2017-02-26DolphinWX: provide empty OnCmdLineParsedMichael Maltese
Starting in #4916, upon startup wxWidgets pops up an assertion error: > ./src/common/cmdline.cpp(527): assert ""Assert failure"" failed in > FindOptionByAnyName(): Unknown option verbose Fix this by overriding wxApp::OnCmdLineParsed to disable the default handling (since we also disable the default options in DolphinApp::OnInitCmdLine).
2017-02-16Move DolphinWX over to command command line parsing.Ryan Houdek
2017-01-12DolphinWX: Always keep panic alerts on topLéo Lam
This should prevent silly things like panic alerts opening *behind* the render window and thus being impossible to see.
2017-01-04DolphinWX: pass wxMsgAlert to main thread on non-GTK tooMichael Maltese
Fixes an issue on macOS where wxMessageBox always returns wxCANCEL when not called from main thread.
2016-12-20Merge pull request #4521 from JosJuice/tgcAnthony
Add TGC disc image compatibility
2016-12-18Add TGC disc image compatibilityJosJuice
2016-12-07DolphinWX: Add 'DisableTooltips' config optionEthan Lee
(Revision 2: Remove checkbox from WX GUI)
2016-11-11Host: Remove the Host_RequestFullscreen() method.Jules Blok
No longer needed, since the exclusive mode switch is now handled synchronously on the CPU thread.
2016-11-11BlockingLoop: Yield to UI message pump while waiting.Jules Blok
2016-10-31Merge pull request #4391 from Pringo/wii-remoteMarkus Wick
Change "Wiimote" to "Wii Remote" in Interface
2016-10-28Move UiHasFocus into DolphinAppaldelaro5
Using a wxEVT_ACTIVATE_APP event.
2016-10-28Change OSD Messages and PanicAlerts to Say "Wii Remote" Instead of "Wiimote"Pringo
2016-10-04WX: HiDPI: Dolphin Main UI (CFrame)EmptyChaos
2016-10-03DolphinWX: Prevent crash with Wiimote connected on startLéo Lam
wxWidgets causes a segfault if Host_ConnectWiimote is called and we try to create an event from the Wiimote scanner thread while the GUI is still initialising.
2016-10-02Merge pull request #4015 from EmptyChaos/wx-misc-fixesshuffle2
WX: Fix pop-under (win) / game list garbage (win) / language support (Linux)
2016-10-02Merge pull request #4117 from JosJuice/wx-language-codeshuffle2
Save GUI language as string instead of wxLanguage enum
2016-09-18Don't force compile everything as Objective-C++ on macOSMichael Maltese
2016-08-31WX: Various fixes.EmptyChaos
Dolphin no longer lowers itself below the top window when opening. Dolphin no longer draws garbage lines all over the game list. Use the correct platform macros so Dolphin can actually find the translation catalogs on Unix.
2016-08-12Save GUI language as string instead of wxLanguage enumJosJuice
When 5.0-211 updated wxWidgets to 3.1.0, some entries in the wxLanguage enum were moved and added, changing the wxLanguage values. Because we save Dolphin's interface language to disk as a wxLanguage, the language you have set will mean something different depending on whether you have the updated wx version or not. For instance, setting the language to English with the updated version and then using an older version will make Dolphin use Dutch. Because we can't rely on the enum anymore, I'm replacing the "Language" setting with a "LanguageCode" setting that uses standard ISO 639 codes.
2016-07-21Don't pipe PanicAlerts to netplay window if it isn't openedLéo Lam
This is something that was quite confusing for me while trying to get netplay to work for me; once the Connect/Host buttons were pressed, the UI would hang, only to work again a few seconds later, but with no error message or explanation *at all*. Turns out this is because panic alerts are shown in the netplay window instead during netplay, even before it is even shown. This fixes it by "piping" the alerts to the netplay chat only if the netplay window is visible. (regression introduced in #3823)
2016-06-26VideoCommon: Drop GetConfigName.degasus
We're past 5.0 now, so there is no need to look for old inis.
2016-06-25nullvideo: initial release of null video backenddegasus
2016-06-24Reformat all the things. Have fun with merge conflicts.Pierre Bourdon
2016-06-19Analytics: Implement UI.Pierre Bourdon
* Opt-in popup on first start. * Checkbox and button in the main config dialog.
2016-06-19Add an Analytics reporting system.Pierre Bourdon
Fully opt-in, reports to analytics.dolphin-emu.org over SSL. Collects system information and settings at Dolphin start time and game start time. UI not implemented yet, so users are required to opt in through config editing.