Skip to content

Instantly share code, notes, and snippets.

@jordywastaken
jordywastaken / Threading.hpp
Last active December 18, 2022 14:57
PlayStation 3 thread wrapper
#pragma once
#include <sys/ppu_thread.h>
class Thread
{
private:
class ThreadArg
{
@jordywastaken
jordywastaken / HookManager.cpp
Last active March 2, 2023 20:46
PlayStation 3 hook manager
#include "HookManager.h"
#include "Syscalls.h"
HookManager g_HookManager;
HookManager::HookManager(uint32_t mainHookAddress)
: hookAddress(mainHookAddress)
{
// Copy HookManager::RedirectToHandler to mainHookAddress because we can't branch to it directly.