Quantcast WoWInterface - View Single Post - Help with simple addon - enforcing cvars
View Single Post
01-14-18, 02:19 AM   #19
aallkkaa
A Wyrmkin Dreamwalker
 
aallkkaa's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2017
Posts: 56
EDIT: What I say bellow is WRONG. See Ammako's reply immediately bellow for details.

Originally Posted by Torhal View Post
Improper exit means the game crashed, which means no disk write.
You can set the flag to work reversely. I.e.:
1. Check the saved flag, say "cleanExit", and do the necessary fixups if it's false or nil;
2. Set cleanExit to false upon PLAYER_LOGIN;
3. Change the CVars and whatnot;
4. Set cleanExit to true on PLAYER_LOGOUT.
The absence of write on game crash implies NO evidence of a clean exit.

Last edited by aallkkaa : 01-15-18 at 06:46 PM.
  Reply With Quote