Giter Club home page Giter Club logo

ps4-sdk's Introduction

PS4 SDK

An open source PlayStation 4 SDK for writing userland applications which can be run with the PS4-playground.

Building and installing

You will need LLVM version 3.7 or later for compiling, and binutils for linking (from MinGW if you are on Windows).

Clone this repository locally, or download and extract a ZIP of the repository here.

Then create an environment variable called, PS4SDK which points to the base directory of the repository, using the Unix path style; for example:

/C/Users/Chris/Documents/GitHub/PS4-SDK

Build the libraries by running make on the libPS4 and libusbfatfs directories.

Finally, you can build examples by running make on them.

Design

At the moment, it is primarily focused on system calls.

However, using function pointers and the RESOLVE macro, we can call functions from other modules. For example, the socket functions from libSceNet.sprx.

Support

Whilst the SDK isn't capable of most basic functionality yet, such as displaying graphics, or receiving controller input, there are workarounds: rendering to an HTML5 canvas, and using third party USB controllers, or a DS/PSP wirelessly for example.

The SDK is currently in a state where projects like an FTP server, a mini Pong game, or GameBoy emulator could be developed.

Examples

hello - Load libc module and perform getpid system call

sockets - Send a message over a TCP socket

modules - Load and dump a module

threads - Create and wait for a thread to increment a variable

canvas - Render to an HTML5 canvas

camera - Initialise the PlayStation Camera and capture 10 frames

pad - Read controller input (not finished)

jit - Setting up JIT shared memory

Filesystem

directories - List the contents of a directory

files - Read a file's size, and its contents

USB

list_devices - List information about all USB devices connected

storage - Read raw image from a USB flash drive

usbfatfs - Read files from USB formatted with FAT

ps4-sdk's People

Contributors

cturt avatar xerpi avatar psxdev avatar bigboss-ps3dev avatar kr105 avatar patrickgill avatar masterzorag avatar maxton avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.