Sha256: 7adcce784264d5f134b20c79b5e31b645750ebf4e0a27ee679200ae845a205c1

Contents?: true

Size: 585 Bytes

Versions: 4

Compression:

Stored size: 585 Bytes

Contents

class Arma2OaAppsetting < Arma2Appsetting 
  DEFAULT_EXE = "arma2oa.exe"
  DEFAULT_BETA_EXE = "arma2oa.exe"
  DEFAULT_BETA_EXE_PATH = "expansion/beta"
  REGKEY = ['SOFTWARE\\Bohemia Interactive Studio\\ArmA 2 OA', 'MAIN']

  def found_type
    return self.class unless self.real_path
    # TODO: Alternative ways to figure out the edition? Find arma2.exe? etc
    if File.directory?(File.join(self.real_path, "Addons")) && File.exists?(File.join(self.real_path, "Addons", "Chernarus.pbo"))
      Arma2OaCoAppsetting
    else
      Arma2OaStAppsetting
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
six-updater-web-0.19.3 lib/six-updater-web/app/models/arma2_oa_appsetting.rb
six-updater-web-0.19.2 lib/six-updater-web/app/models/arma2_oa_appsetting.rb
six-updater-web-0.19.1 lib/six-updater-web/app/models/arma2_oa_appsetting.rb
six-updater-web-0.19.0 lib/six-updater-web/app/models/arma2_oa_appsetting.rb