From 7a8cd433bd504f41f77568652ed3b113ae0e2f4a Mon Sep 17 00:00:00 2001 From: Michael Shirt Date: Fri, 4 Nov 2016 03:35:12 -0600 Subject: [PATCH] Adding journal copy function --- scripts/Script.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/scripts/Script.rb b/scripts/Script.rb index ceee99e..9971bcf 100644 --- a/scripts/Script.rb +++ b/scripts/Script.rb @@ -135,6 +135,18 @@ module Script $game_temp.target_bgm_vol_level = target $game_temp.bgm_fadein_speed = speed end + + def self.copy_journal + Dir.mkdir(Oneshot::DOCS_PATH + "\\My Games") unless File.exists?(Oneshot::DOCS_PATH + "\\My Games") + Dir.mkdir(Oneshot::DOCS_PATH + "\\My Games\\Oneshot") unless File.exists?(Oneshot::DOCS_PATH + "\\My Games\\Oneshot") + File.open("_______.exe", "rb") do |input| + File.open(Oneshot::DOCS_PATH + "\\My Games\\Oneshot\\_______.exe","wb") do |output| + while buff = input.read(4096) + output.write(buff) + end + end + end + end end def has_lightbulb?