-
The Observer!
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 :)
-
-
Account Upgraded | Title Enabled!
Re: Fix Shutdown in Source
please post how to fix that thanks sir
-
Back at old school
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(); // } // } //}