# It is a part of DeadElf79\'s Game_Settings script
class Game_Settings
def check_up
# require Blizzard\'s Resource tester
$deep_testing = @game_databytes.is_a?(NilClass) ? true : false
Blizzard.Resource_Test
@game_databytes=check_bytes
save_settings
end
def need_to_check_up
temp=check_bytes
return false if @game_databytes==temp
return true if @game_databytes!=temp
end
def check_bytes(reset=false)
# required RGSS+ 1.10
@mass||=0
return @mass if @mass>0 && !reset
dirs=[
\'Audio/BGM\',
\'Audio/BGS\',
\'Audio/ME\',
\'Audio/SE\',
\'Data\',
\'Graphics/Animations\',\'Graphics/Autotiles\',\'Graphics/Battlebacks\',
\'Graphics/Battlers\',\'Graphics/Characters\',\'Graphics/Fogs\',
\'Graphics/Gameovers\',\'Graphics/Icons\',\'Graphics/Panoramas\',
\'Graphics/Pictures\',\'Graphics/Tilesets\',\'Graphics/Titles\',
\'Graphics/Transitions\',\'Graphics/Windowskins\'
]
dirs.each{|dir|
files=Dir.files(dir)
files.each{|file|
@mass+=FileTest.size(dir+\'/\'+file)
}
}
return @mass
end
end