Skip to content

Commit efffb0d

Browse files
committed
fix(loadcore,modulemgr_kernel): Move sceKernelGetModuleList and sceKernelModuleCount prototypes to psploadcore.h
Those are loaded by `LoadCoreForKernel`
1 parent ce8ed64 commit efffb0d

2 files changed

Lines changed: 19 additions & 20 deletions

File tree

src/kernel/psploadcore.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,22 @@ typedef struct SceLoadCoreExecFileInfo {
352352
u32 max_seg_align; //188
353353
} SceLoadCoreExecFileInfo;
354354

355+
/**
356+
* Gets the current module list.
357+
*
358+
* @param readbufsize - The size of the read buffer.
359+
* @param readbuf - Pointer to a buffer to store the IDs
360+
*
361+
* @return < 0 on error.
362+
*/
363+
int sceKernelGetModuleList(int readbufsize, SceUID *readbuf);
364+
365+
/**
366+
* Get the number of loaded modules.
367+
*
368+
* @return The number of loaded modules.
369+
*/
370+
int sceKernelModuleCount(void);
355371

356372
/**
357373
* Find a module by it's name.

src/kernel/pspmodulemgr_kernel.h

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ enum SceModuleMgrExecModes {
3030
MODULE_EXEC_CMD_UNLOAD,
3131
};
3232

33-
/**
33+
/**
3434
* Structure used internally for many `sceModuleManager` module functions.
35-
*
35+
*
3636
* Also seems to be passed to `sceKernelStartThread` eventually by those internal functions.
3737
* */
3838
typedef struct {
@@ -81,7 +81,7 @@ typedef struct {
8181
SceUID extern_mem_block_partition_id;
8282
SceSize extern_mem_block_size;
8383
u32 unk6;
84-
void *block_gzip;
84+
void *block_gzip;
8585
u32 unk7;
8686
char secure_install_id[SCE_SECURE_INSTALL_ID_LEN];
8787
SceUID extern_mem_block_id_user;
@@ -96,23 +96,6 @@ extern "C" {
9696
/** @addtogroup ModuleMgrKern Kernel Module Manager Library */
9797
/**@{*/
9898

99-
/**
100-
* Gets the current module list.
101-
*
102-
* @param readbufsize - The size of the read buffer.
103-
* @param readbuf - Pointer to a buffer to store the IDs
104-
*
105-
* @return < 0 on error.
106-
*/
107-
int sceKernelGetModuleList(int readbufsize, SceUID *readbuf);
108-
109-
/**
110-
* Get the number of loaded modules.
111-
*
112-
* @return The number of loaded modules.
113-
*/
114-
int sceKernelModuleCount(void);
115-
11699
/**
117100
* Load a module from a buffer
118101
*

0 commit comments

Comments
 (0)