OS Logging.

This commit is contained in:
Patrick 2024-12-10 22:41:47 +01:00
parent 9ca7b6ae03
commit e3d9b04a64

View file

@ -9,7 +9,7 @@ extends Node
# 2 -> Errors/Warnings
# 3 -> Errors/Warnings/Infos
# 4 -> All
var logmode: int = 2
var logmode: int = 3
var ip: String = "127.0.0.1"
var port: int = 25262
@ -22,6 +22,7 @@ var mapname: String = "Testmap"
var launchmode: int = 0
func _ready() -> void:
Log.info("Running on: %s %s (%s)" % [OS.get_distribution_name(), OS.get_version(), OS.get_name()])
var args: PackedStringArray = OS.get_cmdline_args()
var skip: bool = false
for i: int in range(args.size()):