summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/NetPlay
AgeCommit message (Collapse)Author
2018-06-26Remove DolphinWXspycrab
2018-06-15PowerPC: Convert CPUCore enum into an enum classLioncash
Makes the enum values strongly-typed and prevents the identifiers from polluting the PowerPC namespace. This also cleans up the parameters of some functions where we were accepting an ambiguous int type and expecting the correct values to be passed in. Now those parameters accept a PowerPC::CPUCore type only, making it immediately obvious which values should be passed in. It also turns out we were storing these core types into other structures as plain ints, which have also been corrected. As this type is used directly with the configuration code, we need to provide our own overloaded insertion (<<) and extraction (>>) operators in order to make it compatible with it. These are fairly trivial to implement, so there's no issue here. A minor adjustment to TryParse() was required, as our generic function was doing the following: N tmp = 0; which is problematic, as custom types may not be able to have that assignment performed (e.g. strongly-typed enums), so we change this to: N tmp; which is sufficient, as the value is attempted to be initialized immediately under that statement.
2018-04-16TraversalClient: Make data externally read-only members privateLioncash
These are only ever queried for state, not written. Therefore, prevent writing to the members and make them private.
2018-04-12Reformat all the things!spycrab
2018-03-09Unify ISOFile (wx) with GameFile (Qt) and put it in UICommonJosJuice
The original reason I wanted to do this was so that we can replace the Android-specific code with this in the future, but of course, just deduplicating between DolphinWX and DolphinQt2 is nice too. Fixes: - DolphinQt2 showing the wrong size for split WBFS disc images. - DolphinQt2 being case sensitive when checking if a file is a DOL/ELF. - DolphinQt2 not detecting when a Wii banner has become available after the game list cache was created. Removes: - DolphinWX's ability to load PNGs as custom banners. But it was already rather broken (see https://bugs.dolphin-emu.org/issues/10365 and https://bugs.dolphin-emu.org/issues/10366). The reason I removed this was because PNG decoding relied on wx code and we don't have any good non-wx/Qt code for loading PNG files right now (let's not use SOIL), but we should be able to use libpng directly to implement PNG loading in the future. - DolphinQt2's ability to ignore a cached game if the last modified time differs. We currently don't have a non-wx/Qt way to get the time.
2017-11-19Merge pull request #5973 from ligfx/renamefifoqueueJosJuice
Rename Common::FifoQueue to Common::SPSCQueue
2017-09-27More Capitalization ChangesPEmu1
2017-08-23Rename Common::FifoQueue to Common::SPSCQueueMichael M
Since all queues are FIFO data structures, the name wasn't informative as to why you'd use it over a normal queue. I originally thought it had something to do with the hardware graphics FIFO. This renames it using the common acronym SPSC, which stands for single-producer single-consumer, and is most commonly used to talk about lock-free data structures, both of which this is.
2017-08-13NetPlayServer: handle port forwarding in constructorMichael M
2017-08-13NetPlayClient/Server: apply Parameter Object pattern to traversal parametersMichael M
2017-08-11DolphinWX: Replace "Pad buffer" with "Buffer size"JosJuice
2017-08-11Config: Include SYSCONF in base layerLéo Lam
Settings that come from the SYSCONF are now included in Dolphin's config system as part of the base layer. They are handled in a special way compared to other settings to make sure they are only loaded from and saved to the SYSCONF (to avoid different, possibly contradicting sources of truth).
2017-08-10Make DolphinQt2 netplay strings more like in DolphinWXJosJuice
2017-08-08TraversalClient: make FailureReason an enum classMichael M
2017-08-03WX: make Netplay use new-style configMichael M
2017-08-03NetPlayLauncher: store window geometry in native wxConfigMichael M
2017-06-23DolphinWX: rename CGameListCtrl -> GameListCtrlShawn Hoffman
2017-06-15Move IOFile to a separate fileJosJuice
Reduces the number of files that need to be recompiled when making changes to FileUtil.h.
2017-05-07NetPlaySetupFrame: Remove spaces that shouldn't be presentJosJuice
2017-05-01Frame: Normalize member namesLioncash
2017-04-30Mark "Host Code:" and "IP Address:" as translatableJosJuice
Also remove some spaces before colons.
2017-02-27Merge pull request #4959 from lioncash/iniAnthony
IniFile: Handle s64/u64 values
2017-02-25IniFile: Handle s64/u64 valuesLioncash
2017-02-24Fix the build on Linux when not using WX from ExternalsLéo Lam
No idea why we were including a Windows specific header *without* a ifdef.
2017-02-23Merge pull request #4889 from ligfx/netwindowAnthony
NetWindow: explicitly tell wxWidgets to clean up Windows macros
2017-02-12Rename "Copy Wii Save" to "Load Wii Save"JosJuice
That netplay uses a separate NAND isn't obvious, so what "copy" means might not be clear.
2017-02-10NetWindow: explicitly tell wxWidgets to clean up Windows macrosMichael Maltese
wxWidgets headers don't play well with some of the macros defined in Windows headers and perform their own magic to fix things, as long as they're included entirely either before or after any Windows headers. This file can cause a conflict in other DolphinWX files because NetPlay headers directly include ENet headers, which leak Windows header macros. To fix this, explicitly tell wxWidgets here that it needs to re-clean macros.
2017-02-08Merge pull request #4546 from RisingFog/tas_wii_nandMatthew Parlane
Copy Wii save for current game for Netplay and TAS
2017-02-06NetWindow: Get rid of direct use of the main_window globalLioncash
Utilizes the event system (which is what should have been done here initially), in order to prevent coupling between two different window frames. This also makes booting games more versatile using the UI event system, as the event can just act as a carrier for the filename, making directly calling boot functions unnecessary. All that's needed is for the event to propagate to the frame.
2017-02-06NetWindow: Make chat messages queue privateLioncash
This doesn't need to be publicly accessable.
2017-02-05Copy Wii save for current game for Netplay and TASChris Burgener
2017-01-24DolphinWX: Put wx related headers before including anything elseFlorent Castelli
Including Windows.h before them creates compilation errors.
2017-01-21Netplay: Fix wrong mapping info being used in dialogLéo Lam
Obvious fix for a small mistake.
2017-01-20Core: Move EXI source files to their own directoryLioncash
Keeps related source files together and cleans up the root directory of HW a little bit.
2017-01-05Don't Use Abbreviation for "Memory Card"PEmu1
2016-12-25Fix player name not being loaded when using "Host with Netplay..."JosJuice
2016-11-19NetPlay: Fix build when miniupnpc is disabled.Emmanuel Gil Peyrot
2016-11-11NetPlayLauncher: Add missing #pragma onceLioncash
2016-11-02More debug text fixesJosJuice
Also a few small non-debug text changes.
2016-10-25Change "Wiimote" to "Wii Remote" in InterfacePringo
The usage of "Wii Remote" and "Wiimote" in the interface is inconsistent. "Wiimote" is also not a real word nor is it an official product name. Therefore I have changed instances of "Wiimote" in the UI to instead say "Wii Remote". I also made a couple of minor grammatical changes as well. This is mostly a resubmission of #4338 but there are some minor other changes as well.
2016-10-07Fix missing includesLéo Lam
Aren't indirect includes great?
2016-10-04WX: Replace SetIcon with SetIcons(wxIconBundle)EmptyChaos
Setting a single icon at a single resolution doesn't scale well, Windows requires a 16x16 icon for the window and a 32x32/48x48 for the taskbar. Providing all icons produces less pixellated results at HiDPI.
2016-10-04WX: HiDPI: NetPlayEmptyChaos
Several refactors of GUI creation into separate functions where the function was too large or intermixed different concerns making it hard to modify.
2016-10-03Re-add saving position of netplay window.Shawn Hoffman
2016-10-03NetPlay: add one click hostShawn Hoffman
Add a context menu entry in main game list to host a netplay game based on saved settings. Original commit: commit 91aaa958e6af0275c07b63443938a0be471e0669 Author: Aestek <thib.gilles@gmail.com> Date: Sun Jul 24 14:51:37 2016 +0200
2016-10-03NetPlaySetupFrame: Use an anonymous namespace instead of staticLioncash
const at file scope links internally by default, so static wasn't necessary. The namespace gets rid of the other statics
2016-10-02DolphinWX: Delete traversal settings when pressing ResetJosJuice
Deleting instead of overwriting makes the INI cleaner. Also, in case we change defaults in the future, users will get the new default when using a new version even if they have pressed the Reset button in an older version.
2016-10-02DolphinWX: Less duplication for setting traversal server labelJosJuice
2016-10-02DolphinWX: Use constants for default traversal serverJosJuice
2016-10-02DolphinWX: Less duplication between GetTraversalPort/ServerJosJuice
They now also return their results the regular way.