six-updater 0.10.1 → 0.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +1 -1
- data/lib/six/updater.rb +5 -9
- metadata +1 -1
data/Rakefile
CHANGED
data/lib/six/updater.rb
CHANGED
@@ -43,7 +43,7 @@ end
|
|
43
43
|
module Six
|
44
44
|
# TODO: Evaluate if this module should be a class instead?
|
45
45
|
module Updater
|
46
|
-
VERSION = '0.10.
|
46
|
+
VERSION = '0.10.2'
|
47
47
|
COMPONENT = 'six-updater'
|
48
48
|
|
49
49
|
# Configuration
|
@@ -168,20 +168,16 @@ module Six
|
|
168
168
|
cmd << " -connect=#{@config[:server][:address]}" if @config[:server][:address]
|
169
169
|
cmd << " -port=#{@config[:server][:port]}" if @config[:server][:port]
|
170
170
|
cmd << " -password=#{@config[:server][:password]}" if @config[:server][:password]
|
171
|
-
|
172
|
-
cwd = Dir.pwd
|
173
|
-
Dir.chdir @config[:app_path]
|
174
|
-
system "\"#{@config[:app_exe]}\" #{@config[:app_params]} -mod=#{@mods}#{cmd}"
|
175
|
-
Dir.chdir cwd
|
171
|
+
startgame(cmd)
|
176
172
|
end
|
177
173
|
|
178
|
-
def startgame
|
179
|
-
log.info "Starting the game with #{@config[:app_params]} -mod=#{@mods}"
|
174
|
+
def startgame(cmd = nil)
|
175
|
+
log.info "Starting the game with #{@config[:app_params]} -mod=#{@mods}#{cmd}"
|
180
176
|
#system "\"#{@config[:app_exe]}\" #{@config[:app_params]} -mod=#{@mods}"
|
181
177
|
begin
|
182
178
|
struct = Process.create(
|
183
179
|
:app_name => File.join(@config[:app_path], @config[:app_exe]),
|
184
|
-
:command_line => "#{@config[:app_params]} -mod=#{@mods}",
|
180
|
+
:command_line => " #{@config[:app_params]} -mod=#{@mods}#{cmd}",
|
185
181
|
:creation_flags => Process::DETACHED_PROCESS,
|
186
182
|
:process_inherit => false,
|
187
183
|
:thread_inherit => false,
|