# Example of Main using DeadElf79\'s Game_Setting resource check
# and DeadElf79\'s Simple Log Writer (ver.1.2)
begin
begin
if $gs.need_to_check_up
$gs.check_up
end
while $scene != nil
$scene.main
end
Graphics.transition(20)
rescue Errno::ENOENT
# Supplement Errno::ENOENT exception
# If unable to open file, display message and end
filename = $!.message.sub("No such file or directory - ", "")
wr \'End of game by exception\'
wr "Unable to find file #{filename}."
print("Unable to find file #{filename}.")
end
rescue => error
wr \'End of game by exception\'
wr "Error: #{error.exception}"
wr error.backtrace.join("\\n"),nil,true
end