mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-17 18:12:01 +01:00
don't save prefs (for now)
This commit is contained in:
parent
3b5222d5f6
commit
1cb340cf95
1 changed files with 5 additions and 1 deletions
|
@ -1052,6 +1052,7 @@ startApplication( PalmAppGlobals** globalsP )
|
||||||
|
|
||||||
globals = (PalmAppGlobals*)XP_MALLOC( mpool, sizeof( PalmAppGlobals ) );
|
globals = (PalmAppGlobals*)XP_MALLOC( mpool, sizeof( PalmAppGlobals ) );
|
||||||
*globalsP = globals;
|
*globalsP = globals;
|
||||||
|
setFormRefcon( globals );
|
||||||
XP_MEMSET( globals, 0, sizeof(PalmAppGlobals) );
|
XP_MEMSET( globals, 0, sizeof(PalmAppGlobals) );
|
||||||
MPASSIGN( globals->mpool, mpool );
|
MPASSIGN( globals->mpool, mpool );
|
||||||
|
|
||||||
|
@ -1231,9 +1232,13 @@ stopApplication( PalmAppGlobals* globals )
|
||||||
/* Write the state information -- once we're ready to read it in.
|
/* Write the state information -- once we're ready to read it in.
|
||||||
But skip the save if user cancelled launching the first time. */
|
But skip the save if user cancelled launching the first time. */
|
||||||
if ( !globals->isFirstLaunch ) {
|
if ( !globals->isFirstLaunch ) {
|
||||||
|
/* temporarily don't save prefs since we crash on opening
|
||||||
|
them. */
|
||||||
|
#ifndef XW_TARGET_PNO
|
||||||
PrefSetAppPreferences( AppType, PrefID, VERSION_NUM,
|
PrefSetAppPreferences( AppType, PrefID, VERSION_NUM,
|
||||||
&globals->gState, sizeof(globals->gState),
|
&globals->gState, sizeof(globals->gState),
|
||||||
true );
|
true );
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( !!globals->draw ) {
|
if ( !!globals->draw ) {
|
||||||
|
@ -1433,7 +1438,6 @@ applicationHandleEvent( PalmAppGlobals* globals, EventPtr event )
|
||||||
|
|
||||||
switch (formId) {
|
switch (formId) {
|
||||||
case XW_MAIN_FORM:
|
case XW_MAIN_FORM:
|
||||||
setFormRefcon( globals );
|
|
||||||
handler = mainViewHandleEvent;
|
handler = mainViewHandleEvent;
|
||||||
break;
|
break;
|
||||||
case XW_NEWGAMES_FORM:
|
case XW_NEWGAMES_FORM:
|
||||||
|
|
Loading…
Reference in a new issue