Skip to content

Instantly share code, notes, and snippets.

@zxc20100123
zxc20100123 / coneshell_extract_metadata.cpp
Created June 4, 2019 08:45 — forked from esterTion/coneshell_extract_metadata.cpp
Extract metadata from ConeShell (Cygames) processed binary
View coneshell_extract_metadata.cpp
#include <cstdio>
#include <iostream>
#include <cstdint>
using namespace std;
void writeReverse(FILE* f, uint32_t num)
{
char* buf[4];
*(uint32_t*)buf = 0xFFFFFFFF - num;
fwrite(buf, 4, 1, f);