sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
rom0_info.h
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
17
18#ifndef __ROM0_INFO_H__
19#define __ROM0_INFO_H__
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25typedef struct {
26 int (*open)(const char *name, int flags, ...);
27 int (*close)(int fd);
28 int (*read)(int fd, void *buf, int nbyte);
29 int openFlags;
31
32extern void SetupRomInfo(void);
33
38extern int IsDESRMachine(void);
39static inline int IsDESRMachineWithIODriver(const _io_driver *driver) { return IsDESRMachine(); }
40
45extern int IsT10K(void);
46static inline int IsT10KWithIODriver(const _io_driver *driver) { return IsT10K(); }
47
54extern char *GetRomName(char *romname);
55static inline char *GetRomNameWithIODriver(char *romname, const _io_driver *driver) { return GetRomName(romname); }
56
57#ifdef __cplusplus
58}
59#endif
60
61#endif /* __ROM_INFO_H__ */
char * GetRomName(char *romname)
Definition rom0_info.c:67
int IsDESRMachine(void)
Definition rom0_info.c:75
int IsT10K(void)
Definition rom0_info.c:81