PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
_start.c
1/*
2# _____ ___ ____ ___ ____
3# ____| | ____| | | |____|
4# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5#-----------------------------------------------------------------------
6# Copyright 2001-2004, ps2dev - http://www.ps2dev.org
7# Licenced under Academic Free License version 2.0
8# Review ps2sdk README & LICENSE files for further details.
9*/
10
11#include "irx_imports.h"
12
13#define MODNAME "System_C_lib"
14IRX_ID(MODNAME, 1, 1);
15
16extern struct irx_export_table _exp_sysclib;
17extern struct irx_export_table _exp_stdio;
18
19int _start(int argc, char *argv[]) {
20 (void)argc;
21 (void)argv;
22
23 if (RegisterLibraryEntries(&_exp_sysclib) != 0)
24 return MODULE_NO_RESIDENT_END;
25 if (RegisterLibraryEntries(&_exp_stdio) != 0)
26 return MODULE_NO_RESIDENT_END;
27
28 return MODULE_RESIDENT_END;
29}