Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions iop/system/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ SUBDIRS = \
alloc \
boardinf \
dmacman \
dummymod \
eeconf \
eesync \
eesync-nano \
Expand Down
18 changes: 18 additions & 0 deletions iop/system/dummymod/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# _____ ___ ____ ___ ____
# ____| | ____| | | |____|
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
#-----------------------------------------------------------------------
# Copyright ps2dev - http://www.ps2dev.org
# Licenced under Academic Free License version 2.0
# Review ps2sdk README & LICENSE files for further details.

IOP_IMPORT_INCS += \
system/loadcore

IOP_OBJS = \
dummymod.o

include $(PS2SDKSRC)/Defs.make
include $(PS2SDKSRC)/iop/Rules.bin.make
include $(PS2SDKSRC)/iop/Rules.make
include $(PS2SDKSRC)/iop/Rules.release
16 changes: 16 additions & 0 deletions iop/system/dummymod/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Dummy IOP Module

This module is a minimal module intended to be used where a module is used but
a no-op is desired, such as a module in an IOPRP image.

## Configurations

There are multiple configurations of this library, allowing the choice of
balancing between size, speed, and features.

* `dummymod` -> The recommended version.

## How to use this module in your program

In order to use this module in your program, use `LoadModule` or \
`LoadModuleBuffer` with no arguments.
19 changes: 19 additions & 0 deletions iop/system/dummymod/src/dummymod.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
# _____ ___ ____ ___ ____
# ____| | ____| | | |____|
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
#-----------------------------------------------------------------------
# Copyright ps2dev - http://www.ps2dev.org
# Licenced under Academic Free License version 2.0
# Review ps2sdk README & LICENSE files for further details.
*/

#include <loadcore.h>

int _start(int ac, char **av)
{
(void)ac;
(void)av;

return MODULE_NO_RESIDENT_END;
}
Loading