uwp_was_closed_by_user


描述

With this function you can find out if the game was previously shut down by the user while playing (i.e. it, was terminated correctly and not by the system). If it has been then the function will return true, otherwise it will return false.


语法:

uwp_was_closed_by_user();


返回:

Boolean(布尔值)


例如:

if uwp_was_closed_by_user()
    {
    global.GameLoaded = false;
    }

The above code checks to see if the app has previously been terminated by the user, and if so, it sets a global variable.