Skip to content

Instantly share code, notes, and snippets.

View Radfordhound's full-sized avatar

Graham Scott Radfordhound

View GitHub Profile
@Radfordhound
Radfordhound / install-lunarg-ubuntu-repo.sh
Created March 13, 2022 23:23
Simple shell script to install LunarG's Ubuntu repository for their Vulkan SDK
#!/bin/bash
ubuntu_version=$(lsb_release -cs)
echo $ubuntu_version
wget -qO - http://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo apt-key add -
sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-$ubuntu_version.list http://packages.lunarg.com/vulkan/lunarg-vulkan-$ubuntu_version.list
sudo apt update
affair:ResAffair
asm:ResAnimator
bfnt.bin:ResBitmapFont
cam-offset:ResCameraOffset
hhd:ResCustomData
phy.hkx:ResHavokMesh
kern.bin:ResKerningData
otf:ResOTFData
light:ResMirageLight
lft:ResMirageLightField
@Radfordhound
Radfordhound / Lost World (PC).json
Created January 25, 2021 03:22
PACx analysis results
{
"totalPacCount": 1225,
"totalRootCount": 483,
"totalRootWithSplitsCount": 409,
"totalSplitCount": 742,
"avgSplitCount": 1,
"smallestRootSize": 16,
"smallestRootWithSplitsSize": 400,
"smallestSplitSize": 324,
"smallestRootDataSize": 88,
/*
PXSK (.skl.pxd) format specification
By: Radfordhound
Version: 1.0
*/
/*
PXSK files are BINAv2 files.
This document only covers the PXSK-specific
template<typename T>
struct MoveArray
{
T* Data;
uint Count;
uint Capacity;
IAllocator* Allocator = nullptr; // Not actually set to anything in files obviously
};
struct Header
// Sonic '06 .arc spec
// By Radfordhound
// Apparently this whole thing is a modification of Nintendo's U8 Format
// which includes support for zlib compression. How? Why? No idea. But anyway...
struct Header
{
uint32_t Signature = 0x2D38AA55;
uint32_t EntriesOffset;
@Radfordhound
Radfordhound / SegaNNSpec.h
Created June 28, 2020 19:36
Sega NN Binary Chunk File Specification
/*
Sega NN Binary Chunk File Specification
Version: 0.1 (WIP)
By: Radfordhound
Thanks to:
- ItsEasyActually For sharing his Sega NN findings with me, including
a list of platform IDs and NN library names used in
the creation of this specification.
// (WIP) SBK Format Spec
// By: Radfordhound
struct Header
{
char Signature[4] = "SBNK";
uint32_t Unknown1 = 0x20060700; // Probably flags
SoundBank* Bank;
Cue* Cues;
uint32_t* NormalCueIndices; // ?
// Based heavily on Skyth's Helpers.h: https://github.com/blueskythlikesclouds/DllMods/blob/master/Dependencies/Helpers.h
#pragma once
#include "detours.h"
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <cstddef>
inline static const HMODULE MODULE_HANDLE = GetModuleHandle(nullptr);
#ifdef BASE_ADDRESS
@Radfordhound
Radfordhound / TokyoPacSpec.h
Last active August 30, 2019 23:59
Tokyo Olympics 2020 .pac format specification
// Tokyo Olympics 2020 pac format specification 2.0
// By: Radfordhound
// Heavily based off of Skyth's Forces pac specification
HeaderV4 Header;
EmbeddedPAC EmbeddedPACs[]; // These are LZ4 compressed and need to be decompressed first
struct HeaderV4
{
char[8] Signature = "PACx402L";
uint PacID; // Random number? Might actually be date created/modified.