six-updater-web 0.22.0 → 0.22.1
Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile
CHANGED
@@ -214,9 +214,12 @@ class Appsetting < ActiveRecord::Base
|
|
214
214
|
return nil if self.real_path.nil?
|
215
215
|
return nil unless File.directory?(self.real_path)
|
216
216
|
if self.class::SPECIFIC
|
217
|
-
|
217
|
+
if File.exists?(File.join(self.real_path, self.real_exe))
|
218
|
+
return self.class
|
219
|
+
else
|
220
|
+
return nil
|
221
|
+
end
|
218
222
|
end
|
219
|
-
#return self.class if self.class::SPECIFIC
|
220
223
|
game = nil
|
221
224
|
cond = nil
|
222
225
|
ed = nil
|
@@ -2,4 +2,6 @@ class Arma2StAppsetting < Arma2Appsetting
|
|
2
2
|
FRIENDLY_NAME = "ArmA 2 (Standalone)"
|
3
3
|
SPECIFIC = true
|
4
4
|
REGKEYS = {"Arma2" => ['SOFTWARE\\Bohemia Interactive Studio\\ArmA 2', 'MAIN']}
|
5
|
+
FAMILY = Hash.new
|
6
|
+
FAMILY["Arma2"] = [["arma2.exe", "arma2server.exe"], {"Arma2St" => []}]
|
5
7
|
end
|