This commit is contained in:
Empathic Qubit 2021-11-05 13:00:18 +01:00
parent 73411e24a0
commit f11bff6191

View file

@ -347,6 +347,11 @@ return function(server)
server.running = true
end
local function processQuit(command)
server.response(server.responseType.QUIT, server.errorType.OK, command.requestId, nil)
os.exit(0)
end
local function processReset(command)
server.running = true
emu.reset()
@ -866,6 +871,8 @@ return function(server)
elseif ct == server.commandType.EXIT then
processExit(command)
elseif ct == server.commandType.QUIT then
processQuit(command)
elseif ct == server.commandType.RESET then
processReset(command)
else