Commit graph

789 commits

Author SHA1 Message Date
LDj3SNuD
ff86f3e54c Merge branch 'master' into aot 2019-10-17 11:27:26 +02:00
Alex Barney
8a8ea4c8c0 Update to LibHac 0.6.0 (#792)
* Update to LibHac 0.6.0

* Create an IFileSystemProxy object from LibHac

* Rename rc -> result

* Alignment and spacing

* Result formatting

* Spacing

* Sort usings
2019-10-17 08:17:44 +02:00
Ac_K
c0fe6cdca0 Move InvalidSystemResourceException with the other Exceptions (#794)
* Move InvalidSystemResourceException with the other

`InvalidSystemResourceException.cs` was in `Ryujinx.HLE/Resource` who didn't make sense since it's the only file in the folder, and other exceptions class are in `Ryujinx.HLE/Exceptions`.

* Fix empty lines
2019-10-16 11:30:36 +11:00
LDj3SNuD
f9ace46353 Merge branch 'master' into aot 2019-10-14 22:57:34 +02:00
riperiperi
17d3c75df4 Fix behaviour when an analog trigger is assigned to a button. (#790) 2019-10-13 19:45:12 +02:00
gdkchan
306eeead06
Update license (#788)
After some internal discussion, we decided to change the project license to MIT. I have already talked with most contributors privately, and none of them are against the change. Still, if you're a contributor and you're against the change, feel free to voice your concerns here.

Obviously, any code before the license change can be still used under the terms of the old license. But any new code after the change will be under the terms of the new license.
2019-10-12 23:48:31 -03:00
Thomas Guillemard
0bce40e2ed Fix TimeZoneBinary dispose issues (#785)
* Fix TimeZoneBinary dispose issues

THis fix a regression on Pokémon Let's Go Eevee! (and
probably other games) caused by #783.

* Address Moosehunter's comment
2019-10-11 18:05:10 +02:00
Ac_K
c17e1f99f0 audout:u: Implement SetAudioOutVolume and GetAudioOutVolume (#781)
* audout:u: Implement SetAudioOutVolume and GetAudioOutVolume

- Implementation of `audout:u` SetAudioOutVolume and GetAudioOutVolume (checked with RE).
- Add Get and Set for Volume into audio backends.
- Cleanup of all audio backends to follow the `IAalOutput` structure and .NET standard.
- Split OpenAL backend into 2 files for consistency.

* Address comments

* Fix the volume calculation
2019-10-11 17:54:29 +02:00
Thomas Guillemard
4210fe2b7b Fix error code returned by CloseSession (#787)
When we close a session via IPC, we should return an error code.

This fix an assert in some games that are shipped with debug modules.
2019-10-11 17:53:45 +02:00
Thomas Guillemard
9142aca48f Fix hwopus DecodeInterleaved implementation (#786)
* Fix hwopus DecodeInterleaved implementation

Also implement new variants of this api.

This should fix #763

* Sample rate shouldn't be hardcoded

This fix issues while opening Pokémon Let's Go pause menu.

* Apply Ac_K's suggestion about EndianSwap

* Address gdkchan's comment

* Address Ac_k's comment
2019-10-11 17:22:24 +02:00
Thomas Guillemard
1aba033ba7 Update time implementation to 9.0.0 (#783)
* Fix 9.0.0 related services bindings

This was wrong because of a mistake on switchbrew.

* Fix wronog cmdid for ISteadyClock::GetTestOffset/SetTestOffset

* Update ClockCore logics to 9.0.0

Also apply 9.0.0 permissions and comment time:u, and time:a (as those
are going to be moved)

* Move every clocks instances + timezone to a global manager

* Start implementing time:m

Also prepare the skeleton of the shared memory

* Implement SystemClockContextUpdateCallback and co

* Update StaticService to 9.0.0

* Update ISystemClock to 9.0.0

* Rename IStaticService and add glue's IStaticService

* Implement psc's ITimeZoneService

* Integrate psc layer into glue for TimeZoneService

* Rename TimeZoneManagerForPsc => TimeZoneManager

* Use correct TimeZoneService interface for both StaticService implementations

* Accurately implement time shared memory operations

* Fix two critical flaws in TimeZone logic

The first one was the month range being different fron Nintendo one
(0-11 instead of 1-12)

The other flaw was a bad incrementation order during days & months
computation.

* Follow Nintendo's abort logic for TimeManager

* Avoid crashing when timezone sysarchive isn't present

* Update Readme

* Address comments

* Correctly align fields in ISystemClock

* Fix code style and some typos

* Improve timezone system archive warning/error messages

* Rearrange using definitions in Horizon.cs

* Address comments
2019-10-08 14:48:49 +11:00
LDj3SNuD
08746f51c3
Nits. 2019-10-05 02:09:48 +02:00
LDj3SNuD
83b263115b Merge remote-tracking branch 'upstream/master' into aot 2019-10-05 01:48:53 +02:00
LDj3SNuD
16869402bf Add Tbx Inst. (fast & slow paths), with Tests. (#782)
* Update OpCodeTable.cs

* Update InstName.cs

* Update InstEmitSimdMove.cs

* Update SoftFallback.cs

* Update DelegateTypes.cs

* Update CpuTestSimdTbl.cs

* Update CpuTest.cs

* Update Ryujinx.Tests.csproj

* Nit.
2019-10-04 11:43:20 -03:00
LDj3SNuD
ac81c3e362
Nit. 2019-10-04 13:06:11 +02:00
LDj3SNuD
aebb1d84a0
Nit. 2019-10-03 23:27:05 +02:00
LDj3SNuD
8bf8e24216
Update Delegates.cs 2019-10-03 21:21:16 +02:00
LDj3SNuD
02e24a0f74
Create DelegateHelpers.cs 2019-10-03 21:19:56 +02:00
LDj3SNuD
31dda8fafa
Nits. 2019-09-25 13:32:32 +02:00
LDj3SNuD
fdc18f7ddd
Nit. 2019-09-25 13:31:37 +02:00
LDj3SNuD
2aff9a3c42
Translator response tweak for Aot disabled. Nit. 2019-09-25 00:34:04 +02:00
LDj3SNuD
f0cf212ec9
Update Aot.cs 2019-09-24 01:40:20 +02:00
LDj3SNuD
22037ad131
Manage corner cases during the save phase. Nits. 2019-09-21 13:17:51 +02:00
LDj3SNuD
040dd3c5df
Merge branch 'master' into aot 2019-09-20 12:19:49 +02:00
Ac_K
92e5e3c505 am: IApplicationFunctions GetGpuErrorDetectedSystemEvent implementation (#775) 2019-09-20 14:42:32 +10:00
Ac_K
f48df486e2 Remove IntUtils and use BitUtils instead. (#774) 2019-09-20 14:41:57 +10:00
LDj3SNuD
72b9f8f0a0 Misc fixes (#772)
* Update Logger.cs

* Update MainWindow.cs

* Update SvcTable.cs

* Update SvcTable.cs

* Update SvcTable.cs
2019-09-19 20:59:48 -03:00
Ac_K
f17b772c56 audren: Fix AudioRenderer implementation (#773)
* Fix AudioRenderer implementation

According to RE:
- `GetAudioRendererWorkBufferSize` is updated and improved to support `REV7`
- `RequestUpdateAudioRenderer` is updated to `REV7` too

Should improve results on recent game and close #718 and #707

* Fix NodeStates.GetWorkBufferSize

* Use BitUtils instead of IntUtils

* Nits
2019-09-20 01:49:05 +02:00
LDj3SNuD
a4a7b651e5
Update Translator.cs 2019-09-19 12:25:24 +02:00
LDj3SNuD
fff054b6a3
Update MemoryManager.cs 2019-09-19 12:14:13 +02:00
Ac_K
a0720b5681 Refactoring HOS folder structure (#771)
* Refactoring HOS folder structure

Refactoring HOS folder structure:

- Added some subfolders when needed (Following structure decided in private).
- Added some `Types` folders when needed.
- Little cleanup here and there.
- Add services placeholders for every HOS services (close #766 and #753).

* Remove Types namespaces
2019-09-19 10:45:11 +10:00
LDj3SNuD
ab1afd3bd2
Allow to change compression level. 2019-09-19 00:45:58 +02:00
LDj3SNuD
97051bb4a4
Opt.. 2019-09-17 20:52:06 +02:00
LDj3SNuD
47a2606124
Opt.. 2019-09-17 20:51:12 +02:00
LDj3SNuD
e6a07d8119
Opt.. 2019-09-17 20:50:17 +02:00
LDj3SNuD
624b9662fa
Opt.. 2019-09-17 20:48:50 +02:00
LDj3SNuD
b48b542c06
Nits. 2019-09-15 14:13:40 +02:00
LDj3SNuD
92d02ce4f5
Update Aot.cs 2019-09-15 02:59:30 +02:00
LDj3SNuD
ab87872574
Update Translator.cs 2019-09-15 02:58:39 +02:00
LDj3SNuD
02cd5d3e70
Add comment. Nits. 2019-09-12 12:38:20 +02:00
LDj3SNuD
21d34c1e6f
10 fewer MSIL bytes for us 2019-09-12 00:54:12 +02:00
LDj3SNuD
780ce7a492
Nit. 2019-09-11 20:19:52 +02:00
LDj3SNuD
81e992b5b3
Nit. 2019-09-11 20:19:09 +02:00
LDj3SNuD
bcb50f0ef8
Nit. 2019-09-11 19:36:02 +02:00
LDj3SNuD
bacda14599
Update Delegates.cs 2019-09-11 17:11:52 +02:00
LDj3SNuD
7657ede597
Update InstEmitMemoryHelper.cs 2019-09-11 17:11:11 +02:00
LDj3SNuD
18240cef6c
Update MemoryManager.cs 2019-09-11 17:10:26 +02:00
LDj3SNuD
2b154b216a
Update Translator.cs 2019-09-11 17:09:43 +02:00
LDj3SNuD
cff5653990
Update RelocEntry.cs 2019-09-11 17:09:07 +02:00
LDj3SNuD
2220bed33f
Update Aot.cs 2019-09-11 17:08:39 +02:00