Commit graph

2533 commits

Author SHA1 Message Date
gdkchan
97e3b3806f Improvements to audout (#58)
* Some audout refactoring and improvements

* More audio improvements

* Change ReadAsciiString to use long for the Size, avoids some casting
2024-02-22 19:13:27 -05:00
gdkchan
4300ad51d6 Fix crc32 instruction with size greater than a byte 2024-02-22 19:13:27 -05:00
gdkchan
18ff200bbf Fix CPU instruction Ld/St (single structure) with index != 0 2024-02-22 19:13:27 -05:00
gdkchan
3537dbc02c CPU fix for the cases using a Mask with shift = 0 2024-02-22 19:13:27 -05:00
gdkchan
37cf79f5cf Remove unused function from CPU 2024-02-22 19:13:27 -05:00
gdkchan
30f2d40b90 Add CRC32 instruction and SLI (vector) 2024-02-22 19:13:27 -05:00
gdkchan
9acc52a5bf Stub StartSixAxisSensor 2024-02-22 19:13:26 -05:00
gdkchan
aa9e8523b4 Add pl:u stub, use higher precision on CNTPCT_EL0 register tick count 2024-02-22 19:13:26 -05:00
emmauss
698e9052dc stub some hid service functions (#57) 2024-02-22 19:13:26 -05:00
gdkchan
9d48132a5e IAudioDeviceService -> IAudioDevice 2024-02-22 19:13:26 -05:00
gdkchan
5e3a41c0ae Fix GetAudioRenderersProcessMasterVolume which was totally wrong 2024-02-22 19:13:26 -05:00
gdkchan
d5ae91d296 Stub GetAudioRenderersProcessMasterVolume and avoid blowing up the stack inside HDomains Dispose method 2024-02-22 19:13:26 -05:00
gdkchan
3a58a95c8c Add bsd:s service variant again 2024-02-22 19:13:26 -05:00
gdkchan
5a769923b7 Allow more than one process, free resources on process dispose, implement SvcExitThread 2024-02-22 19:13:26 -05:00
Ac_K
2125aed0dc Implement BSD Service (#54)
* Implement BSD Service

- Implementation of bsd:s & bsd:u.
- Adding an EndianSwap class.

* Corrections #1

* Correction2
2024-02-22 19:13:26 -05:00
gdkchan
3bcfba9735 Do not sign-extend timestamps 2024-02-22 19:13:26 -05:00
gdkchan
4abef8f67f Allow to enable/disable memory checks even on release mode through the flag, return error for invalid addresses on SvcMap*Memory svcs, do not return error on SvcQueryMemory (instead, return reserved for the end of the address space), other minor tweaks 2024-02-22 19:13:26 -05:00
gdkchan
166949eb22 Fix EmitScalarUnaryOpF and add SSRA (vector) 2024-02-22 19:13:26 -05:00
gdkchan
b3c520448a Add FRINTM (vector) instruction 2024-02-22 19:13:26 -05:00
gdkchan
7d05be3967 Add SHLL instruction 2024-02-22 19:13:25 -05:00
gdkchan
de90af1695 Disable memory checks by default, even on debug, move ram memory allocation inside the CPU, since the size if fixed anyway, better heap region size 2024-02-22 19:13:25 -05:00
gdkchan
1ad16a1e3e Add SMLAL (vector), fix EXT instruction 2024-02-22 19:13:25 -05:00
gdkchan
1074636a60 More Vi/NvFlinger/NvDrv stubs, allow paths starting with //, do not allow paths that don't start with at least a /, increase map region size 2024-02-22 19:13:25 -05:00
emmauss
c8579fe2f1 Implement basic performance statistics (#53)
* implement basic frame time stats

* added game frame time

* made performancestatictics class non-static

* report average framerate instead of current framerate
2024-02-22 19:13:25 -05:00
emmauss
4595729ba2 stub IApplicationDisplayService:CloseDisplay (#52) 2024-02-22 19:13:25 -05:00
gdkchan
4da56923d2 Remove QueryMemory workaround 2024-02-22 19:13:25 -05:00
gdkchan
cc9120c734 Add MUL (vector by element), fix FCVTN, make svcs use MakeError too 2024-02-22 19:13:25 -05:00
gdkchan
a0313831aa Add FCVTL and FCVTN instruction (no Half support yet), stub SvcClearEvent 2024-02-22 19:13:25 -05:00
MS-DOS1999
07ce4aa21d Add Frintx_S, ASRV test, update ADCS, use Assert.Multiple and indent (#44)
* add 'ADC 32bit and Overflow' test

* Add WZR/WSP tests

* fix ADC and ADDS

* add ADCS test

* add SBCS test

* indent my code and delete comment

* '/' <- i hate you x)

* remove spacebar char

* remove false tab

* add frintx_S test

* update frintx_S test

* add ASRV test

* fix new line

* fix PR

* fix indent
2024-02-22 19:13:25 -05:00
gdkchan
c0f8441886 Allow multiple hid shared memory locations 2024-02-22 19:13:25 -05:00
gdkchan
22c1d9830a Try fixing NvFlinger rotation with scaling, return correct error code on WaitSignal timeout, always display window at the center of the screen 2024-02-22 19:13:25 -05:00
gdkchan
6a32f42d05 Improve CPU initial translation speeds (#50)
* Add background translation to the CPU

* Do not use a separate thread for translation, implement 2 tiers translation

* Remove unnecessary usings

* Lower MinCallCountForReJit

* Remove unused variable
2024-02-22 19:13:25 -05:00
gdkchan
bc8886f3dd Do not block execution on audout append buffer 2024-02-22 19:13:25 -05:00
gdkchan
38b26862b3 Remove unneeded log messages 2024-02-22 19:13:25 -05:00
gdkchan
41d4b2b9e1 Fix hid touch screen timestamp, add more log info 2024-02-22 19:13:25 -05:00
gdkchan
30f16d6274 Fix Rename* functions on FspSrv, add a separate class do hold system settings on Switch 2024-02-22 19:13:24 -05:00
gdkchan
00b5d8a6ca Fix paths using ascii instead of utf8 on IFileSystem 2024-02-22 19:13:24 -05:00
gdkchan
57d3f9cb0c Refactor HID, fix issues (#48)
* Refactor HID, fix issues

* Fix on touch screen code with wrong offset

* Don't use magic values

* Replace more magic values with actual variables, fix touch screen coordinates on different window sizes
2024-02-22 19:13:24 -05:00
gdkchan
dabaaae4dc Fix REV64 (vector) instruction 2024-02-22 19:13:24 -05:00
gdkchan
ad0f917a0f Add REV64 (vector) instruction 2024-02-22 19:13:24 -05:00
gdkchan
3ca37ac251 Add EXT, CMTST (vector) and UMULL (vector) instructions 2024-02-22 19:13:24 -05:00
Ac_K
7df0e9dfcf Update IAudioOut.cs (#51)
Little improvements, sound looks a little better...
2024-02-22 19:13:24 -05:00
emmauss
1678fdea83 stub set_sys (#49) 2024-02-22 19:13:24 -05:00
gdkchan
c13b9d4079 Enable hardware frame buffer texture scaling 2024-02-22 19:13:24 -05:00
gdkchan
cca2976ed1 Fix wrong rotation direction on nvflinger 2024-02-22 19:13:24 -05:00
Ac_K
ffd2c1c24b More stubs (#47)
* Stubs implementations

Services Bsd, Nifm & SSL stubs implementations
Objects IGeneralService, IRequest stubs implementations.
Fake-Fix GetAvailableLanguageCodes stub too ^^!

* More stubs

- Fix SvcGetInfo loops by gdkchan.
- Implement stub for Sfdnsres service.
- Add more stubs for Bsd service.

* Update ServiceSfdnsres.cs
2024-02-22 19:13:24 -05:00
Ac_K
4802b87c0c Stubs implementations (#45)
Services Bsd, Nifm & SSL stubs implementations
Objects IGeneralService, IRequest stubs implementations.
Fake-Fix GetAvailableLanguageCodes stub too ^^!
2024-02-22 19:13:24 -05:00
gdkchan
e49732f6a2 Change SvcGetInfo 5 to return actual heap size, remove AMemoryAlloc since it is no longer needed with direct memory access, move some memory management logic out of AMemoryMgr, change default virtual filesystem path to AppData 2024-02-22 19:13:24 -05:00
gdkchan
4ba3edb18c Fix corner cases of ADCS and SBFM 2024-02-22 19:13:24 -05:00
gdkchan
f4a61b2b0d Implement SvcSetMemoryAttribute 2024-02-22 19:13:24 -05:00