CE作者的脚本.此脚本会注册 dosbox 模拟内存的基址,支持 Windows 和 Linux
https://forum.cheatengine.org/viewtopic.php?t=624001
This script will register the base address of the emulated memory in dosbox. Version independent. Works on windows and linux
Code:
local ms=createMemScan()
ms.ScanValue='IBM COMPATIBLE'
ms.VarType=vtString
ms.ScanWritable='scanInclude'
ms.ScanExecutable='scanExclude'
ms.ScanCopyOnWrite='scanExclude'
ms.scan()
local r=ms.Results
ms.destroy()
if #r==1 then
registerSymbol('base',r[1]-0xfe00e)
else
--needs more refining
print("needs more refining")
end
--scan for "IBM COMPATIBLE"