Reader: Move the "print exit code in a file" hack to the PB

implementation, where this mess belongs.

No other platform relies on this (because, spoiler alert, InkView \o/).
This commit is contained in:
NiLuJe
2023-08-12 01:10:54 +02:00
parent f53768ea1c
commit a0c140e634
2 changed files with 15 additions and 10 deletions

View File

@@ -324,16 +324,6 @@ end
-- Exit
local function exitReader()
-- Exit code can be shoddy on some platforms due to broken library dtors calling _exit(0) from os.exit(N)
local ko_exit = os.getenv("KO_EXIT_CODE")
if ko_exit then
local fo = io.open(ko_exit, "w+")
if fo then
fo:write(tostring(exit_code))
fo:close()
end
end
-- Save any device settings before closing G_reader_settings
Device:saveSettings()