document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. # It is a part of DeadElf79\'s Game_Settings script
  2. class Game_Settings
  3.   def check_up
  4.     # require Blizzard\'s Resource tester
  5.     $deep_testing = @game_databytes.is_a?(NilClass) ? true : false
  6.     Blizzard.Resource_Test
  7.     @game_databytes=check_bytes
  8.     save_settings
  9.   end
  10.  
  11.   def need_to_check_up
  12.     temp=check_bytes
  13.     return false if @game_databytes==temp
  14.     return true if @game_databytes!=temp
  15.   end
  16.  
  17.   def check_bytes(reset=false)
  18.     # required RGSS+ 1.10
  19.     @mass||=0
  20.     return @mass if @mass>0 && !reset
  21.     dirs=[
  22.       \'Audio/BGM\',
  23.       \'Audio/BGS\',
  24.       \'Audio/ME\',
  25.       \'Audio/SE\',
  26.       \'Data\',
  27.       \'Graphics/Animations\',\'Graphics/Autotiles\',\'Graphics/Battlebacks\',
  28.       \'Graphics/Battlers\',\'Graphics/Characters\',\'Graphics/Fogs\',
  29.       \'Graphics/Gameovers\',\'Graphics/Icons\',\'Graphics/Panoramas\',
  30.       \'Graphics/Pictures\',\'Graphics/Tilesets\',\'Graphics/Titles\',
  31.       \'Graphics/Transitions\',\'Graphics/Windowskins\'
  32.     ]
  33.     dirs.each{|dir|
  34.       files=Dir.files(dir)
  35.       files.each{|file|
  36.         @mass+=FileTest.size(dir+\'/\'+file)
  37.       }
  38.     }
  39.     return @mass
  40.   end
  41. end
');