summaryrefslogtreecommitdiffhomepage
path: root/src/ntux.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ntux.c')
-rw-r--r--src/ntux.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/ntux.c b/src/ntux.c
index 41cc4d3..890fbc0 100644
--- a/src/ntux.c
+++ b/src/ntux.c
@@ -8,18 +8,16 @@
#include <ntux/ntux.h>
#include "ntux_driver_impl.h"
-int ntux_entry_point(void)
+int ntux_entry_routine(
+ int(*__psx_init_routine)(int *,char ***,char ***,void *),
+ struct __psx_context * ctx)
{
int argc;
char ** argv;
char ** envp;
- struct __psx_context ctx = {0,0,0,0,0,0,0,0,0,0,0,0};
-
- /* ctx */
- ctx.size = sizeof(ctx);
/* __psx_init must succeed... */
- if (__psx_init(&argc,&argv,&envp,&ctx))
+ if (__psx_init_routine(&argc,&argv,&envp,ctx))
return -1;
/* ...and conform */