Skip to content

Instantly share code, notes, and snippets.

View shchmue's full-sized avatar
🤠

shchmue

🤠
  • USA
  • 08:26 (UTC -07:00)
View GitHub Profile
@shchmue
shchmue / settings_save_offsets.txt
Last active May 27, 2024 18:56
Descriptions and types of contents in Settings saves for the Nintendo Switch.
Updated as of firmware 16.0.0.
All values except firmware versions and floats are hex.
Field names are either official symbols or derived from the name of the accessor/mutator function.
Firmware version information for each field is not indicated but likely maps neatly to the firmware versions in which accessor/mutator functions for the given field were introduced. See: https://switchbrew.org/wiki/Settings_services
PrivateSettings 8000000000000052
offset size type/name default
0 10 GAP
10 20 nn::settings::system::InitialLaunchSettings 0
@shchmue
shchmue / decompress_msgpack_lz4_convert_to_json.py
Created November 11, 2019 20:58
Decompresses SystemPlayReport .msgpack.lz4 files if needed and converts msgpack to json
#!/usr/bin/env python3
import struct
import sys
import json
import base64
import os
from pathlib import Path
import msgpack
import lz4.block