Gez Posted April 1, 2011 In the vein of the infamous Skulltag backdoor and its predecessor the "Fly" backdoor in csDoom, a backdoor has been discovered in Eternity! The console's behavior is altered if the player name is "quasar": static void C_addToHistory(qstring *s) { const char *a_prompt; // display the command in console // hrmm wtf does this do? I dunno. if(gamestate == GS_LEVEL && !strcasecmp(players[0].name, "quasar")) a_prompt = altprompt; else a_prompt = inputprompt; void C_Drawer(void) { int y; int count; int real_height; static int oldscreenheight = 0; static int oldscreenwidth = 0; ... stuff stuff stuff ... // input line on screen, not scrolled back in history? if(Console.current_height > c_font->absh && Console.showprompt && message_pos == message_last) { const char *a_prompt; char tempstr[LINELENGTH]; // if we are scrolled back, dont draw the input line if(message_pos == message_last) { if(gamestate == GS_LEVEL && !strcasecmp(players[0].name, "quasar")) a_prompt = altprompt; else a_prompt = inputprompt; psnprintf(tempstr, sizeof(tempstr), "%s%s_", a_prompt, input_point); } Dastardly I tell you! (PS: This is not an April's Fool joke in so far as it is real. However, as far as the seriousness of the offense goes, it could as well be. All this does is change the character displayed in the console as the prompt from a $ to a #.) 0 Share this post Link to post
esselfortium Posted April 1, 2011 All this does is change the character displayed in the console as the prompt from a $ to a #. 0 Share this post Link to post
Quasar Posted April 2, 2011 Yeah he probably should have pasted this part too :Pstatic const char *inputprompt = FC_HI "$" FC_NORMAL; // gee what is this for? :) static const char *altprompt = FC_HI "#" FC_NORMAL; 0 Share this post Link to post