six-updater-web 0.19.2 → 0.19.3
Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile
CHANGED
@@ -22,7 +22,7 @@ case RUBY_VERSION
|
|
22
22
|
end
|
23
23
|
|
24
24
|
module SixUpdaterWeb
|
25
|
-
VERSION = "0.19.
|
25
|
+
VERSION = "0.19.3"
|
26
26
|
COMPONENT = "six-updater-web"
|
27
27
|
|
28
28
|
DEFAULT_IP = "127.0.0.1" unless defined?(DEFAULT_IP)
|
@@ -90,20 +90,36 @@ module SixUpdaterWeb
|
|
90
90
|
ENV['PATH'] = "#{tpath};#{ENV['PATH']}" unless ENV['PATH'].include?(tpath)
|
91
91
|
|
92
92
|
begin
|
93
|
-
rpath = Win32::Registry.open(Win32::Registry::HKEY_LOCAL_MACHINE, ARMA2_STEAM[0])[ARMA2_STEAM[1]]
|
94
|
-
distro = "STEAM"
|
93
|
+
rpath = Win32::Registry.open(Win32::Registry::HKEY_LOCAL_MACHINE, ARMA2_STEAM[0] + " OA")[ARMA2_STEAM[1]]
|
94
|
+
distro = "OA STEAM"
|
95
95
|
rescue
|
96
96
|
begin
|
97
|
-
rpath = Win32::Registry.open(Win32::Registry::HKEY_LOCAL_MACHINE, ARMA2_ALT[0])[ARMA2_ALT[1]]
|
98
|
-
distro = "ALT"
|
97
|
+
rpath = Win32::Registry.open(Win32::Registry::HKEY_LOCAL_MACHINE, ARMA2_ALT[0] + " OA")[ARMA2_ALT[1]]
|
98
|
+
distro = "OA ALT"
|
99
99
|
rescue
|
100
100
|
begin
|
101
|
-
rpath = Win32::Registry.open(Win32::Registry::HKEY_LOCAL_MACHINE, ARMA2[0])[ARMA2[1]]
|
102
|
-
distro = "STANDARD"
|
101
|
+
rpath = Win32::Registry.open(Win32::Registry::HKEY_LOCAL_MACHINE, ARMA2[0] + " OA")[ARMA2[1]]
|
102
|
+
distro = "OA STANDARD"
|
103
103
|
rescue
|
104
|
+
begin
|
105
|
+
rpath = Win32::Registry.open(Win32::Registry::HKEY_LOCAL_MACHINE, ARMA2_STEAM[0])[ARMA2_STEAM[1]]
|
106
|
+
distro = "A2 STEAM"
|
107
|
+
rescue
|
108
|
+
begin
|
109
|
+
rpath = Win32::Registry.open(Win32::Registry::HKEY_LOCAL_MACHINE, ARMA2_ALT[0])[ARMA2_ALT[1]]
|
110
|
+
distro = "A2 ALT"
|
111
|
+
rescue
|
112
|
+
begin
|
113
|
+
rpath = Win32::Registry.open(Win32::Registry::HKEY_LOCAL_MACHINE, ARMA2[0])[ARMA2[1]]
|
114
|
+
distro = "A2 STANDARD"
|
115
|
+
rescue
|
116
|
+
end
|
117
|
+
end
|
118
|
+
end
|
104
119
|
end
|
105
120
|
end
|
106
121
|
end
|
122
|
+
|
107
123
|
else
|
108
124
|
HOME_PATH = "#{ENV['HOME']}" # Unfreezes the string
|
109
125
|
TEMP_PATH = '/tmp'
|