Michael M
73711ef995
CMake: add DOLPHIN_CXX_FLAGS option
...
Lets you do fun stuff like turning off warnings globally, then re-enabling all warnings + extra warnings + warnings as errors for Dolphin only.
2020-02-09 01:03:36 +00:00
Michael M
71c3c5626b
AudioCommon: if backend is unknown, use default backend
2019-09-14 14:16:13 -07:00
Michael M
0f3695a14b
Remove XAudio2
...
Audio on Windows is provided by the cubeb (shared mode) and WASAPI
(exclusive mode) backends, both of which exhibit lower latency.
2019-09-14 14:08:13 -07:00
Michael M
916a97b869
TraversalServer: use C++ <chrono> instead of gettimeofday
2019-05-10 21:33:26 +02:00
Michael M
d26c1ce24d
Add hotplug support to DInput and XInput controller backends
2019-03-29 08:01:40 -05:00
Michael M
92ca6e124e
Add ControllerInterface::Win32 to wrap XInput and DInput
2019-03-29 08:01:39 -05:00
Michael M
857138a0ba
AVIDump: use dump_path rather than deprecated AVFormatContext::filename
...
AVFormatContext::filename was deprecated in lavf 58.7.100 in favor
of AVFormatContext::url. Instead of adding version-checking logic,
just use the passed-in dump path instead.
2018-07-14 12:46:04 -07:00
Michael M
e45698aaa0
AVIDump: av_register_all is deprecated/unneeded since 58.9.100
2018-07-14 12:46:00 -07:00
Michael M
2a30e64974
RenderBase: don't clamp draw size to window
...
It distorts the aspect ratio when cropping, rather than actually cropping.
2018-07-07 13:32:10 -07:00
Michael M
e7cbee235c
Convert Dolphin.Core.DefaultISO to use new-style config
2018-07-06 19:28:19 -07:00
Michael M
ce98a9c71d
Qt/MappingWindow: update devices combo box when hotplugging devices
2018-07-06 17:15:30 -07:00
Michael M
b689a195ff
Qt: add Settings::DevicesChanged signal
2018-07-06 17:15:29 -07:00
Michael M
932ca644aa
Add hotplug support to SDL2 controller backend
2018-06-04 17:50:08 +02:00
Michael M
7062967b5b
SDLJoystick: store name on creation
...
Otherwise, Dolphin will crash when the joystick is removed.
2018-06-04 17:49:21 +02:00
Michael M
0eb47e1071
CMake: make SDL a private dep of InputCommon
2018-06-04 17:49:21 +02:00
Michael M
1ba43e6c27
DSPSymbols: remove unused ReadAnnotatedAssembly
...
It's unused, and it used a weird format, something like:
```
void label_name() {
asm $REG1, $REG2
// etc
}
```
2018-03-21 17:07:27 -07:00
Michael M
ed56f319b5
DSPHost: don't try to read old annotated assembly files
...
They don't exist anymore!
2018-03-21 17:06:30 -07:00
Michael Maltese
0f574ad31f
Rename ro_RO.po -> ro.po
2018-03-19 21:40:41 -07:00
Michael Maltese
bac2361731
Rename ms_MY.po -> ms.po
2018-03-19 21:40:41 -07:00
Michael Maltese
50f005af3a
Rename da_DK.po -> da.po
2018-03-19 21:40:41 -07:00
Michael M
fc2a0a1988
FIFOPlayerWindow: don't reset frame/object limit every frame
2017-11-24 14:11:59 -08:00
Michael M
ebc547030d
BootManager: RestoreSYSCONF without resetting all other config
...
This was causing an issue where DolphinQt couldn't save graphics options
(DolphinWX doesn't hit this code path), because this function was being
called before the in-memory config was flushed to disk.
With this PR, the in-memory config isn't reset, and only SYSCONF-related
variables may get changed.
2017-11-19 17:17:59 -08:00
Michael M
5dc3ecdb72
Qt: show "Immediately present XFB" option
2017-11-19 15:37:24 -08:00
Michael M
6b7d5bb80c
DeviceQualifier: small cleanup
2017-11-19 12:46:39 -08:00
Michael M
ac855e2c93
MappingWindow: don't store devq separately from controller default device
2017-11-19 12:46:39 -08:00
Michael M
9551fe1c73
MappingWindow: m_controller is never nullptr
...
Since GCPadWiiUConfigDialog was made its own class, m_controller will
never be nullptr.
2017-11-19 12:46:38 -08:00
Michael M
a988a8a458
AudioCommon: make SetSoundStreamRunning idempotent
2017-11-19 12:09:54 -08:00
Michael M
0baddbf9a8
SoundStream: change Start/Stop to Init/SetRunning/destruct
2017-11-19 12:09:54 -08:00
Michael M
ad4a89d64b
CubebStream: implement SetRunning
2017-11-19 12:09:54 -08:00
Michael M
8e6677be90
ControllerInterface: don't call InvokeDevicesChangedCallbacks more than once when refreshing
2017-11-10 13:37:42 -08:00
Michael M
fd7cbd633e
ControllerInterface: add mutex around callbacks vector
2017-11-10 13:37:42 -08:00
Michael M
1ed7532af8
ControllerInterface: HotplugCallbacks -> DevicesChangedCallbacks
2017-11-10 13:37:42 -08:00
Michael M
7355b5f70d
ControllerInterface: invoke callbacks in AddDevice/RemoveDevice
...
Some backends already cause this to happen, so make it consistent across
systems.
2017-11-10 13:37:41 -08:00
Michael M
14f22ad829
Qt Mapping*: make logic around setting/loading settings more consistent
...
Changes:
- signal for widget value changed: sets controller setting, saves
settings
- Update(): only updates widget from existing controller setting
- Clear(): sets controller setting, saves settings, and calls Update()
2017-11-05 11:32:23 -08:00
Michael M
cb47857e8a
Rename GCPadWiiU -> GCPadWiiUConfigDialog
...
This name better reflects its new standalone functionality.
2017-11-05 08:04:16 -08:00
Michael M
a8b5eab4c4
Qt GCPadWiiU: standalone dialog, not subclass of MappingWidget
...
It uses none of the functionality of MappingWidget or the parent MappingWindow, and complicates the definition of the MappingWidget interface.
2017-11-05 08:04:16 -08:00
Michael M
27e1577da9
Qt MappingWindow: move controller type into constructor
2017-11-05 08:04:16 -08:00
Michael M
1b1dd1d749
EmulatedController: encapsulate default device behind getters/setters
2017-11-04 17:08:55 -07:00
Michael M
82129d30c9
TextureCache: don't create texture decoding resources if not enabled
2017-10-21 23:06:44 -07:00
Michael M
b031d3316c
SoundStream: rename Clear(mute) to SetRunning(running)
2017-10-21 16:28:04 -07:00
Michael M
d6985fc3e8
AudioCommon: rename ClearAudioBuffer(mute) to SetSoundStreamRunning(running)
2017-10-21 16:28:04 -07:00
Michael M
7bcdd1a46a
SoundStream: remove unused m_muted and IsMuted
2017-10-21 16:28:04 -07:00
Michael M
aa40c4a7ce
Externals: update cubeb to kinetiknz/cubeb@c2bd582
...
A bunch of changes, looks mainly like bug fixes and code cleanup.
Notable changes:
- `cubeb_get_min_latency`'s signature was changed to take params via
pointer, requiring Dolphin code to be tweaked in two places.
- A fix for kinetiknz/cubeb#320 , as reported by @shuffle2
- Fixed build on FreeBSD (kinetiknz/cubeb#344 ), as contributed by @endrift
2017-10-21 14:28:39 -07:00
Michael M
6abd1c8c99
NullSoundStream: don't call Mixer->Mix
2017-10-21 13:32:33 -07:00
Michael M
77a6003b87
CMake: don't use -std=c++1z
...
Some toolchains provide enough of C++17 to conflict with Dolphin's
included backport of std::variant and std::optional. Specifically,
the recently-released macOS 10.13 SDK does not provide the <optional>
or <variant> headers, but does provide `in_place_t` in the <utility>
header.
2017-09-27 16:06:15 -07:00
Michael M
806a8a7f32
MappingWindow: store profile filename in QComboBox userdata
2017-09-27 21:04:34 +02:00
Michael M
9245210c49
Qt: bold graphics settings on ConfigChanged, not EmulationStateChanged
...
EmulationStateChanged is functionally correct right now, but
ConfigChanged expresses more semantically why the config setting gets
re-read and the widgets updated.
2017-09-25 21:48:13 +02:00
Michael M
a334ec3daa
Qt: add ConfigChanged signal to Settings
2017-09-25 21:46:23 +02:00
Michael M
7f812a7a03
RunOnObject: accept pointers to member functions
2017-09-15 10:36:33 -07:00
Michael M
1e27e87d93
QueueOnObject: accept pointers to member functions
2017-09-15 10:36:32 -07:00
Michael M
6191f04524
Settings: register the Core::State type with Qt
2017-09-15 10:35:38 -07:00
Michael M
4ea8166b93
Qt: Advanced config pane
2017-09-15 10:35:01 -07:00
Michael M
738acb6c07
FifoRecorder: move function definitions out of header
2017-09-14 17:28:39 -07:00
Michael M
a47ce0d625
FifoRecorder: remove use of volatile
2017-09-14 17:28:39 -07:00
Michael M
60cba5722c
Qt: use translations
2017-09-14 17:15:21 -07:00
Michael M
bdcd6df459
InterfaceConfigPane: remove unneeded comment
...
It notes that using "no" for Norwegian is not allowed by wxWidgets, but
"nb" is the correct code for Norwegian Bokmål anyways.
2017-09-14 17:15:21 -07:00
Michael M
b22ed9683d
InterfacePane: add all interface languages
2017-09-14 17:15:21 -07:00
Michael M
294b1895ef
ExpressionParser: std::move() tokens vector to parser
2017-09-14 12:53:36 -07:00
Michael M
31f1c06226
ControlReference: don't reparse expression when references are updated
2017-09-14 12:53:35 -07:00
Michael M
c332580b83
ControlReference/ExpressionParser: separate parsing from binding
2017-09-14 12:53:35 -07:00
Michael M
ba87a50338
ExpressionParser: add FallbackExpression node type
2017-09-14 12:53:35 -07:00
Michael M
7e74961eb1
ExpressionParser: expose ExpressionNode directly
2017-09-14 12:53:35 -07:00
Michael M
85301e2bae
ParseStatus: replace NoDevice with EmptyExpression
2017-09-14 12:53:35 -07:00
Michael M
754efd75c5
ExpressionParser: remove DummyExpression
2017-09-14 12:53:35 -07:00
Michael M
f1ff1e3d08
ExpressionParser: clean up ControlExpression
2017-09-14 12:53:35 -07:00
Michael M
3df945f8d0
ExpressionParser: replace bare pointers with unique_ptrs
2017-09-14 12:53:35 -07:00
Michael M
c33e391d26
InputConfigDiag: don't use entire ExpressionParse namespace
2017-09-14 12:53:35 -07:00
Michael M
bbb7c17235
ExpressionParser: use internal ParseResult struct instead of out-params
2017-09-14 12:53:35 -07:00
Michael M
d2821e14fa
ParseExpression: return a std::pair
2017-09-14 12:53:34 -07:00
Michael M
3e1072b24d
Qt: use Settings::EmulationStateChanged
2017-09-13 17:30:18 -07:00
Michael M
8e805dcbf4
Core: SetOnStoppedCallback -> SetOnStateChangedCallback
2017-09-13 17:30:18 -07:00
Michael M
22a9a08b24
Add Core::State::Starting
2017-09-13 17:30:18 -07:00
Michael M
d217e797f2
move Movie::DoFrameStep to Core::DoFrameStep
2017-09-13 17:30:18 -07:00
Michael M
b58f8d19ab
Rename Common::FifoQueue to Common::SPSCQueue
...
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-23 17:00:52 -07:00
Michael M
d00ecb7231
GameFile: remove unused m_company
2017-08-22 12:18:49 -07:00
Michael M
5f30ebed23
GameFile: don't store file path parts
2017-08-21 23:55:45 -07:00
Michael M
e88b5f4254
GameFile: add missing include for QFileInfo
2017-08-21 23:55:45 -07:00
Michael M
061da1300a
GameFile: handle missing banners in UI instead
...
Currently, GameFile returns a generic banner if the file didn't have one
available (either because the file format doesn't support it, or because
it's a Wii file without an associated save).
It makes more sense to handle the lack of banner in the UI layer. The
game list will use the generic missing banner explicitly (no change from before), and the game info window now omits the banner display entirely if the file didn't have one (since it's not useful to display/allow the user to save the "missing banner" banner).
2017-08-21 18:00:04 -07:00
Michael M
8c13e0230c
GameTracker: use WorkQueueThread
2017-08-20 14:40:56 -07:00
Michael M
de9378bf63
Common: add WorkQueueThread
2017-08-20 14:40:56 -07:00
Michael M
1a59ea3adb
GameFile: don't assign English long name for ELF/DOLs
2017-08-20 13:50:24 -07:00
Michael M
f3ab974bc6
GameListModel: fallback to file name if long name is empty
2017-08-20 13:50:24 -07:00
Michael M
6bfb280cec
GameListModel: make UpdateGame take a const ref
2017-08-20 13:46:49 -07:00
Michael M
f724a06108
GameListModel: make UpdateGame update existing files as well
2017-08-20 13:46:49 -07:00
Michael M
623026f420
Connect to Settings::PathAdded/Removed directly in GameListModel
...
It no longer makes sense to connect these signals in GameList, since
GameListModel is now owned by Settings.
2017-08-19 15:59:40 -07:00
Michael M
7d9ad88bc5
Add initial paths to GameTracker after construction
...
It's strange to see GameTracker add its own initial paths in
construction, because you might expect a race condition where the
GameLoaded signal is emitted before it gets connected to in
GameListModel.
In fact, this doesn't happen, but only because of how it abuses the Qt
signals mechanism to load files asynchronously: GameLoader emits a
GameLoaded signal which gets forwarded to the GameTracker::GameLoaded
signal _after_ control returns to the event loop, at which point
GameListModel has connected.
This commit moves the logic of adding initial paths out of GameTracker
to a point after the signals are connected, which is more obvious and
doesn't rely on how GameTracker implements concurrency.
2017-08-19 15:59:40 -07:00
Michael M
abf55be70d
RunOnObject: add missing QThread include
2017-08-17 16:41:35 -07:00
Michael M
fc306faad8
CMake: use miniupnpc target instead of global vars
2017-08-17 13:15:02 -07:00
Michael M
26f5d500b9
FindMiniupnpc: expose imported library target
2017-08-17 13:15:02 -07:00
Michael M
bd29183d76
miniupnpc: expose namespaced target alias
2017-08-17 13:15:02 -07:00
Michael M
b8ead9b8a9
miniupnpc: use correct include dirs for cmake
2017-08-17 13:15:02 -07:00
Michael M
1ade08c607
Fix two small lint errors
2017-08-13 19:06:10 -07:00
Michael M
4c92d8c81e
Tools/lint.sh: lint all of Source, not just Core
2017-08-13 19:04:56 -07:00
Michael M
7d791cb6f6
BitUtilsTest: update to pass clang-format
2017-08-13 19:04:56 -07:00
Michael M
8702ffccc3
UPnP: use value-initialization instead of std::memset
2017-08-13 18:50:53 -07:00
Michael M
0e51082bbb
UPnP: move variable declaration to where it's used
2017-08-13 18:50:52 -07:00
Michael M
7ce9f1f984
UPnP: remove unneeded vector in InitUPnP()
2017-08-13 18:50:52 -07:00
Michael M
b5d070b0cf
NetPlayServer: handle port forwarding in constructor
2017-08-13 18:50:52 -07:00
Michael M
4b50e77a26
NetPlayClient/Server: apply Parameter Object pattern to traversal parameters
2017-08-13 18:50:52 -07:00
Michael M
fdb5828d62
Qt MainWindow: clean up Netplay settings logic
2017-08-13 18:50:52 -07:00