Disabling auto-refresh of game list by default, as it is causing bugs sometimes
[open-ps2-loader.git] / modules / debug / ps2link / ps2link.c
blobd8f4c23de33d28fa8fa71a8f16b16315c927d6e7
1 /*********************************************************************
2 * Copyright (C) 2003 Tord Lindstrom (pukko@home.se)
3 * This file is subject to the terms and conditions of the PS2Link License.
4 * See the file LICENSE in the main directory of this distribution for more
5 * details.
6 */
8 #include <stdio.h>
9 #include <sysclib.h>
10 #include <loadcore.h>
11 #include <intrman.h>
12 #include <types.h>
13 #include <sifrpc.h>
14 #include <cdvdman.h>
15 #include "excepHandler.h"
17 // Entry points
18 extern int fsysMount(void);
19 extern int cmdHandlerInit(void);
20 extern int ttyMount(void);
21 extern int naplinkRpcInit(void);
22 ////////////////////////////////////////////////////////////////////////
23 // main
24 // start threads & init rpc & filesys
25 int
26 _start( int argc, char **argv)
28 FlushDcache();
29 CpuEnableIntr(0);
31 sceCdInit(1);
32 sceCdStop();
34 SifInitRpc(0);
36 fsysMount();
37 printf("host: mounted\n");
38 cmdHandlerInit();
39 printf("IOP cmd thread started\n");
40 naplinkRpcInit();
41 printf("Naplink thread started\n");
43 installExceptionHandlers();
45 return 0;