Just thought I might mention one of the existing issues with zzogl-pg, which is probably where the ini file issue is stemming from.
One of the things zzogl-pg does is checks the crc of the game, and looks to see if there are hacks that should be turned on for it. If there are, it enables them automatically. For Sonic Unleashed, it currently automatically turns on the alpha fail hack, and fast update. (If you look in CRC.h, there is a table there with the games and what hacks are enabled.)
One of the problems I was having with this was that the next time you went to play another game, the automatically set hacks were still on. [I kept trying to debug graphical issues, only to find out that they were because of having the Gust hack on on non-Gust games.
![Sad Sad](https://forums.pcsx2.net/smilies/sad.gif)
]
To avoid this, it forgets about automatically set settings when saving. I'm still looking for a better way around that. (And I also tend to forget about the problem, because I don't use the hacks much except for specific games, and for those the current behavior works nicely.)
I'm also kind of limited to fixes that don't change the dialog box much on the Windows side for the moment, because I use Visual C++ Express on that side, and it doesn't have a gui editor. (Theoretically, I suppose I should rewrite the dialog in wxWidgets, but there are so many other things to work on in ZZOgl, and it looks more complicated to do a wxWidgets dialog from a plugin then from the main program...)
I suppose I need more of an indication that it's turning them on (and perhaps a way to disable it). For that matter, having it use a user editable file would be nice, rather then having the values in the code.
Not sure what's causing the exiting issues. I've just been using File->Exit without a problem. Though, admittedly, I don't think I've tested it with Sonic Unleashed on the windows side. I'll have to play with it more on the Windows side, since I tend to just run it long enough to make sure it opens and runs in Windows, and then go back to Linux for the bulk of my testing and changes...