This is a PGD-encrypted CPK file. The file can be decrypted using widely available tools.
The actual CPK has a general format, and can be worked with using CRIWARE's
#include <iostream> | |
static uint32_t bit_cast(float f) { | |
uint32_t x; | |
memcpy(&x, &f, 4); | |
return x; | |
} | |
static float bit_cast(uint32_t x) { | |
float f; |
<html> | |
<head> | |
<style> | |
html { | |
height: 100%; | |
} | |
html, body { | |
display: flex; | |
flex-direction: column; |
#include "stdafx.h" | |
// Aren't these just PPC opcodes? | |
#include "Emu/Cell/PPUOpcodes.h" | |
// Design plan: | |
// Get to the interp/jit/etc. func as quick as possible. | |
// Individual interp/jit/disasm funcs should be short and direct as possible. | |
// Needs to take native byte order - too many args to win by using BE. |
int g; | |
int f() { | |
return 42; | |
} | |
int main() { | |
int v; | |
printf("Memory addresses:\n"); |
Name | Value | |
---|---|---|
Lighting enable | 1 | |
Light 0 enable | 1 | |
Light 1 enable | 1 | |
Light 2 enable | 1 | |
Light 3 enable | 0 | |
Clip enable | 0 | |
Cullface enable | 1 | |
Texture map enable | 1 | |
Fog enable | 1 |
#include <common.h> | |
#include <pspdisplay.h> | |
#include <pspgu.h> | |
#include <pspgum.h> | |
#include <float.h> | |
#include <pspkernel.h> | |
#include "commands.h" | |
u8 *fbp0 = 0; |
================ FLUSH ================ | |
Scissor TL: 8, 0 | |
================ FLUSH ================ | |
Scissor BR: 343, 239 | |
Region TL: 0 0 | |
================ FLUSH ================ | |
Region BR: 343 239 | |
Blend mode: add fixed, fixed | |
Blend fix A: 808080 | |
Blend fix B: 808080 |
FramebufPixelFormat: 1 | |
FramebufWidth: 200, address high 00 | |
================ FLUSH ================ | |
FramebufPtr: 00000000 | |
BASE: 040000 | |
CMD JUMP - 04130010 to 041300d4 | |
================ FLUSH ================ | |
Clear mode: 000701 (on, color, alpha/stencil, depth) | |
================ FLUSH ================ | |
SetVertexType: through, ABGR 8888 colors, u16 coords |
const int screenWidth = GetSystemMetrics(SM_CXVIRTUALSCREEN); | |
const int screenHeight = GetSystemMetrics(SM_CYVIRTUALSCREEN); | |
const int screenX = GetSystemMetrics(SM_XVIRTUALSCREEN); | |
const int screenY = GetSystemMetrics(SM_YVIRTUALSCREEN); | |
bool visibleHorizontally = ((g_Config.iWindowX + g_Config.iWindowWidth) >= screenX) && | |
((g_Config.iWindowX + g_Config.iWindowWidth) < (screenWidth + g_Config.iWindowWidth)); | |
bool visibleVertically = ((g_Config.iWindowY + g_Config.iWindowHeight) >= screenY) && | |
((g_Config.iWindowY + g_Config.iWindowHeight) < (screenHeight + g_Config.iWindowHeight)); |