chore: align ark-suac app and refresh appstore zip
This commit is contained in:
+2
@@ -0,0 +1,2 @@
|
||||
require_relative './start_params_helper.rb'
|
||||
require_relative './ini_config_helper.rb'
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
module AsaCtrl
|
||||
module IniConfigHelper
|
||||
def self.game_user_settings_ini
|
||||
self.parse('/home/gameserver/server-files/ShooterGame/Saved/Config/WindowsServer/GameUserSettings.ini')
|
||||
end
|
||||
|
||||
def self.game_ini
|
||||
self.parse('/home/gameserver/server-files/ShooterGame/Saved/Config/WindowsServer/Game.ini')
|
||||
end
|
||||
|
||||
def self.parse(path)
|
||||
return unless File.exist?(path)
|
||||
|
||||
IniParse.parse(File.read(path))
|
||||
end
|
||||
end
|
||||
end
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
module AsaCtrl
|
||||
module StartParamsHelper
|
||||
def self.get_value(start_params, key)
|
||||
return unless start_params
|
||||
|
||||
value = ''
|
||||
offset = start_params.index("#{key}=")
|
||||
|
||||
return unless offset
|
||||
|
||||
offset += "#{key}=".length
|
||||
|
||||
start_params[offset..-1].each_char do |char|
|
||||
break if char == ' ' || char == '?'
|
||||
|
||||
value += char
|
||||
end
|
||||
|
||||
value
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user