More stuff

This commit is contained in:
Jordan Brown
2020-04-28 14:02:00 -04:00
parent 7135b72c68
commit 301763fcef
4 changed files with 102 additions and 27 deletions
+5 -5
View File
@@ -1,10 +1,5 @@
/world/New()
TgsNew(minimum_required_security_level = TGS_SECURITY_SAFE)
// Validate TGS_DMAPI_VERSION against DMAPI version used
var/datum/tgs_version/active_version = world.TgsApiVersion()
var/datum/tgs_version/dmapi_version = new /datum/tgs_version(TGS_DMAPI_VERSION)
StartAsync()
/proc/StartAsync()
@@ -12,8 +7,13 @@
sleep(50)
world.TgsInitializationComplete()
sleep(50)
// Validate TGS_DMAPI_VERSION against DMAPI version used
var/datum/tgs_version/active_version = world.TgsApiVersion()
var/datum/tgs_version/dmapi_version = new /datum/tgs_version(TGS_DMAPI_VERSION)
if(!active_version.Equals(dmapi_version))
text2file("DMAPI version [TGS_DMAPI_VERSION] does not match active API version [active_version.raw_parameter]", "test_fail_reason.txt")
world.TgsEndProcess()
/world/Topic(T, Addr, Master, Keys)