This site requires JavaScript, please enable it in your browser!
Greenfoot back
Sniper
Sniper wrote ...

2013/11/5

Checking if the game is running locally or online

Sniper Sniper

2013/11/5

#
Is it possible to check if the game is running locally on a machine or online? I want to check so I can only try to write to a file if the game is running locally since you cannot write to a file when running online.
bourne bourne

2013/11/5

#
davmac wrote...
private boolean isRunningAsApplet()
{
    return null != System.getSecurityManager();
}
You need to login to post a reply.