This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require("fs"); | |
//key.bin is a file containing the extracted 64-byte region starting from 0x003d9f30 in the decrypted LBP PSP US 2.0.5 EBOOT.BIN | |
let block = fs.readFileSync('key.bin'); | |
let key = Buffer.alloc(16); | |
for (let i = 0; i < 16; ++i) | |
key[i] = block[(i * 4) + (i % 4)]; | |
//psp.key is the output key. | |
fs.writeFileSync('psp.key', key); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <GLFW/glfw3.h> | |
#include <stdio.h> | |
void error_callback(int error, const char* description) | |
{ | |
fprintf(stderr, "Error: %s\n", description); | |
} | |
void function_name(GLFWwindow* window, int focused) { | |
printf("Focus event %d\n", focused); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
based on github gist from rcolinray: https://gist.github.com/rcolinray/7552384 | |
you need to build with glfw2, not glfw3. | |
adjusted for newer ffmpeg ( version>55 - avcodec_alloc_frame now is | |
av_frame_alloc, and some other defines have AV_ prefix added to it ) | |
build it using something like: | |
g++ ./gl_ffmpeg.cpp \ | |
-lavcodec -lavutil \ | |
-lavformat \ | |
-lavfilter \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include( "shared.lua" ) | |
function killcounter() | |
draw.WordBox( 8, ScrW() - 920, ScrH() - 98, "KillCount: "..LocalPlayer():GetNWInt("killcounter"),"ScoreboardText",Color(200,0,0,0),Color(255,255,255,255)) | |
end | |
hook.Add("HUDPaint","KillCounter",killcounter) |