Skip to content

Instantly share code, notes, and snippets.

@Lichtso
Lichtso / virtualization.c
Last active January 23, 2023 22:48
a 64 bit VM running. Supports x86-64 and arm64 on Linux and macOS.
// Copyright (C) 2023 Alexander Meißner
//
// Minimal code necessary to get a 64 bit VM running. Supports x86-64 and arm64 on Linux and macOS.
#if !defined(__x86_64__) && !defined(__aarch64__)
#error Unsupported OS
#endif
#if !defined(__linux__) && !defined(__APPLE__)
#error Unsupported ISA
@Lichtso
Lichtso / unity3d_fs.bms
Created July 15, 2021 14:48
QuickBMS script to extract UnityFS files, the new asset bundle format introduced in Unity 5
# Script for quickbms: https://aluigi.altervista.org/quickbms.htm
# Extracts *.unity3d files
# (c) 2021-07-21 by Lichtso
endian big
# Header
idstring "UnityFS"
Padding 5
get FILE_VERSION byte