<?xml version="1.0" encoding="utf-8"?>
<CheatTable CheatEngineTableVersion="46">
  <CheatEntries>
    <CheatEntry>
      <ID>0</ID>
      <Description>"Run Console Command"</Description>
      <VariableType>Auto Assembler Script</VariableType>
      <AssemblerScript>[ENABLE]
{$lua}
if syntaxcheck then
  return
end

local command = inputQuery("The Long Dark - Dev Console", "Enter command:", "")

local rec = memrec
local uncheckTimer = createTimer()
uncheckTimer.Interval = 1
uncheckTimer.OnTimer = function(timer)
  timer.destroy()
  rec.Active = false
end

if command == nil or command == "" then
  -- Bail out if the user cancelled or submitted an empty string
  return
end

LaunchMonoDataCollector()
mono_initialize()

local consoleClass = mono_findClass("", "uConsole")
local runCommandMethod = mono_class_findMethod(consoleClass, "RunCommand")

mono_invoke_method(mono_enumDomains()[1], runCommandMethod, nil, {{type=vtString, value=command}})

[DISABLE]
</AssemblerScript>
    </CheatEntry>
  </CheatEntries>
  <UserdefinedSymbols/>
</CheatTable>
