Commit Graph

779 Commits

Author SHA1 Message Date
James Benton
a3eefa84e6 cmake: Find WUT_RPLIMPORTGEN in toolchain. 2020-06-23 10:44:46 +01:00
Dave Murphy
b168032339 fix exit sequence 2020-06-07 13:09:11 +01:00
Dave Murphy
e096dad4c5 reworked syscalls interface 2020-06-07 13:09:11 +01:00
Maschell
9796ca64b2 wutdevoptab: Add missing RemoveDevice in __fini_wut_devoptab 2020-06-04 10:29:19 +01:00
Maschell
d659fd98d4 wutdevoptab: Reset __wut_fs_initialised and __wut_devoptab_fs_client in __fini_wut_devoptab 2020-06-04 10:29:19 +01:00
Maschell
aaa045af97
libwhb: Don't add a LogHandler if it's already in the list. (#140) 2020-06-03 21:05:08 +01:00
GaryOderNichts
27fbfd55fb
Add WHBLogConsoleSetColor (#138) 2020-05-26 09:03:19 +10:00
GaryOderNichts
05e45cc180
Add nn_pdm.rpl headers (#137)
* Add some nn_pdm.rpl headers

* nn_pdm: small fixes
2020-05-23 11:20:58 +10:00
Maschell
315f0856af
Add coreinit/bsp.h (#130)
* Add coreinit/bsp.h
- add enum BSPErrors
- add enum BSPHardwareVersions
- add function bspInitializeShimInterface
- add function bspGetHardwareVersion

See decaf for reference:
- 1dc2c3a278/src/libdecaf/src/ios/bsp/ios_bsp_enum.h
- dcd9bd1a08/src/libdecaf/src/cafe/libraries/coreinit/coreinit_bsp.h

* coreinit/bsp.h: fix enum declarations

* Add coreinit/bsp.h to the testsuite
2020-05-22 08:38:34 +10:00
Maschell
be5f1fc685
coreinit: Remove duplicate function (OSMemoryBarrier) (#135)
already exists in coreinit/cache.h
2020-05-22 08:35:59 +10:00
rw-r-r-0644
a6c336a706 h264: Move the enums out of enum.h 2020-05-21 14:12:12 +01:00
rw-r-r-0644
03ce7b3501 h264/enum.h: Add enums documentation 2020-05-21 14:12:12 +01:00
rw-r-r-0644
53e79f339a Update enum.h 2020-05-21 14:12:12 +01:00
rw-r-r-0644
c75394518d Add headers for h264.rpl (from Decaf) 2020-05-21 14:12:12 +01:00
Dave Murphy
85b6a745b1 remove unneeded WUT_PACKED
causes warnings in other places when taking address of struct members
2020-05-12 23:27:45 +01:00
James Benton
8e4ffb2fc6 coreinit: Add OSDynLoad_GetNumberOfRPLs and OSDynLoad_GetRPLInfo. 2020-05-12 07:46:54 +01:00
V10lator
0dbc7850cf
nn::swkbd::State: Name and add states (#133)
* nn::swkbd::State: Rename Unknown0 to Hidden

Signed-off-by: Thomas Rohloff <v10lator@myway.de>

* nn::swkbd::State: Add more states

Signed-off-by: Thomas Rohloff <v10lator@myway.de>
2020-05-12 09:17:16 +10:00
Ash Logan
157651309d Add quick .editorconfig
Should limit obvious formatting woes until we get our .clang-format game 
together
2020-05-10 15:59:40 +10:00
Ash Logan
3f9be376d0 nn: Add nn::act library 2020-05-10 15:59:03 +10:00
James Benton
7492ff0483 Fix formatting.
Maybe we should start using clang-format for wut.
2020-05-07 15:29:59 +01:00
Maschell
e2e877decd
Add coreinit/cosreport.h (#131)
* Add coreinit/cosreport.h
- add enum COSReportLevel
- add enum COSReportModule
- add function COSVReport
- add function COSError
- add function COSInfo
- add function COSVerbose
- add function COSWarn

see decaf for reference:
- dcd9bd1a08/src/libdecaf/src/cafe/libraries/coreinit/coreinit_cosreport.h
- 1dc2c3a278/src/libdecaf/src/cafe/libraries/coreinit/coreinit_enum.h

* Fix formatting in coreinit/cosreport.h

* coreinit/cosreport.h: Fix enum declarations

* Add coreinit/cosreport.h to the testsuite
2020-05-07 23:50:21 +10:00
Maschell
a0412a90da
Add coreinit/userconfig.h (#132)
* Add coreinit/userconfig.h
- add enum UCCommand
- add enum UCDataType
- add enum UCErrors
- add enum UCFileSys
- add struct UCSysConfig
- add struct UCAsyncParams
- add function UCOpen
- add function UCClose
- add function UCDeleteSysConfig
- add function UCDeleteSysConfigAsync
- add function UCReadSysConfig
- add function UCReadSysConfigAsync
- add function UCWriteSysConfig
- add function UCWriteSysConfigAsync

See decaf for reference:
- b75f646a1e/src/libdecaf/src/cafe/libraries/coreinit/coreinit_userconfig.h
- 407f3f8093/src/libdecaf/src/ios/auxil/ios_auxil_enum.h

* Fix structs

* coreinit/userconfig.h: Add missing typedefs

* Add coreinit/userconfig.h to testsuite
2020-05-07 23:49:18 +10:00
Maschell
7950d62d0e
coreinit/cache.h: Add OSMemoryBarrier (#127)
- add function OSMemoryBarrier
2020-05-07 22:36:05 +10:00
Maschell
670ef1d342
coreinit/debug.h: Add OSIsDebuggerInitialized, OSIsDebuggerPresent, OSIsECOBoot, OSIsECOMode (#128)
- add function OSIsDebuggerInitialized
- add function OSIsDebuggerPresent
- add function OSIsECOBoot
- add function OSIsECOMode
2020-05-07 22:35:33 +10:00
Maschell
80012b48bd
Add missing function to dmae/mem.h: DMAEFillMemPhys (#129)
- add function DMAEFillMemPhys
2020-05-07 22:34:57 +10:00
Maschell
bab17a41c3
coreinit/memory.h: add OSMemoryBarrier, __OSZeroProcessMemory, OSGetSharedData (#126)
- add function OSMemoryBarrier
- add function __OSZeroProcessMemory
- add function OSGetSharedData + enum OSSharedDataType
2020-05-07 22:31:51 +10:00
rw-r-r-0644
8e69535604
cafe/coreinit: Identify remaining MCP app types (#124) 2020-05-02 10:49:56 +10:00
Maschell
599775e83a acp: Add missing extern "C" declarations to allow usage in C++ 2020-04-30 15:22:43 +01:00
V10lator
5d44ce12fb
Fix make V=1 (#120) 2020-04-30 12:56:57 +01:00
James Benton
090fd38606 coreinit: Fix DisassemblePPCOpcode return type. 2020-04-26 10:06:13 +01:00
James Benton
5bf8c57bb8 Fix GX2TVScanMode.
Fixes #119.
2020-04-25 08:06:00 +01:00
Ash Logan
4290ef7679 changelog: Add sysapp, cmake toolchain changes 2020-04-12 21:10:08 +10:00
Ash Logan
dcf341e2b6 wut.toolchain.cmake: switch pkg-config to find_program 2020-04-12 21:04:58 +10:00
Ash Logan
586c65b2d7 wut.toolchain.cmake: Set pkg-config executable to dkp-libs/wiiu-pkg-config 2020-04-09 10:59:22 +10:00
Ash Logan
0fdbf66470 sysapp: Add PFID functions, rename APP_ID_UPDATER -> APP_ID_HOME_MENU, other system app funcs 2020-03-14 11:04:28 +11:00
Ash Logan
c9a2290196 acp: Add functions, structs, enums (from Decaf) 2020-03-12 13:51:13 +11:00
Ash Logan
d19cd94a99 tests: Add missing wut headers (except cURL) 2020-03-12 12:37:37 +11:00
Ash Logan
78467b6927 tests: Add -Wall, -Wextra, -pedantic, -Werror 2020-03-12 12:36:47 +11:00
Ash Logan
3803e021f1 acp: Fix up length of ACPMetaXml
b9186b89b9/src/libdecaf/src/nn/acp/nn_acp_types.h (L110)
2020-03-12 12:36:11 +11:00
Ash Logan
94bea47ab1 changelog: bring up to date with changes since beta9 2020-02-10 15:39:52 +11:00
Ash Logan
1df3d9a40d whb/gfx: Capitalise v in WHBGfxGetTVColourBuffer
All the other public whb/gfx functions capitalise DRC and TV, so do that 
here.
2020-02-10 15:12:22 +11:00
Crayon
78ee1c51bc Add Nunchuk/CC emulated sticks, KPAD accelerometer data, WPAD/KPAD documentation (#114)
* Add emulated stick values for Nunchuk and Classic Controller

* Add acceleration sensor data to KPADStatus

I have also changed the posValid type from uint8_t to int8_t because the value can be negative.
A negative value means that the result validity is not really good.

* Set version to beta in the doc

* Added mask for button C and button Z on the Nunchuk

The same mask applies to WPADButton and WPADNunchukButton.

* Add doxygen comments and fix typos

Most of the comments are pretty obvious but at least it's a start.

* Fix a copy-paste error in my last commit

I have also added comments for VPADGetTPCalibrationParam and VPADSetTPCalibrationParam.

* Add documentation for all buttons
2020-01-20 17:38:29 +11:00
James Benton
d39e7cad4a wutstdc++: Use OSSetThreadRunQuantum in gthread implementation.
To emulate pre-emptive scheduling which is what would be expected from
gthread.
2020-01-18 10:58:02 +00:00
James Benton
a35269d207 vpad: Add VPAD{Get,Set}TPCalibrationParam. 2020-01-18 10:45:28 +00:00
James Benton
ddc3d0ad0e coreinit: Add declarations for OSReport{Verbose,Info,Warn}. 2020-01-18 10:45:28 +00:00
Ash Logan
77ed28d097 wut.toolchain.cmake: Add internal library directories to find path
This is useful for porting or libraries that do things like `find_library(m)`.
2019-12-01 10:24:13 +11:00
Dave Murphy
ed2482cad4 prevent .a rule from devkitPPC/base_rules taking priority (macOS make 3.81) 2019-11-25 14:36:10 +00:00
James Benton
b895e7b56d whb: Fix WHB console for foreground releasing and acquire. 2019-11-24 12:25:17 +00:00
James Benton
cd6e74fd17 whb: Fix WHBGfxShutdown when app is in background. 2019-11-24 11:52:47 +00:00
fincs
188b8b9ebd
Makefile: fix partial rebuild 2019-11-24 12:48:51 +01:00