opus-nt/mods/[all]/disable auto crash reboot/modscript.py
2021-03-22 03:45:21 +01:00

4 lines
254 B
Python

for key in opusnt.regQueryKeys(opusnt.regTmpPath + "system"):
if key.lower().startswith(opusnt.regTmpPath.lower() + "system\\controlset"):
opusnt.runReg(["add",key+ "\\Control\\CrashControl","/v","AutoReboot","/t","REG_DWORD","/d","0x00000000","/f"])