Skip to content

Commit

Permalink
OSLaunch
Browse files Browse the repository at this point in the history
  • Loading branch information
shibbo committed Feb 12, 2025
1 parent 064ff91 commit c37532b
Show file tree
Hide file tree
Showing 7 changed files with 558 additions and 4 deletions.
6 changes: 5 additions & 1 deletion libs/RVL_SDK/include/revolution/dvd.h
Original file line number Diff line number Diff line change
Expand Up @@ -243,10 +243,14 @@ BOOL __DVDGetAutoFatalMessaging(void);
/* dvdfs */
void __DVDFSInit(void);

DVDDiskID *DVDGetCurrentDiskID(void);

void __DVDResetWithNoSpinup(void);

#define DVD_RESETCOVER_TIMELAG_TICKS2 OSMillisecondsToTicks(100)

#ifdef __cplusplus
}
#endif

#endif // DVD_H
#endif // DVD_H
8 changes: 7 additions & 1 deletion libs/RVL_SDK/include/revolution/nand.h
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,13 @@ void nandCallback(ISFSError, void *);

s32 NANDPrivateGetStatus(const char *, NANDStatus *);
s32 NANDPrivateDelete(const char *);
s32 NANDPrivateCreate (const char *, u8, u8);
s32 NANDPrivateCreate(const char *, u8, u8);

s32 NANDGetHomeDir(char *);

s32 NANDGetStatus(const char *, NANDStatus *);

s32 NANDSecretGetUsage(const char *, u32 *, u32 *);

#ifdef __cplusplus
}
Expand Down
14 changes: 14 additions & 0 deletions libs/RVL_SDK/include/revolution/os/OSExec.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#ifndef OSEXEC_H
#define OSEXEC_H

#ifdef __cplusplus
extern "C" {
#endif

void __OSLaunchMenu(void);

#ifdef __cplusplus
}
#endif

#endif // OSEXEC_H
3 changes: 2 additions & 1 deletion libs/RVL_SDK/include/revolution/os/OSPlayTime.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ void __OSInitPlayTime(void);
BOOL __OSWriteExpiredFlagIfSet(void);
BOOL OSPlayTimeIsLimited(void);
s32 __OSGetPlayTime(ESTicketView *, __OSPlayTimeType *, u32 *);
BOOL __OSWriteExpiredFlag(void);

#endif // OSPLAYTIME_H
#endif // OSPLAYTIME_H
7 changes: 6 additions & 1 deletion libs/RVL_SDK/include/revolution/os/OSReset.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,19 @@ void OSReturnToMenu(void);
void OSResetSystem(int, u32, BOOL);
void OSRegisterShutdownFunction(OSShutdownFunctionInfo *);
BOOL __OSCallShutdownFunctions(BOOL, u32);
void __OSReturnToMenuForError(void);

u32 OSGetResetCode(void);

u8 __OSGetDiscState(u8);
void __OSShutdownDevices(u32);
void __OSHotResetForError(void);

#define OSIsRestart() \
((OSGetResetCode() & 0x80000000) ? TRUE : FALSE)

#ifdef __cplusplus
}
#endif

#endif // OSRESET_H
#endif // OSRESET_H
16 changes: 16 additions & 0 deletions libs/RVL_SDK/include/revolution/os/OSTitle.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#ifndef OSTITLE_H
#define OSTITLE_H

#include <revolution/types.h>

#ifdef __cplusplus
extern "C" {
#endif

typedef u64 OSTitleId;

#ifdef __cplusplus
}
#endif

#endif // OSTITLE_H
Loading

0 comments on commit c37532b

Please sign in to comment.