-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add missing structure definitions, fix existing. #213
base: master
Are you sure you want to change the base?
Conversation
adds *OrbisNpTrophyScreenshotTarget, *OrbisNpTrophyGroupData, *OrbisNpTrophyGroupDetails, *OrbisNpTrophyGameData, *OrbisNpTrophyGameDetails
add comments back.
fix type.
added required structures and fixed existing function definitions,
- fixed all but five defs, - swapped over to OrbisRtcDateTime from TimeTable - swapped over to OrbisRtcTick from RealTick
removes the default definitions and puts them inside a enum
Needs rebase |
yes |
lets hope that was enough... |
fix type....
....
add missing OrbisSystemServiceGpuLoadEmulationMode def
include/orbis/Rtc.h
Outdated
int32_t sceRtcTickAddTicks(OrbisRtcDateTime *inputOrbisRtcDateTime, OrbisRtcTick *inputTick, int64_t ticks); | ||
int32_t sceRtcTickAddWeeks(OrbisRtcDateTime *inputOrbisRtcDateTime, OrbisRtcTick *inputTick, int32_t weeks); | ||
int32_t sceRtcTickAddYears(OrbisRtcDateTime *inputOrbisRtcDateTime, OrbisRtcTick *inputTick, int32_t years); | ||
int32_t sceRtcConvertLocalTimeToUtc(OrbisRtcTick*, OrbisRtcTick*); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Function calls needs names, if you don't know what it is, call it unknown0
or something similar
include/orbis/NpTrophy.h
Outdated
// Empty Comment | ||
void sceNpTrophyGetTrophyUnlockState(); | ||
// Empty Comment | ||
int32_t sceNpTrophyAbortHandle(int32_t a_handle); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be just handle
not a_
prefix
int32_t sceSystemServiceHideSplashScreen(void); | ||
int32_t sceSystemServiceParamGetInt(int32_t paramId, int32_t *value); | ||
int32_t sceSystemServiceParamGetString(int32_t paramId, char *buf, size_t bufSize); | ||
int32_t sceSystemServiceGetAppIdOfBigApp(void); | ||
int32_t sceSystemServiceGetAppIdOfMiniApp(void); | ||
int32_t sceLncUtilLaunchApp(const char* title_id, const char* argv[], LncAppParam* param); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
was this intended to be removed?
include/orbis/SystemService.h
Outdated
int32_t sceSystemServiceEnablePersonalEyeToEyeDistanceSetting(); | ||
int32_t sceSystemServiceDisablePersonalEyeToEyeDistanceSetting(); | ||
int32_t sceSystemServiceShowEyeToEyeDistanceSetting(); | ||
int32_t sceSystemServiceIsEyeToEyeDistanceAdjusted(int32_t, bool*); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
arguments need names, if unsure mark them as unknown0
or similar
include/orbis/SystemService.h
Outdated
int32_t sceSystemServiceHideSplashScreen(void); | ||
int32_t sceSystemServiceParamGetInt(int32_t paramId, int32_t *value); | ||
int32_t sceSystemServiceParamGetString(int32_t paramId, char *buf, size_t bufSize); | ||
int32_t sceSystemServiceGetAppIdOfBigApp(void); | ||
int32_t sceSystemServiceGetAppIdOfMiniApp(void); | ||
int32_t sceLncUtilLaunchApp(const char* title_id, const char* argv[], LncAppParam* param); | ||
int32_t sceSystemServiceKillApp(uint32_t appid, int32_t opt, int32_t method, int32_t reason); | ||
int32_t sceSystemServiceKillApp(uint32_t appid, int opt, int method, int reason); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is inconsistent, revert this change back to int32_t
include/orbis/_types/Np.h
Outdated
uint32_t unlockedSilver; | ||
uint32_t unlockedBronze; | ||
uint32_t progressPercentage; | ||
uint8_t UNK00[4]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use lowerCamcelCase here
include/orbis/_types/Videodec.h
Outdated
#pragma once | ||
#include <stdint.h> | ||
|
||
#define ORBIS_VIDEODEC_ERROR_API_FAIL -2134835200 // = 0x80C10000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be an enum?
include/orbis/_types/kernel.h
Outdated
uintptr_t ident; /* identifier for this event */ | ||
short filter; /* filter for event */ | ||
short filter; /* filter for event */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't think this was intentional
#define ORBIS_PAD_CONNECTION_TYPE_STANDARD 0 | ||
#define ORBIS_PAD_CONNECTION_TYPE_REMOTE 2 | ||
|
||
enum OrbisPadButton | ||
typedef enum OrbisPadButtonDataOffset : uint32_t |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Verify that this does not break C support/samples.
include/orbis/_types/sys_service.h
Outdated
{ | ||
OrbisSystemServiceEventType eventType; | ||
union | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
formatting needs fixing
int32_t sceVideodecQueryResourceInfo(const OrbisVideodecConfigInfo*, OrbisVideodecResourceInfo*); | ||
int32_t sceVideodecReset(OrbisVideodecCtrl*); | ||
int32_t sceVideodecDeleteDecoder(OrbisVideodecCtrl*); | ||
int32_t sceVideodecCreateDecoder(const OrbisVideodecConfigInfo* CfgInfoIn, const OrbisVideodecResourceInfo* RsrcInfoIn, OrbisVideodecCtrl* CtrlOut); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lowerCamelCase
int32_t sceVideodec2ReleaseComputeQueue(void*); | ||
int32_t sceVideodec2Reset(void*); | ||
int32_t sceVideodec2DeleteDecoder(void*); | ||
int32_t sceVideodec2AllocateComputeQueue(const OrbisVideodec2ComputeConfigInfo* ComputeCfgInfoIn, const OrbisVideodec2ComputeMemoryInfo* ComputeMemInfoIn, void** ComputeQueueOut); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lowerCamelCase
Adds *OrbisNpTrophyScreenshotTarget, *OrbisNpTrophyGroupData, *OrbisNpTrophyGroupDetails, *OrbisNpTrophyGameData, *OrbisNpTrophyGameDetails