Skip to content

Instantly share code, notes, and snippets.

View flibitijibibo's full-sized avatar

Ethan Lee flibitijibibo

View GitHub Profile
@flibitijibibo
flibitijibibo / flibitPackaging.md
Created June 17, 2016 16:00
Hope you like reading ldd output!

A week ago I was CC'd in on a thread about Linux packaging, and how to avoid doing it the wrong way (i.e. RPM, Deb, etc.). I've always used MojoSetup and I've never forced distributions to do any additional work, but this is still a new concept to a lot of people. Additionally, Amos suggested that I expand on Itch's FNA appendix, so here's a guide on how I package my games.

This is a bit of an expansion on my MAGFest 2016 presentation, which you can find here:

http://www.flibitijibibo.com/magfest2016/

https://www.youtube.com/watch?v=B83CWUh0Log

I would recommend looking at that first! After that, read on...

@flibitijibibo
flibitijibibo / fnaUpdate.sh
Last active May 26, 2025 00:00
Use this to update a game's FNA installation!
#!/bin/bash
# FNA Update Script
# Written by Ethan "flibitijibibo" Lee
#
# Released under public domain.
# No warranty implied; use at your own risk.
#
# Run this script in the game's executable folder.
#
# This script requires the following programs:
@flibitijibibo
flibitijibibo / jacket.c
Created January 29, 2016 17:54
"Nascar Jacket" Generator, which I wrote to make an image for my MAGFest 2016 slides
/* "Nascar Jacket" Image Generator
* Written by Ethan "flibitijibibo" Lee
*
* Released under public domain.
* No warranty implied, use at your own risk.
*
* Directions:
* - Grab a bunch of header.jpg files from Steam store pages
* - Line them up in zero-indexed numerical order (0.jpg, 1.jpg, ...)
* - Edit the defines below to get the jacket you want
@flibitijibibo
flibitijibibo / fix_steam_linux.sh
Created December 18, 2015 08:31
If the Steam runtime is giving you trouble, add this to the game's launcher script. Originally used in The Cave, ported by Edward Rudd.
# Thanks Edward!
remove_runtime() {
# strip out STEAM RUNTIME from the path
VAR="$1"
declare -a paths
good_paths=""
OLDIFS=$IFS
IFS=:
paths=(${VAR})
IFS=$OLDIFS
@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.
@flibitijibibo
flibitijibibo / ContentCaseCheck.cs
Created February 26, 2015 18:19
I wrote this for one of my smaller ports. Seems to work well enough for basic content management!
/* ContentCaseCheck - XNA Content Case Sensitivity Verification Tool
* 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.IO;
@flibitijibibo
flibitijibibo / SDL_GameController.txt
Last active November 1, 2015 23:20
These changes allow for a working experience out of the box with SDL_GameController.
export SDL_GAMECONTROLLERCONFIG="0600000057696920552047616d655000,Wii U GamePad (libdrc),platform:Linux,x:b12,a:b14,b:b15,y:b13,back:b2,guide:b1,start:b3,dpleft:b11,dpdown:b8,dpright:b10,dpup:b9,leftshoulder:b5,lefttrigger:b7,rightshoulder:b4,righttrigger:b6,leftstick:b23,rightstick:b22,leftx:a0,lefty:a1,rightx:a2,righty:a3,"
@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 / FNAWindowExample.cs
Last active April 30, 2022 15:21
Example to hook up an SDL2 window to a Panel for use in a System.Windows.Forms window
#region License
/* FNA GameWindow for System.Windows.Forms Example
* Written by Ethan "flibitijibibo" Lee
* http://www.flibitijibibo.com/
*
* Released under public domain.
* No warranty implied; use at your own risk.
*/
#endregion
@flibitijibibo
flibitijibibo / SpriteFontTest.cs
Created July 26, 2014 16:17
SpriteFont Accuracy Test
/* SpriteFont Accuracy Test
* Written by Ethan "flibitijibibo" Lee
* http://www.flibitijibibo.com/
*
* Released under public domain.
* No warranty implied; use at your own risk.
*/
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;