mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2026-01-23 06:46:00 +00:00
Added mp3 support back in, changed layout of townmapgen.html, screenshots now go in Screenshots folder, added "NoName" flag for trainer types
This commit is contained in:
@@ -611,7 +611,14 @@ end
|
||||
def pbScreenCapture
|
||||
t = Time.now
|
||||
filestart = t.strftime("[%Y-%m-%d] %H_%M_%S.%L")
|
||||
capturefile = RTP.getSaveFileName(sprintf("%s.png", filestart))
|
||||
Graphics.screenshot(capturefile)
|
||||
begin
|
||||
folder_name = "Screenshots"
|
||||
Dir.create(folder_name) if !Dir.safe?(folder_name)
|
||||
capturefile = folder_name + "/" + sprintf("%s.png", filestart)
|
||||
Graphics.screenshot(capturefile)
|
||||
rescue
|
||||
capturefile = RTP.getSaveFileName(sprintf("%s.png", filestart))
|
||||
Graphics.screenshot(capturefile)
|
||||
end
|
||||
pbSEPlay("Pkmn exp full") if FileTest.audio_exist?("Audio/SE/Pkmn exp full")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user