track whether running on POSE to work around NetLibSelect bug; track

whether addr needs re-resolving.
This commit is contained in:
ehouse 2005-04-03 16:55:38 +00:00
parent b485deb357
commit 62b994e32e

View file

@ -206,6 +206,7 @@ typedef struct PalmDictList PalmDictList;
typedef struct NetLibStuff { typedef struct NetLibStuff {
UInt16 netLibRef; UInt16 netLibRef;
NetSocketRef socket; NetSocketRef socket;
XP_Bool ipAddrInval;
} NetLibStuff; } NetLibStuff;
#define socketIsOpen(g) ((g)->nlStuff.socket != -1) #define socketIsOpen(g) ((g)->nlStuff.socket != -1)
#endif #endif
@ -257,6 +258,7 @@ struct PalmAppGlobals {
Boolean isFirstLaunch; Boolean isFirstLaunch;
Boolean menuIsDown; Boolean menuIsDown;
XP_Bool newGameIsNew; XP_Bool newGameIsNew;
XP_Bool runningOnPOSE; /* Needed for NetLibSelect */
GraphicsAbility able; GraphicsAbility able;
XP_U32 penTimerFireAt; XP_U32 penTimerFireAt;
@ -365,8 +367,7 @@ void writeNameToGameRecord( PalmAppGlobals* globals, XP_S16 index,
XP_UCHAR* getResString( PalmAppGlobals* globals, XP_U16 strID ); XP_UCHAR* getResString( PalmAppGlobals* globals, XP_U16 strID );
Boolean palmask( PalmAppGlobals* globals, XP_UCHAR* str, XP_UCHAR* altButton, Boolean palmask( PalmAppGlobals* globals, XP_UCHAR* str, XP_UCHAR* altButton,
XP_S16 titleID ); XP_S16 titleID );
void checkAndDeliver( PalmAppGlobals* globals, XWStreamCtxt* instream, void checkAndDeliver( PalmAppGlobals* globals, XWStreamCtxt* instream );
CommsAddrRec* addr );
#ifdef XW_TARGET_PNO #ifdef XW_TARGET_PNO
# define READ_UNALIGNED16(n) read_unaligned16((unsigned char*)(n)) # define READ_UNALIGNED16(n) read_unaligned16((unsigned char*)(n))