public static void Main() { System.Console.Title = "AITD cache viewer"; Directory.CreateDirectory("GAMEDATA"); if (File.Exists("GAMEDATA/vars.txt")) { varParser = new VarParserExt(); varParser.Load("GAMEDATA/vars.txt", cacheConfig.Select(x => x.Section).ToArray()); } while (true) { if (process == null) { SearchDosBox(); } if (process != null && entryPoint == -1) { SearchEntryPoint(); } if (process != null) { ReadInput(); ReadMemory(); if (comparer.SortByTimestamp) { SortEntries(); } } if (process != null) { Render(); Thread.Sleep(15); } else { Thread.Sleep(1000); } } }