private void RunInner() {
SetAcX86Param();
if (!IsAssettoCorsaRunning) {
TryToRunAssettoCorsa();
throw new InformativeException("Running AssettoCorsa.exe is required", "You’re using Module Starter, it works only though original launcher.");
}
var backdoor = BackdoorFilename;
if (!File.Exists(backdoor)) {
throw new InformativeException("Connection file is missing", "Make sure UI module is working properly.");
}
IniFile.Write(backdoor, "COMMAND", "CURRENT", JsonConvert.SerializeObject(new {
name = @"start"
}).ToBase64());
Thread.Sleep(2000);
if (new IniFile(backdoor)["COMMAND"].GetNonEmpty("CURRENT") != null) {
throw new InformativeException("UI module does not respond", "Make sure UI module is working properly.");
}
}