Skip to content

Instantly share code, notes, and snippets.

View DrinkyBird's full-sized avatar
🤔
afhafhafhas

Sean DrinkyBird

🤔
afhafhafhas
View GitHub Profile
@DrinkyBird
DrinkyBird / tspuddec.c
Last active April 29, 2022 12:20
The Stanley Parable: Ultra Deluxe save file (de/en)cryptor. https://drinkybird.net/files/misc/tspuddec.exe
// To use, pass the input file and output file
// e.g.: tspuddec.exe "C:\Users\Sean\AppData\LocalLow\Crows Crows Crows\The Stanley Parable_ Ultra Deluxe\tspud-savedata.txt" data.json
// The algorithm is a simple XOR and works both ways, so you can swap the parameters to encrypt again.
// The save file is a JSON file, which then contains JSON data as a string. Fun to edit...
#include <stdio.h>
#include <string.h>
static const char *ENCRYPTION_KEY = "saRpmZ6mMgZpmcojUkvkyGEQGez9YkWoXZfJdRc9ZmmJrCzfM8JksVxQfQK8uBBs";
#!/usr/bin/env bash
export CC=/home/sean/bin/cc
export CXX=/home/sean/bin/c++
bdir=$PWD/.buildrelease
srcdir=$PWD/src
outdir=$PWD/out-release
./update_backports.sh
#include <stdlib.h>
#include "perlin.h"
improvednoise_t *improvednoise_create(rng_t *rng) {
improvednoise_t *n = malloc(sizeof(improvednoise_t));
n->num_p = 512;
n->p = calloc(n->num_p, sizeof(byte));
for (int i = 0; i < 256; i++) {
n->p[i] = (byte) i;

Keybase proof

I hereby claim:

  • I am csnxs on github.
  • I am seanb (https://keybase.io/seanb) on keybase.
  • I have a public key whose fingerprint is 40B6 44A0 8554 417B 9F15 48EF 7EB1 2DFC CB25 5B71

To claim this, I am signing this object: