PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
ps2netfs.c
Go to the documentation of this file.
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
16
#include <types.h>
17
#include <
defs.h
>
18
#include <
irx.h
>
19
20
#include <
loadcore.h
>
21
#include <
ioman.h
>
22
#include <
stdio.h
>
23
#include <
iopmgr.h
>
24
25
#include "
ps2_fio.h
"
26
#include "
devscan.h
"
27
#include "debug_printf.h"
28
29
#define PS2NETFS_VERSION_HIGH 1
30
#define PS2NETFS_VERSION_LOW 0
31
32
IRX_ID(PS2NETFS_MODNAME, PS2NETFS_VERSION_HIGH, PS2NETFS_VERSION_LOW);
33
47
int
_start
(
int
argc,
char
*argv[])
48
{
49
(void)argc;
50
(void)argv;
51
52
printf(
"%s - v%d.%d - Copyright (c) 2004 adresd\n"
,
53
PS2NETFS_MODNAME,PS2NETFS_VERSION_HIGH,PS2NETFS_VERSION_LOW);
54
55
if
(!
devscan_getmodule
(IOPMGR_IOMAN_IDENT))
56
{
57
DPRINTF(
"ioman not found\n"
);
58
return
MODULE_NO_RESIDENT_END;
59
}
60
if
(!
devscan_getmodule
(IOPMGR_IOMANX_IDENT))
61
{
62
DPRINTF(
"iomanx not found\n"
);
63
return
MODULE_NO_RESIDENT_END;
64
}
65
66
if
(
ps2netfs_Init
() == 0)
67
{
68
DPRINTF(
"\nServer Started\n"
);
69
return
MODULE_RESIDENT_END;
70
}
71
72
DPRINTF(
"\nExiting.\n"
);
73
return
MODULE_NO_RESIDENT_END;
74
}
defs.h
devscan.h
devscan_getmodule
ModuleInfo_t * devscan_getmodule(const char *name)
Definition
devscan.c:47
_start
int _start(int argc, char *argv[])
Definition
ps2netfs.c:47
ps2netfs_Init
int ps2netfs_Init(void)
Definition
ps2_fio.c:2070
ioman.h
iopmgr.h
irx.h
loadcore.h
ps2_fio.h
stdio.h
iop
fs
netfs
src
ps2netfs.c
Generated on Thu Nov 14 2024 05:25:26 for PS2SDK by
1.9.8