Sha256: 914cdc7b64b867a3b5ec42fbdb12077f2b383d90cccea6a4c371bc0152e3c153
Contents?: true
Size: 860 Bytes
Versions: 3
Compression:
Stored size: 860 Bytes
Contents
module Joybox module Configuration class FileUtils < CCFileUtils def self.default_configuration { enable_fallback_suffixes: false, set_iphone_retina_display_suffix: "-hd", set_ipad_suffix: "-ipad", set_ipad_retina_display_suffix: "-ipadhd" } end def self.configure(options = {}) options = options.nil? ? default_configuration : default_configuration.merge!(options) file_utils = FileUtils.sharedFileUtils file_utils.setEnableFallbackSuffixes(options[:enable_fallback_suffixes]) file_utils.setiPhoneRetinaDisplaySuffix(options[:set_iphone_retina_display_suffix]) file_utils.setiPadSuffix(options[:set_ipad_suffix]) file_utils.setiPadRetinaDisplaySuffix(options[:set_ipad_retina_display_suffix]) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
joybox-0.0.5 | lib/joybox/cocos2d/configuration/file_utils.rb |
joybox-0.0.4 | lib/joybox/cocos2d/configuration/file_utils.rb |
joybox-0.0.3 | lib/joybox/cocos2d/configuration/file_utils.rb |