Fix Shutdown in Source

Results 1 to 3 of 3
  1. #1
    The Observer! Saige is offline
    MemberRank
    Oct 2010 Join Date
    PilipinasLocation
    589Posts

    Fix Shutdown in Source

    Hi, anyone know how to fix in source for Auto Shutdown of computer when running Game.exe without having a RUN AS ADMINISTRATOR?


    Thanks. :)

    ---SOLVE, FOUND IT :)
    Last edited by Saige; 20-08-19 at 05:16 AM. Reason: SOLVE, FOUND IT :)


  2. #2
    Account Upgraded | Title Enabled! thewinner3 is offline
    MemberRank
    Jul 2015 Join Date
    Tokyo.JapanLocation
    490Posts

    Re: Fix Shutdown in Source

    please post how to fix that thanks sir

  3. #3
    Back at old school Mustafa5 is offline
    MemberRank
    Mar 2018 Join Date
    329Posts

    Re: Fix Shutdown in Source

    @thewinner3 , find the uncommented code in basic.cpp and comment it like this.

    //while(1) //{ // if ( m_bShutDown == TRUE ) // { // ExitInstance (); // return 0; // } // // if ( PeekMessage ( &msg, NULL, 0, 0, PM_NOREMOVE ) ) // { // if ( GetMessage ( &msg, NULL, 0, 0 ) == FALSE ) // { // ExitInstance (); // return static_cast<int>(msg.wParam); // } // // TranslateMessage (&msg); // DispatchMessage (&msg); // } // else // { // if ( m_bIsActive == TRUE ) // { // if ( m_pWnd ) // { // if ( FAILED ( m_pWnd->Render3DEnvironment() ) ) // m_pWnd->PostMessage ( WM_CLOSE, 0, 0 ); // } // } // else // { // if ( m_pWnd ) // { // if ( FAILED ( m_pWnd->FrameMove3DEnvironment() ) ) // m_pWnd->PostMessage ( WM_CLOSE, 0, 0 ); // } // //WaitMessage(); // } // } //}



Advertisement