diff options
Diffstat (limited to 'src/ntux.c')
-rw-r--r-- | src/ntux.c | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -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 */ |