Skip to content

Instantly share code, notes, and snippets.

View hatoving's full-sized avatar
😀
my hands are full

Attila Kuti hatoving

😀
my hands are full
View GitHub Profile
@JohnnyonFlame
JohnnyonFlame / UTMTGetVersionGuesstimate.csx
Last active August 9, 2022 21:55
Console snippet to check which runner version a gamemaker studio game might be exported to using UTMT.
using System.Reflection;
FieldInfo ver = null;
foreach (var t in typeof(UndertaleData).GetFields())
{
if (t.Name.StartsWith("GM") && (t.FieldType == typeof(bool)) && (bool)t.GetValue(Data))
{
ver = t;
}
}