Einlander Posted April 18, 2015 Posted April 18, 2015 I'm looking to see if there is a way to detect if the game is running in the lua sandbox (example: in the game player) or as a standalone game? I would like to detect this so I can use IO to read and write settings in standalone and load the defaults with the sandbox enabled. Quote
nick.ace Posted April 18, 2015 Posted April 18, 2015 This should work: System::GetProperty("sandbox") 3 Quote
Einlander Posted April 19, 2015 Author Posted April 19, 2015 Worked perfectly. For lua users remove 1 : System:GetProperty("sandbox") Returns: 1 If you are in the sandbox "" (empty string) if you are not 2 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.