summaryrefslogtreecommitdiffhomepage
path: root/src/init/ntux_init_static.c
blob: d9e7ac5243bd451118f0912534f68e2f5d921237 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/***********************************************************/
/*  ntux: native translation und extension                 */
/*  Copyright (C) 2016--2021  Z. Gilboa                    */
/*  Released under GPLv2 and GPLv3; see COPYING.NTUX.      */
/***********************************************************/

#include <psxtypes/psxtypes.h>
#include <pemagine/pemagine.h>
#include <psxscl/psxglue.h>
#include <ntux/ntux.h>

#ifdef NTUX_ALL_STATIC

int __psx_init(int *,char ***,char ***,void *);

int ntux_entry_routine(
	int(*__psx_init_routine)(int *,char ***,char ***,void *),
	struct __psx_context * ctx);

static struct __psx_context ctx = {sizeof(ctx),0,0,0,0,0,0,0,0,0,0,0,0};

static int ntux_usrmain(void)
{
	return 0;
}

void ntux_entry_point(void)
{
	ctx.usrmain = ntux_usrmain;
	ntux_entry_routine(__psx_init,&ctx);
}

#endif