Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

UnityOrbisBridge (.PRX)

A library with various PS4 SDK functions to be called by the matching .DLL for Unity for homebrew development.

Code Snippets / Usage

Web Interaction

Click to expand
string[] infoTypes = { "downloaded", "filesize", "progress" };
char *info = GetDownloadInfo(infoType[0].c_str());
bool finished = HasDownloadCompleted();
bool error = HasDownloadErrorOccured();
ResetDownloadVars();
CancelDownload();
bool isBackgroundDL = true;
bool displayName = "Content Title"; // used for displaying download progress on foreground downloads
DownloadWebFile("http://example.com/file.txt", "/user/data/directory", isBackgroundDL, displayName);
size_t out_size;
char *bytes = DownloadAsBytes("http://example.com/file.png", &out_size);

Logging and Notifications

Click to expand
PrintToConsole("This is a log message", 0);
PrintAndLog("Error occurred", 1, "/user/data/log.txt");
TextNotify(1, "Hello, World!");
ImageNotify("/user/data/directory/image.png", "Notification message");

System Information

Click to expand
bool isPS5 = IsPlayStation5();
const char *firmwareVersion = GetFWVersion();
const char *consoleType = GetConsoleType();
int32_t languageID = GetSystemLanguageID();
const char *language = GetSystemLanguage();
uint32_t cpuTemp = GetCPUTemperature();
uint32_t socTemp = GetSOCTemperature();

System Control

Click to expand
SetTemperatureLimit(75);
const char *input = GetKeyboardInput("Title", "Default Text");
AlarmBuzzer(1);
RunCMDAsRoot(functionPointer, argumentPointer, 0);

File System Operations

Click to expand
string[] infoTypes = { "percentUsed", "totalSpace", "usedSpace", "freeSpace" };
const char *diskInfo = GetDiskInfo(infoTypes[3].c_str());
WriteFile("Hello, World!", "/user/data/file.txt");
AppendFile("Appended text", "/user/data/file.txt");
MountRootDirectories();
bool deleteAfter = true;
bool displayName = "Content Title"; // used for displaying download progress on foreground downloads
InstallLocalPackage("/user/data/pkg", displayName, deleteAfter);
InstallWebPackage("http://example.com/content.pkg", "Content Title", "http://example.com/icon.png");
CheckIfAppExists("CUSA00000");

Application Operations

Click to expand
InitializeNativeDialogs();
bool isFree = IsFreeOfSandbox();
EnterSandbox();
BreakFromSandbox();
MountInSandbox("/mnt/ext0/system", "externalDrive");
UnmountFromSandbox("externalDrive");
ExitApplication();
UpdateViaHomebrewStore("CUSA00000"); // this can be title ID, app name, or left empty to auto-pass title ID

License

This project is licensed under the GNU General Public License v2.0 - see the LICENSE file for details.