[Solved]Detect Add-In Exiting and Loading
6 posts
• Page 1 of 1
[Solved]Detect Add-In Exiting and Loading
Hello everyone, is there a way to detect that an addin is exiting and loading? For example, to save state? I want to be able to save and re-load the board in Minesweeper when the user exits/returns.
Re: Detect Add-In Exiting and Loading
- Code: Select all
void quit()
{
//save game state
}
int AddIn_main(int isAppli, unsigned short OptionNum)
{
//snip
SetQuitHandler((void *) quit);
//load game state
//snip
}
Addin "quits" when user presses [MENU] and enters another addin.
Re: Detect Add-In Exiting and Loading
Is that a syscall? I don't see it documented in the SDK documentation I have (SuperH-based fx calculators (version 18)).
- SimonLothar
- Senior Member
- Posts: 605
- Joined: Sat Sep 15, 2012 6:59 am
- Location: Krautland ****
- Calculators: Casio fx-7400GII, Casio fx-7400GII (SH4), Casio fx-9750GII, Casio fx-9750GII (SH4), Casio fx-9860G, Casio fx-9860G SD, Casio fx-9860G Slim, Casio fx-9860GII SD, Casio fx-9860GII SD Power Graphic 2, Casio Classpad 330 plus, Casio fx-CG20, Casio fx-CG50, Casio Classpad fx-CP400
Re: Detect Add-In Exiting and Loading
It is syscall 0x494 with fx-9860G-calculators. On fx-CG-calculators it is 0x1E6E. The latter I did not check yet. But do not use the name "CallbackAtQuitMainFunction", which I assigned to syscall 0x494. Use "SetQuitHandler" instead.merthsoft wrote:Is that a syscall? I don't see it documented in the SDK documentation I have (SuperH-based fx calculators (version 18)).
EDIT: I just checked 0x1E6E on one of my prizms and it looks as if it's working.
I'll be back!
6 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 4 guests