six-updater 0.12.3 → 0.12.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/six/updater-app.rb +2 -1
- data/lib/six/updater.rb +15 -2
- metadata +1 -1
data/Rakefile
CHANGED
data/lib/six/updater-app.rb
CHANGED
data/lib/six/updater.rb
CHANGED
@@ -44,7 +44,7 @@ end
|
|
44
44
|
module Six
|
45
45
|
# TODO: Evaluate if this module should be a class instead?
|
46
46
|
module Updater
|
47
|
-
VERSION = '0.12.
|
47
|
+
VERSION = '0.12.4'
|
48
48
|
COMPONENT = 'six-updater'
|
49
49
|
|
50
50
|
# Configuration
|
@@ -277,6 +277,10 @@ module Six
|
|
277
277
|
@mods = []
|
278
278
|
@mods << @config[:mods] if @config[:mods]
|
279
279
|
|
280
|
+
@beta = false
|
281
|
+
@beta_exe = false
|
282
|
+
@beta_exe = true if @config[:app_exe][/beta\/arma2.*\.exe/]
|
283
|
+
|
280
284
|
@config[:folders].each do |folder|
|
281
285
|
unless folder[:disabled]
|
282
286
|
folder[:folder].gsub!('\\', '/')
|
@@ -284,6 +288,7 @@ module Six
|
|
284
288
|
@mods << folder[:mods]
|
285
289
|
else
|
286
290
|
@mods << folder[:folder]
|
291
|
+
@beta = true if folder[:folder] == 'beta'
|
287
292
|
end
|
288
293
|
end
|
289
294
|
end
|
@@ -291,7 +296,7 @@ module Six
|
|
291
296
|
|
292
297
|
# Output processed config data
|
293
298
|
log.info "Manager for: #{@mods}"
|
294
|
-
|
299
|
+
beta_msg
|
295
300
|
|
296
301
|
# Prepare stats
|
297
302
|
@stats = []
|
@@ -303,6 +308,14 @@ module Six
|
|
303
308
|
end
|
304
309
|
end
|
305
310
|
|
311
|
+
def beta_msg
|
312
|
+
if @beta_exe && !@beta
|
313
|
+
log.warn "WARNING: You do not seem to be running the 'beta' modfolder, but have selected 'beta/arma2.exe'"
|
314
|
+
elsif !@beta_exe && @beta
|
315
|
+
log.warn "WARNING: You seem to be running the 'beta' modfolder, but have not selected 'beta/arma2.exe'"
|
316
|
+
end
|
317
|
+
end
|
318
|
+
|
306
319
|
def log
|
307
320
|
@@log
|
308
321
|
end
|