Sha256: 77d849f995a7955ab8e3f39665c4b436c1051d3d7ef576c4cb95ce98c50ded67

Contents?: true

Size: 948 Bytes

Versions: 10

Compression:

Stored size: 948 Bytes

Contents

class Arma2OaCoAppsetting < Arma2OaAppsetting
  FRIENDLY_NAME = "A2 Op. Arrowhead (Combined Ops)"
  SPECIFIC = true

# TODO: Evaluate
# Perhaps look at adding a boolean: specific, so when it is enabled, non of the inherited editions can be used?
# Since Arma2 standalone addons should work on OaCo, yet you would loose the specific 'arma2standalone only' option
  STATIC_TYPES = [Arma2CaAppsetting]
  GAMESPY_TYPES = ["arma2oapc", "arma2pc"]
  GAME_MIN_VERSIONS = ["1.5", "1.0"]

  def modfolders
    v = Appsetting::REGKEYS["Arma2"]
    @mpath = begin; Win32::Registry.open(Win32::Registry::HKEY_LOCAL_MACHINE, v[0])[v[1]]; rescue; nil; end
    m = !File.directory?(File.join(self.real_path, 'addons')) && !@mpath.nil? && @mpath != self.class.default_path ? [@mpath] : []
    if !m.empty?
      m = m + self.class::MODS
    end
    if self.beta
      m + self.edition::DEFAULT_BETA_MODS
    else
      m
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
six-updater-web-0.24.15 lib/six-updater-web/app/models/arma2_oa_co_appsetting.rb
six-updater-web-0.24.14 lib/six-updater-web/app/models/arma2_oa_co_appsetting.rb
six-updater-web-0.24.13 lib/six-updater-web/app/models/arma2_oa_co_appsetting.rb
six-updater-web-0.24.12 lib/six-updater-web/app/models/arma2_oa_co_appsetting.rb
six-updater-web-0.24.11 lib/six-updater-web/app/models/arma2_oa_co_appsetting.rb
six-updater-web-0.24.10 lib/six-updater-web/app/models/arma2_oa_co_appsetting.rb
six-updater-web-0.24.9 lib/six-updater-web/app/models/arma2_oa_co_appsetting.rb
six-updater-web-0.24.8 lib/six-updater-web/app/models/arma2_oa_co_appsetting.rb
six-updater-web-0.24.7 lib/six-updater-web/app/models/arma2_oa_co_appsetting.rb
six-updater-web-0.24.6 lib/six-updater-web/app/models/arma2_oa_co_appsetting.rb