CreepNT / libdl

Small C library for developing integrated programs for Ratchet Deadlocked PS2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

libdl

Small C library for developing integrated programs for Ratchet Deadlocked PS2

Multi-version support

  • #define LIBDL_PAL for PAL (ISO SHA1: ``)
  • #define LIBDL_NTSC_U for NTSC-U (ISO SHA1: ``)

TODO: automate detection of missing _ADDROF symbols.

Building

Building libdl requires an installation of the open source PS2SDK. I recommend using a prebuilt docker image.

Grab the latest ps2dev docker image

docker pull ps2dev/ps2dev

Clone and enter the repo

git clone https://github.com/Dnawrkshp/libdl.git && cd libdl

Launch a new docker container with the current directory mounted

docker run -it --rm -v "$PWD\:/src" ps2dev/ps2dev

Add make

apk add make

Enter mounted directory

cd src

Build

make

Installing

You can run make install to install the library into your local PS2SDK lib folder.

Testing

I have a few sample tests that make use of the library to do simple things. You can build these individually by cding into the target /test/ directory and running make

About

Small C library for developing integrated programs for Ratchet Deadlocked PS2

License:MIT License


Languages

Language:C 95.6%Language:Assembly 4.0%Language:Makefile 0.4%