parisse wrote:
FYI, I also experienced the "trapped in Upsilon" issue. I have modified the home app, so that a normal DEL keypress leaves Upsilon. I have not experienced the issue since, I don't know if it's the long MENU keypress that is responsible or something else.
Other changes I made: support for Casio directories when exchanging files from Upsilon to Casio. I also changed the Python heap address to the unused memory area at 0x8c200000, size 0x300000, that's 48 times more memory for your Python scripts.
Addin https://www-fourier.univ-grenoble-alpes.fr/~parisse/casio/upsilon.g3a
The changes in source code:
apps/home/controller.cpp:
https://www-fourier.univ-grenoble-alpes.fr/~parisse/casio/controller.cpp
ion/src/simulator/fxcg/main.cpp
https://www-fourier.univ-grenoble-alpes.fr/~parisse/casio/main.cpp
apps/code/app.cpp: add a declaration at begin
Code:
(calculator is a variable that is set to 1 by main if the calc is a FXCG50 or the French equivalent mode Graph 90)
and modify
Code:
Other changes I made: support for Casio directories when exchanging files from Upsilon to Casio. I also changed the Python heap address to the unused memory area at 0x8c200000, size 0x300000, that's 48 times more memory for your Python scripts.
Addin https://www-fourier.univ-grenoble-alpes.fr/~parisse/casio/upsilon.g3a
The changes in source code:
apps/home/controller.cpp:
https://www-fourier.univ-grenoble-alpes.fr/~parisse/casio/controller.cpp
ion/src/simulator/fxcg/main.cpp
https://www-fourier.univ-grenoble-alpes.fr/~parisse/casio/main.cpp
apps/code/app.cpp: add a declaration at begin
Code:
#ifdef _FXCG
extern "C" int calculator;
#endif
(calculator is a variable that is set to 1 by main if the calc is a FXCG50 or the French equivalent mode Graph 90)
and modify
Code:
void App::initPythonWithUser(const void * pythonUser) {
if (!m_pythonUser) {
#ifdef _FXCG
if (calculator==1)
MicroPython::init( (void *) 0x8c200000, (void *)(0x8c200000+ 0x300000));
else
#endif
MicroPython::init(m_pythonHeap, m_pythonHeap + k_pythonHeapSize);
}
m_pythonUser = pythonUser;
}
It's possible that, for whatever reason, the main menu registers the user pressing the menu key after opening it and thus re-opens the application. Would there be a way to 'unpress' the MENU key before running SaveAndOpenMainMenu()?