Posté le 02/09/2025 19:16
Planète Casio v4.3 © créé par Neuronix et Muelsaco 2004 - 2025 | Il y a 69 connectés | Nous contacter | Qui sommes-nous ? | Licences et remerciements
Planète Casio est un site communautaire non affilié à Casio. Toute reproduction de Planète Casio, même partielle, est interdite.
Les programmes et autres publications présentes sur Planète Casio restent la propriété de leurs auteurs et peuvent être soumis à des licences ou copyrights.
CASIO est une marque déposée par CASIO Computer Co., Ltd
Citer : Posté le 02/09/2025 19:59 | #
You should world switch to use file functions:
Save(field);
// do
gint_world_switch(GINT_CALL(Save, (void *)field));
This gives control of the hardware back to the OS for the duration of the call, which it needs to write files. (The syntax isn't great.)
Citer : Posté le 02/09/2025 20:23 | #
also i have to reopen the addin twice after opening it (it returns to menu ater any keypress)adn even then i have to click a button so it updates (i have a dclear and dupdate in the start of main). am i supposed to quit the program wiuth
return 1;
i have gint_setrestart set to 1
Citer : Posté le 02/09/2025 20:26 | #
and ther saving works now thanks
Citer : Posté le 02/09/2025 20:32 | #
This exit method is indeed "wrong"; you have two basic options. (1) is to use gint_setrestart() then return from main and after that you can enter the application again, restarting it. (2) is to put gint_osmenu() inside your main loop, then if the user re-enters the add-in execution continues as if nothing had happened. The difference is that (1) leads to your program restarting from the beginning whereas (2) just pauses and resumes it more naturally. If both options are available to you, I recommend (2).
and ther saving works now thanks
Great!
Citer : Posté le 10/09/2025 22:15 | #
so i tried both, but whenever i launch the addin i have to press a key for the screen to update (calling a clear and update in start of main and in the loop)
is that fixable in gint