Jump to content

Detecting DST vs. DS

Recommended Posts



I'm attempting to minimize the amount of script changes needed to port a mod.  What's the most reliable way to test whether the current environment is Don't Starve versus Don't Starve Together?



Link to comment
Share on other sites

function IsDST_1()	return GLOBAL.DST_CHARACTERLIST and true or falseendfunction IsDST_2()	return GLOBAL.TheNet and true or falseend

and what if they add that to DS, for whatever reason?^^

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...