Fixed being unable to write values to PBS files that were enumerated to something other than a number, error log files now go in the game's folder

This commit is contained in:
Maruno17
2023-11-04 23:32:43 +00:00
parent 5cab0f407d
commit 092fbda34d
4 changed files with 48 additions and 61 deletions

View File

@@ -51,7 +51,6 @@ def pbPrintException(e)
end
# output to log
errorlog = "errorlog.txt"
errorlog = RTP.getSaveFileName("errorlog.txt") if (Object.const_defined?(:RTP) rescue false)
File.open(errorlog, "ab") do |f|
f.write("\r\n=================\r\n\r\n[#{Time.now}]\r\n")
f.write(message)