mirror of
https://github.com/TimeCrafters/timecrafters_configuration_tool_desktop.git
synced 2025-12-16 05:42:35 +00:00
Added support for multiple configs (local only for now)
This commit is contained in:
@@ -81,7 +81,7 @@ module TAC
|
||||
$window.backend.tacnet.puts(PacketHandler.packet_upload_config(json))
|
||||
else
|
||||
if $server.active_client && $server.active_client.connected?
|
||||
json = File.read(TAC::CONFIG_PATH)
|
||||
json = File.read(TAC::CONFIGS_PATH)
|
||||
$server.active_client.puts(PacketHandler.packet_upload_config(json))
|
||||
end
|
||||
end
|
||||
|
||||
@@ -71,7 +71,7 @@ module TAC
|
||||
@active_client = client
|
||||
# TODO: Backup local config
|
||||
# SEND CONFIG
|
||||
config = File.read(TAC::CONFIG_PATH)
|
||||
config = File.read(TAC::CONFIGS_PATH)
|
||||
|
||||
@active_client.puts(PacketHandler.packet_handshake(@active_client.uuid))
|
||||
@active_client.puts(PacketHandler.packet_upload_config(config))
|
||||
|
||||
Reference in New Issue
Block a user