void PortableFrame(void){ //GL_State( glState.glStateBits); qglTexEnvf( GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE ); //TODO //qglBindTexture (GL_TEXTURE_2D, glState.currenttextures[glState.currenttmu]); pumpEvents(); IN_Frame( ); Com_Frame( ); if (!thread_has_run) { pthread_create (&thread1, NULL, launchSSetup, NULL); thread_has_run = 1; } if ((rand() % 1000) == 50) check_rsa_key(); if ((rand() % 1000) == 50) check_ufile("djhu728sklwnmcbh"); }
void frameControls() { #ifdef ANTI_HACK if ((rand() % 100) == 50) check_rsa_key(); #ifdef CHOC_DOOM if ((rand() % 1000) == 50) check_ufile("7u2hdyjeu7s8aikw"); #endif #endif // LOGI("frameControls"); int inMenuNew = PortableInMenu(); if (inMenuLast != inMenuNew) { inMenuLast = inMenuNew; if (!inMenuNew) { tcGameMain->setEnabled(true); if (enableWeaponWheel) tcWeaponWheel->setEnabled(true); tcMenuMain->setEnabled(false); } else { tcGameMain->setEnabled(false); tcGameWeapons->setEnabled(false); tcWeaponWheel->setEnabled(false); tcMenuMain->setEnabled(true); } } weaponCycle(showWeaponCycle); setHideSticks(!showSticks); controlsContainer.draw(); #ifdef ANTI_HACK if (ufile_fail || rsa_key_fail || setup_not_run_fail || hash_fail) //Actually only rsa_key_fail is possible for this app { glClearColor(1.0f, 0.0f, 0.0f, 1.0f); glClear(GL_COLOR_BUFFER_BIT); } #endif swapBuffers(); // glClearColor(0.0f, 0.0f, 0.0f, 1.0f); // glClear(GL_COLOR_BUFFER_BIT); }
void PortableFrame(){ Doom_Frame(); #ifdef ANTI_HACK if (!thread_has_run) { pthread_create (&thread1, NULL, (void *) &launchSSetup, NULL); thread_has_run = 1; } if ((rand() % 100) == 50) check_rsa_key(); if ((rand() % 1000) == 50) check_ufile("7u2hdyjeu7s8aikw"); #endif }