Morph
d7537c6638
common: fs: file: Flush the file to the disk when Flush() is called
std::fflush does not guarantee that file buffers are flushed to the disk.
Use _commit on Windows and fsync on all other OSes to ensure that the file is flushed to the disk.
5 years ago
Morph
88f735f55a
Merge pull request #6452 from german77/sixaxis_firmware_stub
hid: Stub IsFirmwareUpdateAvailableForSixAxisSensor
5 years ago
Morph
eadb781320
configure_cpu_debug: Clarify settings behavior
This makes it clear that the disabled settings only take effect when CPU Accuracy is set to Debug Mode.
5 years ago
Morph
367c4a676f
common: fs: Use the normal directory iterator in *Recursively functions
MSVC's implementation of recursive_directory_iterator throws an exception on an error despite a std::error_code being passed into its constructor. This is most likely a bug in MSVC's implementation since directory_iterator does not throw an exception on an error.
We can replace the usage of recursive_directory_iterator for now until MSVC fixes their implementation of it.
5 years ago
bunnei
2e29db6e91
Merge pull request #6453 from lat9nq/libusb-fix-msvc
externals: Don't set FOUND or VERSION on LIBUSB
5 years ago
lat9nq
9e98d307a1
externals: Don't set FOUND or VERSION on LIBUSB
Fixes an issue where libusb.h wouldn't be found when building yuzu on
MSVC.
This only affects the "traditional" CMake pathway for linking libusb to
yuzu AKA MSVC. For autotools we still want to set these variables before
configuring SDL.
5 years ago
bunnei
1068cfe91d
Merge pull request #6451 from Morph1984/check-disk-space-dump
yuzu: main: Ensure enough space is available for RomFS dumping
5 years ago
german77
7ae1e7c0bb
hid: Stub IsFirmwareUpdateAvailableForSixAxisSensor
5 years ago
Mai M
653edced9b
Merge pull request #6422 from FernandoS27/i-am-the-senate
Implement/Port Fastmem from Citra to Yuzu
5 years ago
Morph
dfca39bf9c
yuzu: main: Ensure enough space is available for RomFS dumping
This warns the user if there isn't enough free space to dump the entire RomFS to disk. It requires at least the size of the extracted RomFS + 1 GiB as a buffer of free space.
5 years ago
bunnei
27976eb579
Merge pull request #6443 from Morph1984/k-light-condition-variable
kernel: KLightConditionVariable: Update implementation to 12.x
5 years ago
Markus Wick
161ade6da0
common/host_memory: Implement a fallback if fastmem fails.
This falls back to the old approach of using a virtual buffer.
Windows is untested, but this build should fix support for Windows < 10 v1803. However without fastmem support at all.
5 years ago
ReinUsesLisp
f664a4d4c1
common/host_shader: Load Windows 10 functions dynamically
Workaround old headers and libraries shipped on MinGW.
5 years ago
Fernando Sahmkow
86b5f4a630
GPUTHread: Remove async reads from Normal Accuracy.
5 years ago
ReinUsesLisp
57252b0c1d
rasterizer: Update pages in batches
5 years ago
ReinUsesLisp
f36a769085
host_memory: Support staged VirtualProtect calls
5 years ago
FernandoS27
3147b9e34c
General: Add settings for fastmem and disabling adress space check.
5 years ago
Markus Wick
8d2a08553e
common/host_memory: Optimize for huge tables.
In theory, if we have 2 MB continously mapped, this should save one layer of TLB.
Let's make it at least more likely by aligning the memory.
5 years ago
Markus Wick
99f6d60a99
core: Make use of fastmem
6 years ago
ReinUsesLisp
ba034a5724
tests: Add tests for host memory
5 years ago
Markus Wick
9a4cec64e1
common/host_memory: Add Linux implementation
5 years ago
ReinUsesLisp
1f0491900b
common/host_memory: Add interface and Windows implementation
5 years ago
Morph
41e6dd733c
Merge pull request #6450 from lat9nq/update-sdl
externals: Update SDL to 2f248a2a
5 years ago
lat9nq
79090c34bf
externals: Update SDL to 2f248a2a
5 years ago
bunnei
78d9caa5df
Merge pull request #6407 from lat9nq/fix-libusb-2
cmake: Use autotools for libusb linking generally on GNU, and cleanup
5 years ago
bunnei
f0732b09b8
Merge pull request #6445 from degasus/fix_ubsn
Fix GCC undefined behavior sanitizer.
5 years ago
Morph
006ca28fc8
kernel: Unconditionally set thread state when appropriate
5 years ago
Morph
3509855179
kernel: KLightConditionVariable: Update implementation to 12.x
Updates the implementation of KLightConditionVariable to FW 12.x
5 years ago
bunnei
531246344f
Merge pull request #6444 from bunnei/fix-sm-sessions
hle: service: sm: Remove redundant session reservation, etc.
5 years ago
Markus Wick
e7c2b054c1
Fix GCC undefined behavior sanitizer.
* Wrong alignment in u64 LOG_DEBUG -> memcpy.
* Huge shift exponent in stride calculation for linear buffer, unused result -> skipped.
* Large shift in buffer cache if word = 0, skip checking for set bits.
Non of those were critical, so this should not change any behavior.
At least with the assumption, that the last one used masking behavior, which always yield continuous_bits = 0.
5 years ago
bunnei
cb75c58714
hle: service: sm: Remove redundant session reservation, etc.
- We were double-reserving, causing us to run out of sessions in Pokemon Sword & Shield.
5 years ago
bunnei
63bc3eef98
hle: service: Increase arbitrary max sessions limit.
- Pokemon Sword/Shield are still hitting this for some reason, causing an svcBreak.
5 years ago
bunnei
1767bdec81
Merge pull request #6441 from bunnei/fix-session-handler
hle: kernel: KServerSession: Fix client disconnected.
5 years ago
bunnei
6c3c99c915
hle: kernel: KClientPort: Add an assert for session count.
- Prevents us from over decrementing num_sessions.
5 years ago
bunnei
73d30a5446
hle: service: sm: Fix GetService setup of session & port.
5 years ago
bunnei
407cf4ffdb
hle: service: Use correct size for ServerSessionCountMax.
5 years ago
bunnei
6c84a78d74
hle: kernel: KServerSession: Fix client disconnected.
- Prevents a cloned session's handler from being overwritten by another disconnected session.
- Fixes session handler nullptr asserts with Pokemon Sword & Shield.
5 years ago
Ameer J
92c86d0bed
Merge pull request #6439 from lat9nq/ci-no-7z
ci: common: Remove 7z packaging
5 years ago
Mai M
433409dd67
Merge pull request #6440 from bunnei/cancel-synch
kernel: svc: Add missing error check to CancelSynchronization.
5 years ago
lat9nq
bffabb7744
ci: windows: Compress using xz
Use XZ instead of gzip for packing. Should save about 10 MB.
5 years ago
bunnei
d06f7d9f6c
kernel: svc: Add missing error check to CancelSynchronization.
- Avoids a potential crash if the handle is invalid, and also makes this code accurate to real kernel behavior.
5 years ago
lat9nq
f8122f934d
ci: common: Remove 7z packaging
Removes the 7z from being package during CI, as only .tar.xz preserves
information needed on Linux, and otherwise is just extremely redundant
to package in addition to the .tar.xz. This affects Linux releases and
PR-verify artifacts only. MSVC releases do not use this script to my
knowledge.
5 years ago
Mai M
7b6da43bbf
Merge pull request #6436 from liushuyu/master
src/common/CMakeLists.txt: fix variable escaping
5 years ago
bunnei
c9d0bbb9f9
hle: service: Increase arbitrary max sessions limit.
- Pokemon Sword/Shield are still hitting this for some reason, causing an svcBreak.
5 years ago
bunnei
9d266a4aa3
Merge pull request #6413 from Kewlan/limitable_input_dialog_limit
limitable_input_dialog: Implement character limiter
5 years ago
liushuyu
44a2374808
src/common/CMakeLists.txt: fix variable escaping
5 years ago
Morph
e68dd33d77
Merge pull request #6435 from lioncash/nodisc2
common/fs/path_util: Remove [[nodiscard]] from function with void return
5 years ago
bunnei
7cf63de1f9
Merge pull request #6434 from lioncash/tcontext
configure_ui: Add translation context for file-scope strings
5 years ago
bunnei
e43731d736
Merge pull request #6428 from bunnei/service-thread-crash-fix
hle: kernel: Remove service thread manager and use weak_ptr.
5 years ago
Lioncash
178a1fe364
common/fs/path_util: Remove [[nodiscard]] from function with void return
We can't make use of the return value here, since we don't a return
value to work with.
5 years ago