Skip to content

Commit

Permalink
new IOP skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
uyjulian committed Feb 9, 2017
1 parent dfd52de commit 254f8ff
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 49 deletions.
33 changes: 0 additions & 33 deletions skeleton/IRX.Rules

This file was deleted.

12 changes: 12 additions & 0 deletions skeleton/iop/Makefile
@@ -0,0 +1,12 @@
IOP_BIN = hello.irx

IOP_OBJS = hello_main.o hello_exports.o imports.o exports.o

all: $(IOP_BIN)

clean:
rm -f -r $(IOP_OBJS) $(IOP_BIN)

include $(PS2SDK)/Defs.make
include $(PS2SDK)/samples/Makefile.pref
include $(PS2SDK)/samples/Makefile.iopglobal
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions skeleton/irx/src/hello_main.c → skeleton/iop/hello_main.c
@@ -1,10 +1,10 @@
// This include will allow us to avoid reincluding other headers
#include "irx_imports.h"

#define MODNAME "alloc"
IRX_ID("Basic alloc library", 1, 1);
#define MODNAME "hello"
IRX_ID("IOP skeleton", 1, 1);

extern struct irx_export_table _exp_alloc;
extern struct irx_export_table _exp_hello;


// This contain our prototype for our export, and we need it to call it inside our _start
Expand All @@ -13,7 +13,7 @@ extern struct irx_export_table _exp_alloc;

// This is a bit like a "main" for IRX files.
int _start(int argc, char * argv[]) {
if (RegisterLibraryEntries(&_exp_alloc) != 0)
if (RegisterLibraryEntries(&_exp_hello) != 0)
return 1;

hello();
Expand Down
File renamed without changes.
File renamed without changes.
12 changes: 0 additions & 12 deletions skeleton/irx/Makefile

This file was deleted.

0 comments on commit 254f8ff

Please sign in to comment.