public void HitabashiPark() {
var path = Path.Combine(AcRootFinder.Find(), @"content\tracks\hitabashipark\hitabashipark.kn5");
var output = Path.Combine(Path.GetDirectoryName(path) ?? "", "map.png");
var ini = Path.Combine(Path.GetDirectoryName(path) ?? "", "data", "map.ini");
if (!File.Exists(path)) {
Debug.WriteLine("REQUIRED ASSET IS MISSING, TEST CANNOT BE DONE");
return;
}
using (var renderer = new TrackMapRenderer(path) { Scale = 3.4f, Margin = 50f }) {
renderer.Shot(output);
renderer.SaveInformation(ini);
}
}
}