def runNative(config): ResumeHandler.storeResume() cmd = config["cmd"] if "cmd" in config else None if (cmd == None or not os.path.isfile(cmd)): print("cmd needs to be set to an existing executable") return print("Platform is: " + platform.processor()) if (platform.processor() == ""): runNativeMIPS(cmd, config) else: runNativeHost(cmd, config)
def runEmu(config, rom): ResumeHandler.storeResume() name = config["name"] workdir = config["workingDir"] if "workingDir" in config else None cmd = config["cmd"] if "workingDir" in config else None if (cmd == None or not os.path.isfile(cmd)): print("cmd needs to be set to an existing executable") return print("Platform is: " + platform.processor()) if (workdir == None and not cmd == None): workdir = os.path.abspath(os.path.join(cmd, os.pardir)) if (platform.processor() == ""): runEmuMIPS(name, cmd, workdir, config, rom) else: runEmuHost(name, cmd, workdir, config, rom)