Expand shared Sprinter MCP with managed launch, raw reads and key input
This commit is contained in:
@@ -60,7 +60,10 @@ def main():
|
||||
raise RuntimeError('DAP завершился до авторского лога')
|
||||
if event.get('event') == 'output': outputs.append(event)
|
||||
socket = launched['body']['socket']
|
||||
tail = rpc_call(socket, 'mame_console_tail', {'count': 50}, timeout=6)
|
||||
identity = rpc_call(socket, 'status')
|
||||
tail = rpc_call(socket, 'mame_console_tail', {'count': 50}, timeout=6,
|
||||
session_id=identity['session_id'],
|
||||
build_id=identity['build_id'])
|
||||
if not any('total=1' in line for line in tail['lines']):
|
||||
raise RuntimeError('В debugger console MAME нет total=1: '+str(tail))
|
||||
print(json.dumps({'event': 'macro_dual_console_verified',
|
||||
|
||||
Reference in New Issue
Block a user