fix launching emulator for atari target

This commit is contained in:
Irmen de Jong 2022-02-24 23:22:02 +01:00
parent 6185d5eca1
commit 6cce47b2f1
2 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@ internal class AssemblyProgram(
val proc = ProcessBuilder(assemblerCommand).inheritIO().start()
val result = proc.waitFor()
if (result == 0) {
if (result == 0 && compTarget.name!="atari") {
removeGeneratedLabelsFromMonlist()
generateBreakpointList()
}

View File

@ -169,7 +169,7 @@ private fun compileMain(args: Array<String>): Boolean {
val programNameInPath = outputPath.resolve(compilationResult.programName)
if(startEmulator1==true || startEmulator2==true) {
if (compilationResult.compilationOptions.launcher != LauncherType.NONE) {
if (compilationResult.compilationOptions.launcher != LauncherType.NONE || compilationTarget=="atari") {
if (startEmulator1 == true)
compilationResult.compilationOptions.compTarget.machine.launchEmulator(1, programNameInPath)
else if (startEmulator2 == true)