Skip to content

Instantly share code, notes, and snippets.

View flibitijibibo's full-sized avatar

Ethan Lee flibitijibibo

View GitHub Profile
@flibitijibibo
flibitijibibo / steamedhams.cs
Created July 6, 2018 18:26
VideoPlayer demo with reflection used to access the sound stream directly
/* VideoPlayer DynamicSoundEffectInstance Reverb/Filter Test Program
* Written by Ethan "flibitijibibo" Lee
* http://www.flibitijibibo.com/
*
* Released under public domain.
* No warranty implied; use at your own risk.
*/
using System;
using System.Reflection;
@flibitijibibo
flibitijibibo / README.md
Last active December 18, 2018 19:45
flibit's game list for FAudio/XAudio2 research. Not official, not important, probably better off not reading it unless you're doing research yourself.

UPDATE: Thanks to my current partnerships I'm now able to access various games on Steam as I need them. This document is now (mostly) obsolete, unless you just want to give me keys for no reason at all.

This is my internal hit list for researching XAudio2, to aid in developing FAudio.

When working on large amounts of games in an unofficial capacity, it can be difficult finding which games even have XAudio2 in the first place, let alone use a feature set that we can take apart and implement. Generally you have to Google the game with variants of "xaudio2" and pray that a support ticket comes up (most of the time, nothing comes up), though occasionally you get lucky and it shows up in a database like this.

Even then, once you have a list, you have to figure out how to work with your budget - sure, it's a tax writeoff, but to spend money you usually need to... er, have money. The tradition up to now was to use a small Steam Wallet alon

@flibitijibibo
flibitijibibo / SpriteBatchTest.cs
Created July 26, 2014 16:16
SpriteBatch Stress Test
/* SpriteBatch Stress Test
* Written by Ethan "flibitijibibo" Lee
* http://www.flibitijibibo.com/
*
* Released under public domain.
* No warranty implied; use at your own risk.
*/
using System;
using System.Diagnostics;
@flibitijibibo
flibitijibibo / findDejaVuSans.h
Created July 18, 2019 16:40
Replacement for hardcoded font paths
/* findDejaVuSans - Quick function to find DejaVuSans.ttf
*
* Copyright (c) 2019 Ethan Lee
*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the authors be held liable for any damages arising from
* the use of this software.
*
* Permission is granted to anyone to use this software for any purpose,
* including commercial applications, and to alter it and redistribute it
@flibitijibibo
flibitijibibo / flibitAMD.txt
Created August 20, 2019 19:19
Steam info for flibitAMD lab machine
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Desktop
No Touch Input Detected
@flibitijibibo
flibitijibibo / sa2unpak.c
Last active March 31, 2020 20:41
I wrote this because I really like Sonic Adventure 2, and I take games I like apart, nowadays to see how portable they might be. The shaders found in the PC version can be read and rebuilt by MojoShader! So that'd settle that part of it.
/* SA2UNPAK - Sonic Adventure 2 PC Shader obj.pak Extraction Program
* Written by Ethan "flibitijibibo" Lee
* http://www.flibitijibibo.com/
*
* Released under public domain.
* No warranty implied; use at your own risk.
*
* I wrote this to extract the D3D9 shader binary files for parsing
* in MojoShader. This may not work with any other file in the game.
* Also, I am not porting SA2 to Linux. Though I really would like to.
/* Adobe Sucks - Image Comparison Program for Checking Creative Suite Fuckups
* Written by Ethan "flibitijibibo" Lee
* http://www.flibitijibibo.com/
*
* Released under public domain.
* No warranty implied; use at your own risk.
*
* How to Build:
* cc adobesucks.c `sdl2-config --cflags --libs` -lSDL2_image
*/
@flibitijibibo
flibitijibibo / SpriteDepthTest.cs
Created September 24, 2020 01:41
Batching/Sorting accruacy test for SpriteBatch
/* SpriteBatch Stress Test
* Written by Ethan "flibitijibibo" Lee
* http://www.flibitijibibo.com/
*
* Released under public domain.
* No warranty implied; use at your own risk.
*/
using System;
using System.Diagnostics;
@flibitijibibo
flibitijibibo / SDL_DeckLink.cpp
Last active December 5, 2020 17:51
A quick and dirty application that lets me stream from an Intensity Pro into an SDL/OpenGL window.
@flibitijibibo
flibitijibibo / avSpecFix.sh
Last active January 17, 2021 18:49
Run this to fix weird bitrot in Axiom Verge and also update to FNA3D and stuff
#!/bin/bash
# Axiom Verge FNA Update and Also Work Around A Bunch of Spec Violations Script
# Written by Ethan "flibitijibibo" Lee
#
# Put this in the Axiom Verge directory and run it. Not much to see here.
#
# FNA patch, if anyone wants it:
# https://gist.github.com/flibitijibibo/ffdd7c6fe32b9846a83807dab24be8fd
set -ex