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
23
extern
"C"
{
24
#endif
25
26
#define MAX_ARGS 16
27
#define MAX_ARGLEN 256
28
29
// System provided arguments when loaded normally
30
struct
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)
37
struct
sargs_start
{
38
int32_t pid;
39
struct
sargs
args;
40
};
41
42
#ifdef __cplusplus
43
}
44
#endif
45
46
#endif
/* __STARTUP_H__ */
sargs
Definition
startup.h:30
sargs_start
Definition
startup.h:37
ee
startup
include
startup.h
Generated on Tue Feb 11 2025 21:35:57 for PS2SDK by
1.12.0