I'm skeptical that this will be error free due to how quickly I made this little snippet, but this should work:
#==============================================================================
# ** Audio
#==============================================================================
class << Audio
[:bgm, :bgs, :me, :se].each { |method|
alias_method("coz_aud_skmrsc_#{method}_play".intern, "#{method}_play".intern)
define_method("#{method}_play".intern) { |filename, *args|
send("coz_aud_skmrsc_#{method}_play".intern, filename, *args) rescue nil
}
}
end
#==============================================================================
# ** Cache
#==============================================================================
class << Cache
alias coz_cch_skmrsc_load_bitmap load_bitmap
def load_bitmap(*args)
coz_cch_skmrsc_load_bitmap(*args) rescue empty_bitmap
end
end