Commit graph

99 commits

Author SHA1 Message Date
Ac_K
8c5ebddd32 Update am service (#98)
* am services implementations

Implement:
- IAllSystemAppletProxiesService
- IApplicationCreator
- IGlobalStateController
- IHomeMenuFunctions
  * RequestToGetForeground stub.
  * GetPopFromGeneralChannelEvent stub event.
- ISystemAppletProxy
  * GetCommonStateGetter
  * GetSelfController
  * GetWindowController
  * GetAudioController
  * GetDisplayController
  * GetLibraryAppletCreator
  * GetHomeMenuFunctions
  * GetGlobalStateController
  * GetApplicationCreator
  * GetDebugFunctions

* Update ServiceFactory.cs

* Update IHomeMenuFunctions.cs

* Update IHomeMenuFunctions.cs

* Update ServiceFactory.cs
2018-04-21 16:30:06 -03:00
gdkchan
bc30bbd954 Implement the synchronization primitives like the Horizon kernel does (#97)
* Started to work in improving the sync primitives

* Some fixes

* Check that the mutex address matches before waking a waiting thread

* Add MutexOwner field to keep track of the thread owning the mutex, update wait list when priority changes, other tweaks

* Add new priority information to the log

* SvcSetThreadPriority should update just the WantedPriority
2018-04-21 16:07:16 -03:00
emmauss
63e84d8cff fix typo in log (#93) 2018-04-20 12:40:33 -03:00
gdkchan
0fcd0c3d86 Add SvcSetThreadActivity, tweak SignalProcessWideKey, add fmul32i shader instructions and other small fixes 2018-04-19 16:18:30 -03:00
gdkchan
61686fd0bc [HLE/Kernel] Fix SetThreadPriority, allow nano seconds values > int.MaxValue, fix on WaitProcessWideKeyAtomic (althrough looks like it still doesn't work properly 2018-04-19 04:06:23 -03:00
gdkchan
f167e6bf03 [HLE/Kernel] Dispose the thread wait even on exit 2018-04-19 01:01:46 -03:00
gdkchan
bb77137757 Fix bad merge, and a few other fixes 2018-04-19 00:19:22 -03:00
gdkchan
ea9f6287e0 [HLE/Kernel] Yield when cond var is signaled 2018-04-19 00:00:29 -03:00
gdkchan
e0c0813b5c [HLE/Kernel] Somewhat improved sync primitives 2018-04-18 23:52:36 -03:00
Ac_K
29095add5e Update IAudioDeviceService.cs (#87)
* Update IAudioDeviceService.cs

Stubs:
- QueryAudioDeviceSystemEvent
- GetActiveChannelCount

* Update IAudioDeviceService.cs

* Update IAudioDeviceService.cs
2018-04-17 22:52:20 -03:00
Ac_K
c605a1335e Update IAudioController.cs (#86)
* Update IAudioController.cs

Stubs:
- SetExpectedMasterVolume
- GetMainAppletExpectedMasterVolume
- GetLibraryAppletExpectedMasterVolume
- ChangeMainAppletMasterVolume
- SetTransparentVolumeRate

* Update IAudioController.cs
2018-04-17 22:39:27 -03:00
Ac_K
ca04e92846 Update IAccountServiceForApplication.cs (#85)
Stubs:
- GetUserCount (`Write(0);` throw userland error)
2018-04-17 13:41:14 -03:00
Ac_K
e9a43cd3e2 Update IHidServer.cs (#84)
* Update IHidServer.cs

Stubs:
- SetGyroscopeZeroDriftMode
- SetNpadHandheldActivationMode
- SendVibrationValue
- GetPlayerLedPattern

* Update IHidServer.cs

updated
2018-04-17 13:40:22 -03:00
emmauss
888c7ca763 Add special log for stubs (#81)
* add stub loglevel

* add log for stubbed methods
2018-04-16 21:24:42 -03:00
gdkchan
f4bb7344b1 [GPU] Fix frame buffer being upside down in some cases 2018-04-14 00:39:24 -03:00
emmauss
c58e867b0b Add logclass, made changes to logging calls (#79)
* add logclass, made changes to logging calls

* made enum parsing case insensitive

* enable logclass on partial or complete match
2018-04-13 22:02:24 -03:00
gdkchan
ce12f21b82 [HLE] Fix hid issues on some games 2018-04-13 17:39:45 -03:00
gdkchan
fab16f9aae Fix for current framebuffer issues (#78)
[GPU] Fix some of the current framebuffer issues
2018-04-13 15:12:58 -03:00
gdkchan
74a02e1397 [HLE/Service] Fix ToCalendarTimeWithMyRule (for real this time) 2018-04-10 21:18:20 -03:00
gdkchan
a15e282909 [HLE/Service] Fix ToCalendarTimeWithMyRule 2018-04-10 21:16:27 -03:00
gdkchan
d8550b8cda [CPU] Fix CNT instruction 2018-04-10 20:58:32 -03:00
gdkchan
27bde6d56f [GPU] Add support for the BC4/5 texture formats 2018-04-10 18:54:50 -03:00
gdkchan
f09ff013f7 Remove line numbers from log 2018-04-08 17:38:27 -03:00
emmauss
a78ef6b2ea log calling method in logs (#71) 2018-04-08 17:30:50 -03:00
gdkchan
eacc7689ed Merge shader branch, adding support for GLSL decompilation, a macro
interpreter, and a rewrite of the GPU code.
2018-04-08 16:41:38 -03:00
gdkchan
145598b736 Bump the maximum number of threads 2018-04-06 10:53:18 -03:00
gdkchan
66c4ef1cf3 Show service short name for unimplemented commands 2018-04-06 02:38:59 -03:00
gdkchan
3f995baf21 Fix typo 2018-04-06 01:07:51 -03:00
gdkchan
fe3609fb53 Fix possible regression on bsd 2018-04-06 01:06:34 -03:00
gdkchan
950f9debe6 Rename services with the official interface names 2018-04-06 01:01:52 -03:00
gdkchan
9b6b3eec0b Color* should be an array in NvGpuIoctlZbcSetTable 2018-04-05 10:23:52 -03:00
Starlet
e813874291 [ServiceNvDrv] Add 0x4703 ([/dev/nvhost-ctrl-gpu] NvGpuIoctlZbcSetTable) (#70)
[ServiceNvDrv] Add 0x4703 ([/dev/nvhost-ctrl-gpu] NvGpuIoctlZbcSetTable)
2018-04-05 10:18:13 -03:00
gdkchan
7f26877bc8 Fix GetAvailableLanguageCodes, stub ListAddOnContent and NvGpuAsIoctlRemap (0x4114) 2018-04-04 21:01:36 -03:00
gdkchan
02e74ca7f0 Stub ActivateKeyboard on Hid 2018-04-04 19:44:02 -03:00
gdkchan
98d0670524 Stub ActivateMouse on Hid 2018-04-04 19:39:47 -03:00
gdkchan
89862a7bfa Remove useless spacing 2018-04-04 19:29:34 -03:00
emmauss
17d74d2643 stubs (#69) 2018-04-04 19:16:59 -03:00
gdkchan
73b744328a Fix SvcGetThreadId 2018-04-04 16:07:44 -03:00
Ezekiel Bethel
41b7b97a29 SVC: Add GetInfo type 20 (added in 5.0.0) to the list of explicitly unimplemented types. (#68) 2018-03-30 12:27:48 -03:00
emmauss
54212bd622 implement isession:getperformanceconfiguration (#64) 2018-03-23 09:26:11 -03:00
emmauss
29f60856f0 handle vi:u and vi:s getdisplayservice (#66) 2018-03-23 07:44:27 -03:00
emmauss
cc45e1d2ea added set: getavailablelanguagecount (#65) 2018-03-23 07:42:34 -03:00
emmauss
820a6b55b8 rename some services (#63) 2018-03-21 20:30:10 -03:00
emmauss
5b1c84b25d rename some calls to current names (#61) 2018-03-21 13:28:12 -03:00
gdkchan
2b159a389b Allow enabling/disabling memory checks on config file 2018-03-20 18:42:13 -03:00
gdkchan
d0afedbf02 Rename IpcServices -> Services 2018-03-20 17:00:00 -03:00
gdkchan
7bdeff4bb8 Support different framebuffer offsets (fixes #59) 2018-03-20 12:18:25 -03:00
gdkchan
e60852509c [WIP] Add support for events (#60)
* Add support for events, move concept of domains to IpcService

* Support waiting for KThread, remove some test code, other tweaks

* Use move handle on NIFM since I can't test that now, it's better to leave it how it was
2018-03-19 15:58:46 -03:00
gdkchan
b3ff3e85d3 Add BFI instruction, even more audout fixes 2018-03-16 00:42:44 -03:00
gdkchan
d79cab48ae Improvements to audout (#58)
* Some audout refactoring and improvements

* More audio improvements

* Change ReadAsciiString to use long for the Size, avoids some casting
2018-03-15 21:06:24 -03:00