static void DoDefaultSystem( void ) /*********************************/ /* first hint about format being 32-bit vs. 16-bit (might distinguish between * os/2 v1 & os/2 v2), and if that doesn't decide it, haul in the default * system block */ { if( (LinkState & FMT_DECIDED) == 0 ) { if( LinkState & FMT_SEEN_64_BIT ) { HintFormat( MK_64BIT ); } else if( LinkState & FMT_SEEN_32_BIT ) { HintFormat( MK_32BIT ); } else { HintFormat( MK_16BIT | MK_QNX ); } if( (LinkState & FMT_DECIDED) == 0 ) { if( LinkState & FMT_SPECIFIED ) { LnkMsg( FTL+MSG_AMBIG_FORMAT, NULL ); } if( LinkState & FMT_SEEN_64_BIT ) { ExecSystem( "64bit" ); } else if( LinkState & FMT_SEEN_32_BIT ) { ExecSystem( "386" ); } else { ExecSystem( "286" ); /* no 386 obj's after this */ } } } }
void NativePlayerWnd::ProcessFSCommand( char* cmd, char* args ) { if ( StrEqual(cmd, "quit") ) { // Quit ExitApp(); } else if ( StrEqual(cmd, "fullscreen") ) { SetFullScreen( IsTrue(args) != 0 ); } else if ( StrEqual(cmd, "allowscale") ) { SetScaleMode( IsTrue(args) ); } else if ( StrEqual(cmd, "exec") ) { // make sure we don't pass any parameters // to the app we want to spawn. We don't want // anybody to do "del *.*" int len = strlen(args) + 1; char *tmpString = new char[len]; if ( tmpString == 0 ) return; for ( int i = 0; i < len; i++ ) { tmpString[i] = args[i]; if ( tmpString[i] == ' ' ) { tmpString[i] = 0; break; } } ExecSystem( tmpString ); delete [] tmpString; } else if ( StrEqual(cmd, "showmenu") ) { // Toggle the full screen flags /* showMenu = IsTrue(args); HMENU hMenu = GetMenu( hwnd ); if (!showMenu) { if (hMenu) { // Save and clear the menu bar savedMenu = hMenu; SetMenu( hwnd, 0); } } else { SetMenu( hwnd, savedMenu ); } */ } else { flash->command(cmd, args); } }