sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
xloadcore.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
16
17#ifndef __XLOADCORE_H__
18#define __XLOADCORE_H__
19
20#include <loadcore.h>
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
26#define xloadcore_IMPORTS_start DECLARE_IMPORT_TABLE(loadcore, 1, 3)
27#define xloadcore_IMPORTS_end END_IMPORT_TABLE
28
29// The following was introduced in export version 1.3 (around SDK 2.3.4)
30extern void ApplyElfRelSection(void *buffer, const void *module, int element_count);
31extern void CopyModInfo(FileInfo_t *ModuleInfo, ModuleInfo_t *ModInfo);
32extern int SetRebootTimeLibraryHandlingMode(struct irx_export_table *exports, int mode);
33
34#define I_ApplyElfRelSection DECLARE_IMPORT(25, ApplyElfRelSection)
35#define I_CopyModInfo DECLARE_IMPORT(26, CopyModInfo)
36#define I_SetRebootTimeLibraryHandlingMode DECLARE_IMPORT(27, SetRebootTimeLibraryHandlingMode)
37
38// For backwards compatibility
39#define InitLoadedModInfo(...) CopyModInfo(__VA_ARGS__)
40#define I_InitLoadedModInfo I_CopyModInfo
41
42#ifdef __cplusplus
43}
44#endif
45
46#endif /* __XLOADCORE_H__ */
struct _ModuleInfo ModuleInfo_t
Definition main.c:20