Ben
182aa1e39d
Merge pull request #5238 from lioncash/return
...
kernel/shared_page: Silence missing return warning in GetInitTime()
2020-04-19 11:31:45 +02:00
Mat M
8014c67faa
service: Resolve trivially avoidable copies ( #5237 )
...
* am/am: Avoid redundant copy in GetProgramInfoFromCia()
We can just use a reference to the title metadata. Avoids copying
several data entries and std::vector instances that don't need to be
copied.
* hle/service: Avoid redundant copying of std::string
GetUserPath() returns the path as a reference, so we can make use of
said reference to avoid making copies.
2020-04-19 09:24:37 +02:00
Mat M
e54b640e0b
nwm/nwm_uds: Avoid copying all elements in channel_data map where applicable ( #5236 )
...
By using a reference here, we avoid copying every single element in the
map, each of which contains a std::share_ptr and std::deque containing
std::vectors.
2020-04-19 07:57:57 +02:00
Lioncash
f7ad004fb0
kernel/shared_page: Silence missing return warning in GetInitTime()
...
We can use UNREACHABLE_MSG to indicate that this path isn't intended to
be reached, as it would indicate a wrong enum value.
2020-04-18 19:48:54 -04:00
Lioncash
8b22c80ba2
core/memory: Resolve sign conversion in serialize()
...
auto i = 0 deduces to an int, which was being compared with a size_t
within the loop condition.
2020-04-18 18:50:40 -04:00
Hamish Milne
397bd1bb73
Fix MIC_U serialization and timing ( #5223 )
...
* Fix MIC_U serialization and timing
* Better sample rate conversion
* Actually should be every 15 samples
* Reduce rounding errors
2020-04-18 20:52:56 +02:00
Sebastian Valle
75c9784239
Services/APT: Implemented the GetCaptureInfo function. ( #5194 )
...
This one is similar to the ReceiveCaptureBufferInfo function except it doesn't clear the capture buffer, according to 3dbrew.
This function is used by the Home Menu
2020-04-18 20:48:09 +02:00
Pengfei Zhu
8967b403b9
Merge pull request #5196 from Subv/apt_sys_menu_arg
...
Services/APT: Implemented the Store/LoadSysMenuArg functions.
2020-04-18 13:24:10 +08:00
Pengfei Zhu
47829ee095
Merge pull request #5213 from Subv/fs_resource
...
Services/FS: Stubbed GetSdmcArchiveResource and GetNandArchiveResource.
2020-04-18 13:22:21 +08:00
Ben
c605bb42db
Merge pull request #4908 from hamish-milne/feature/savestates-2
...
Save states
2020-04-17 21:52:51 +02:00
Hamish Milne
f5b23eff4b
Correctly register AddressArbiter as a type of WakeupCallback
2020-04-17 14:13:22 +01:00
Tobias
32cbb1bc77
input_common/udp: Port various changes from yuzu ( #5133 )
2020-04-17 02:50:28 +02:00
Hamish Milne
026a63bcf7
Merge pull request #5130 from B3n30/warn_if_cia_contend_is_encrypted
...
Show an error if CIA contend is encrypted
2020-04-17 00:09:36 +01:00
Hamish Milne
ab998b04c8
Merge pull request #5108 from B3n30/load_aes_key_X0x25_from_nativeFirm
...
Load NCCHSecure2 keyX from native firm
2020-04-17 00:07:15 +01:00
Hamish Milne
7af4b1a18e
Merge branch 'master' into feature/savestates-2
2020-04-17 00:01:43 +01:00
Hamish Milne
9afd58cec2
Merge pull request #5185 from MerryMage/fix-gdbstub
...
gdbstub: Fix some gdbstub jankiness
2020-04-16 23:52:00 +01:00
Hamish Milne
d6c84227d8
Fixed NWM not responding
2020-04-16 20:44:25 +01:00
Marshall Mohror
55ecaa0344
video_core: add ScaleForce to texture filters ( #5210 )
...
* video_core: add ScaleForce to texture filters
* fix erroneous namespace end comment
Co-Authored-By: Valentin Vanelslande <vvanelslandedev@gmail.com>
* move copyright header to shader file
Co-authored-by: Valentin Vanelslande <vvanelslandedev@gmail.com>
2020-04-16 13:33:14 -05:00
Hamish Milne
9cd669db84
Merge branch 'master' into feature/savestates-2
2020-04-16 19:03:49 +01:00
Subv
0d8c3ee1d3
Services/APT: Implemented the Store/LoadSysMenuArg functions.
...
They are called by the Home Menu during initialization.
These functions will not see much use until we actually implement application jumping and system rebooting. For now we just need them to prevent some unmapped reads in the Home Menu due to the static buffers not being properly set up.
2020-04-15 22:32:11 -05:00
Sebastian Valle
49a686faee
Merge pull request #5112 from vitor-k/ling-warnings
...
Qt Linguistic warnings
2020-04-15 22:18:08 -05:00
Subv
783e7af5b2
Services/FS: Stubbed GetSdmcArchiveResource and GetNandArchiveResource.
...
Also rewritten how GetArchiveResource works so that they all use the same interface.
We should decide what to do with these at some point.
Related to #3131 and #3110
2020-04-15 16:52:55 -05:00
Sebastian Valle
9ae37da292
Kernel/Process: Fixed scheduling multiple processes in the SysCore using Dynarmic ( #5193 )
...
* Kernel/Process: Notify the CPUs that a new pagetable has been set every time the process they're executing changes.
Previously the page table would only be changed when the current CPU's page table was changed, this lead to stale JIT states and the PC going to 0 when context-switching a different core inside the ThreadManager::SwitchContext function because the JIT for a new pagetable is only constructed upon receiving the change notification.
* Kernel/Process: Use the relevant CPU's last process to determine when to switch its current process.
Previously it was checking the kernel's current_process variable, which gets overwritten every time a CPU runs its slice. The rescheduling happens after all CPUs have run their slice so the code was effectively only checking the last CPU's process.
2020-04-15 14:35:19 +02:00
Valentin Vanelslande
263e5be78e
Fix Luigi's Mansion can't remove amiibo bug ( #5200 )
...
* Fix Luigi's Mansion can't remove amiibo bug
2020-04-14 14:33:49 +02:00
Marshall Mohror
45dfb3aacc
Merge pull request #5186 from hamish-milne/feature/fix-5067
...
Revert one change from #4844
2020-04-13 23:57:46 -05:00
Hamish Milne
3a651ac9fc
Fix clang format
2020-04-13 18:08:15 +01:00
Marshall Mohror
d5a435fdf0
Merge pull request #5162 from tbsp/log_user_ips
...
Added user IP to log events for join/left/kicked/banned
2020-04-13 12:05:42 -05:00
Hamish Milne
4d6bd9b569
Fix the merge
2020-04-13 11:50:27 +01:00
Hamish Milne
e733eed6bd
Merge remote-tracking branch 'upstream/master' into feature/savestates-2
2020-04-13 11:36:05 +01:00
Hamish Milne
d53e94db88
Show save/load errors to the user
2020-04-12 23:12:15 +01:00
Sebastian Valle
e480a8032b
Debuggers/Qt: Show the threads process names and ids in the Wai… ( #5201 )
2020-04-12 23:44:51 +02:00
Hamish Milne
915c426dc9
Merge remote-tracking branch 'upstream/master' into feature/savestates-2
2020-04-12 22:26:24 +01:00
Mat M
f75cc8be64
Merge pull request #5184 from MerryMage/dyn-update-2020-04
...
Update dynarmic (Apr 2020)
2020-04-12 09:10:21 -04:00
Hamish Milne
828f88d20a
Merge branch 'master' into feature/savestates-2
2020-04-12 11:24:06 +01:00
Hamish Milne
77c4b26e6c
Attempt to improve save/load during frame advance
2020-04-11 22:25:57 +01:00
Hamish Milne
19872b599b
Fix button state not persisting between loads
2020-04-11 20:47:14 +01:00
Hamish Milne
34af0d3452
Attempt to fix network bug
2020-04-11 20:33:38 +01:00
Hamish Milne
4be752dd98
Allow GDB debugging through loads
2020-04-11 19:47:31 +01:00
Hamish Milne
e6b40486c5
Add a couple of useful SVC logs
2020-04-11 19:47:06 +01:00
Hamish Milne
3871d74bc2
Fix mic sharedmemory not being deallocated
2020-04-11 19:33:21 +01:00
Subv
0e88940df1
Warnings/Thread: Added missing case for the Dormant thread status in ResumeFromWait.
2020-04-11 12:24:09 -05:00
Subv
47417e762b
Warnings/Qt: Removed unused variable from lambda capture list.
2020-04-11 12:24:09 -05:00
Subv
b80911162f
Warnings/QtMotionControls: There is no need to use std::move after std::make_unique.
...
This fixes a Clang warning about the move preventing copy elision (-Wpessimizing-move)
2020-04-11 12:24:09 -05:00
Subv
64b612bd60
Warnings/GLWindow: Initialize the members of OpenGLWindow in the order they are defined.
2020-04-11 12:24:09 -05:00
Subv
d17557c02c
Warnings/Network: Initialize the members of Room::RoomImpl in the order they are defined.
2020-04-11 12:24:09 -05:00
Subv
7903f6fbfc
Warnings/Network: Handle ENET_EVENT_TYPE_NONE and ENET_EVENT_TYPE_CONNECT in the network packet loop.
...
ENET_EVENT_TYPE_NONE is basically a no-op.
ENET_EVENT_TYPE_CONNECT should not happen since we are already connected. Assert in case we do receive it.
2020-04-11 12:23:57 -05:00
Hamish Milne
e9ab8f82d4
Add disk archive serialization (fix crash in driver renegade etc.)
2020-04-11 11:52:11 +01:00
Hamish Milne
a210e7e2bd
Sync GPU state after loading (fix FE terrain bug)
2020-04-11 10:28:52 +01:00
Hamish Milne
7b3a8e9bf5
Fix clang format
2020-04-10 20:22:40 +01:00
Hamish Milne
7988978661
Fix VFP registers serialization (0 fps when loading etc.)
2020-04-10 19:36:38 +01:00