PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
startup.h
Go to the documentation of this file.
1/*
2# _____ ___ ____ ___ ____
3# ____| | ____| | | |____|
4# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5#-----------------------------------------------------------------------
6# (c) 2020 Francisco Javier Trujillo Mata <fjtrujy@gmail.com>
7# Licenced under Academic Free License version 2.0
8# Review ps2sdk README & LICENSE files for further details.
9*/
10
16#ifndef __STARTUP_H__
17#define __STARTUP_H__
18
19
20#include <stdint.h>
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
26#define MAX_ARGS 16
27#define MAX_ARGLEN 256
28
29// System provided arguments when loaded normally
30struct sargs {
31 int32_t argc;
32 char* argv[MAX_ARGS];
33 char payload[MAX_ARGLEN];
34};
35
36// Sent arguments through __start (by ps2link for instance)
38 int32_t pid;
39 struct sargs args;
40};
41
42#ifdef __cplusplus
43}
44#endif
45
46#endif /* __STARTUP_H__ */