Files
ps4-switch-emu 9146a38f7c PS4 Switch Emu: build scripts, tools and docs
Builds the emulator core (submodule eden/) for jailbroken PS4 consoles and packages it as a .pkg.
DolphinPS4 (vendor/DolphinPS4) provides the PS4 runtime and the Vulkan driver patch.
2026-10-08 10:23:27 -07:00

36 lines
614 B
C++

/*
** Sample Framework for deko3d Applications
** startup.cpp: Automatic initialization/deinitialization
*/
#include "common.h"
#include <unistd.h>
//#define DEBUG_NXLINK
#ifdef DEBUG_NXLINK
static int nxlink_sock = -1;
#endif
extern "C" void userAppInit(void)
{
Result res = romfsInit();
if (R_FAILED(res))
diagAbortWithResult(res);
#ifdef DEBUG_NXLINK
socketInitializeDefault();
nxlink_sock = nxlinkStdioForDebug();
#endif
}
extern "C" void userAppExit(void)
{
#ifdef DEBUG_NXLINK
if (nxlink_sock != -1)
close(nxlink_sock);
socketExit();
#endif
romfsExit();
}