Skip to content
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

Open
wants to merge 25 commits into
base: master
Choose a base branch
from

Conversation

Backporter
Copy link
Contributor

Adds *OrbisNpTrophyScreenshotTarget, *OrbisNpTrophyGroupData, *OrbisNpTrophyGroupDetails, *OrbisNpTrophyGameData, *OrbisNpTrophyGameDetails

adds *OrbisNpTrophyScreenshotTarget, *OrbisNpTrophyGroupData, *OrbisNpTrophyGroupDetails, *OrbisNpTrophyGameData, *OrbisNpTrophyGameDetails
add comments back.
0
savedata stuff **can** be removed if needed, through it should have a correct size now.
fix type.
@Backporter Backporter changed the title Add Missing NpTrophy structure definitions. Add missing structure definitions, fix existing. Nov 12, 2022
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
@illusion0001
Copy link
Contributor

Needs rebase

@Backporter
Copy link
Contributor Author

yes

@Backporter
Copy link
Contributor Author

lets hope that was enough...

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*);
Copy link
Contributor

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

// Empty Comment
void sceNpTrophyGetTrophyUnlockState();
// Empty Comment
int32_t sceNpTrophyAbortHandle(int32_t a_handle);
Copy link
Contributor

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);
Copy link
Contributor

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?

int32_t sceSystemServiceEnablePersonalEyeToEyeDistanceSetting();
int32_t sceSystemServiceDisablePersonalEyeToEyeDistanceSetting();
int32_t sceSystemServiceShowEyeToEyeDistanceSetting();
int32_t sceSystemServiceIsEyeToEyeDistanceAdjusted(int32_t, bool*);
Copy link
Contributor

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

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);
Copy link
Contributor

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

uint32_t unlockedSilver;
uint32_t unlockedBronze;
uint32_t progressPercentage;
uint8_t UNK00[4];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use lowerCamcelCase here

#pragma once
#include <stdint.h>

#define ORBIS_VIDEODEC_ERROR_API_FAIL -2134835200 // = 0x80C10000
Copy link
Contributor

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?

uintptr_t ident; /* identifier for this event */
short filter; /* filter for event */
short filter; /* filter for event */
Copy link
Contributor

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
Copy link
Contributor

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.

{
OrbisSystemServiceEventType eventType;
union
{
Copy link
Contributor

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);
Copy link
Contributor

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);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lowerCamelCase

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants