samamanjaro
Member
Hello, I am looking for a simple script that scans the game and moves any unused graphics/audio to a different folder.
Yours, Sam.
Yours, Sam.
module RPG::Cache
class << self
if @seph_imagelog.nil?
alias seph_imagelog_rpgcache_lb load_bitmap
@seph_imagelog = true
end
def load_bitmap(folder_name, filename, hue = 0)
path = folder_name + filename
save_path(path) unless @cache.has_key?(path)
seph_imagelog_rpgcache_lb(folder_name, filename, hue)
end
def save_path(path)
name = 'Data/Bitmaps Used.rxdata'
data = FileTest.exist?(name) ? load_data(name) : []
data << path unless data.include?(path)
save_data(data, name)
end
def print_usedfiles
name = 'Data/Bitmaps Used.rxdata'
data = FileTest.exist?(name) ? load_data(name) : []
p data
end
end
end
RPG::Cache.print_usedfiles