summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs235
1 files changed, 0 insertions, 235 deletions
diff --git a/src/main.rs b/src/main.rs
index 95925e0..a25083e 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -5,36 +5,7 @@ use std::process;
mod fmt;
-// void printstr(short x, short y, char string[81], char attribute)
-// {
-// char character;
-// short i, pos;
-
-// pos = (y*80+x)<<1;
-// i = 0;
-// while (string[i] != 0)
-// {
-// character = string[i];
-// printchrasm(0xb8000+(long)pos,1L,((long)attribute<<8)+(long)character);
-// i++;
-// pos+=2;
-// }
-// }
-
-// static char todd[] = "Duke Nukem 3D(tm) Copyright 1989, 1996 Todd Replogle and 3D Realms Entertainment";
-// static char trees[] = "I want to make a game with trees";
-// static char sixteen[] = "16 Possible Dukes";
-
fn main() {
- // #define VERSION "1.4"
- // #define HEAD2 "Duke Nukem 3D v"VERSION" - Atomic Edition"
- // printstr(40-(strlen(HEAD2)>>1),0,HEAD2,79);
-
- // ud.multimode = 1;
- // printstr(0,1," Copyright (c) 1996 3D Realms Entertainment ",79);
-
- // initgroupfile("duke3d.grp");
-
let filename = "DUKE3D.GRP";
let mut group_manager = fmt::GroupManager::new();
@@ -44,210 +15,4 @@ fn main() {
}
println!("DOGWHINE.VOC: {} bytes", group_manager.get("DOGWHINE.VOC").unwrap().len());
-
- // checkcommandline(argc,argv);
-
- println!("You don't have enough free memory to run Duke Nukem 3D.");
- println!("The DOS \"mem\" command should report 6,800K (or 6.8 megs)");
- println!("of \"total memory free\".");
- println!("");
- println!("Duke Nukem 3D requires {} more bytes to run.", 3162000 - 350000);
- process::exit(1);
-
- // Considering that most of this can be implemented with Drop, I
- // don't think it's necessary.
-
- // RegisterShutdownFunction( ShutDown );
- // void ShutDown( void )
- // {
- // SoundShutdown();
- // MusicShutdown();
- // uninittimer();
- // uninitengine();
- // CONTROL_Shutdown();
- // CONFIG_WriteSetup();
- // KB_Shutdown();
- // }
-
- // Startup();
-
-
- // if(numplayers > 1)
- // {
- // ud.multimode = numplayers;
- // sendlogon();
- // }
- // else if(boardfilename[0] != 0)
- // {
- // ud.m_level_number = 7;
- // ud.m_volume_number = 0;
- // ud.warp_on = 1;
- // }
-
- // getnames();
-
- // if(ud.multimode > 1)
- // {
- // playerswhenstarted = ud.multimode;
-
- // if(ud.warp_on == 0)
- // {
- // ud.m_monsters_off = 1;
- // ud.m_player_skill = 0;
- // }
- // }
-
- // ud.last_level = -1;
-
- // RTS_Init(ud.rtsname);
- // if(numlumps) printf("Using .RTS file:%s\n",ud.rtsname);
-
- // if( setgamemode(ScreenMode,ScreenWidth,ScreenHeight) < 0 )
- // {
- // printf("\nVESA driver for ( %i * %i ) not found/supported!\n",xdim,ydim);
- // ScreenMode = 2;
- // ScreenWidth = 320;
- // ScreenHeight = 200;
- // setgamemode(ScreenMode,ScreenWidth,ScreenHeight);
- // }
-
- // // CTW END - MODIFICATION
-
- // genspriteremaps();
-
-// #ifdef VOLUMEONE
-// if(numplayers > 4 || ud.multimode > 4)
-// gameexit(" The full version of Duke Nukem 3D supports 5 or more players.");
-// #endif
-
- // setbrightness(ud.brightness>>2,&ps[myconnectindex].palette[0]);
-
- // ESCESCAPE;
-
- // FX_StopAllSounds();
- // clearsoundlocks();
-
- // if(ud.warp_on > 1 && ud.multimode < 2)
- // {
- // clearview(0L);
- // ps[myconnectindex].palette = palette;
- // palto(0,0,0,0);
- // rotatesprite(320<<15,200<<15,65536L,0,LOADSCREEN,0,0,2+8+64,0,0,xdim-1,ydim-1);
- // menutext(160,105,0,0,"LOADING SAVED GAME...");
- // nextpage();
-
- // j = loadplayer(ud.warp_on-2);
- // if(j)
- // ud.warp_on = 0;
- // }
-
- // // getpackets();
-
-// MAIN_LOOP_RESTART:
-
-// if(ud.warp_on == 0)
-// Logo();
-// else if(ud.warp_on == 1)
-// {
-// newgame(ud.m_volume_number,ud.m_level_number,ud.m_player_skill);
-// enterlevel(MODE_GAME);
-// }
-// else vscrn();
-
-// tempautorun = ud.auto_run;
-
-// if( ud.warp_on == 0 && playback() )
-// {
-// FX_StopAllSounds();
-// clearsoundlocks();
-// nomorelogohack = 1;
-// goto MAIN_LOOP_RESTART;
-// }
-
-// ud.auto_run = tempautorun;
-
-// ud.warp_on = 0;
-
-// while ( !(ps[myconnectindex].gm&MODE_END) ) //The whole loop!!!!!!!!!!!!!!!!!!
-// {
-// if( ud.recstat == 2 || ud.multimode > 1 || ( ud.show_help == 0 && (ps[myconnectindex].gm&MODE_MENU) != MODE_MENU ) )
-// if( ps[myconnectindex].gm&MODE_GAME )
-// if( moveloop() ) continue;
-
-// if( ps[myconnectindex].gm&MODE_EOL || ps[myconnectindex].gm&MODE_RESTART )
-// {
-// if( ps[myconnectindex].gm&MODE_EOL )
-// {
-// #ifdef ONELEVELDEMO
-// gameexit(" ");
-// #endif
-// closedemowrite();
-
-// ready2send = 0;
-
-// i = ud.screen_size;
-// ud.screen_size = 0;
-// vscrn();
-// ud.screen_size = i;
-// dobonus(0);
-
-// if(ud.eog)
-// {
-// ud.eog = 0;
-// if(ud.multimode < 2)
-// {
-// #ifndef VOLUMEALL
-// doorders();
-// #endif
-// ps[myconnectindex].gm = MODE_MENU;
-// cmenu(0);
-// probey = 0;
-// goto MAIN_LOOP_RESTART;
-// }
-// else
-// {
-// ud.m_level_number = 0;
-// ud.level_number = 0;
-// }
-// }
-// }
-
-// ready2send = 0;
-// if(numplayers > 1) ps[myconnectindex].gm = MODE_GAME;
-// enterlevel(ps[myconnectindex].gm);
-// continue;
-// }
-
-// cheats();
-// nonsharedkeys();
-
-// if( (ud.show_help == 0 && ud.multimode < 2 && !(ps[myconnectindex].gm&MODE_MENU) ) || ud.multimode > 1 || ud.recstat == 2)
-// i = min(max((totalclock-ototalclock)*(65536L/TICSPERFRAME),0),65536);
-// else
-// i = 65536;
-
-// displayrooms(screenpeek,i);
-// displayrest(i);
-
-// // if( KB_KeyPressed(sc_F) )
-// // {
-// // KB_ClearKeyDown(sc_F);
-// // addplayer();
-// // }
-
-// if(ps[myconnectindex].gm&MODE_DEMO)
-// goto MAIN_LOOP_RESTART;
-
-// if(debug_on) caches();
-
-// checksync();
-
-// #ifdef VOLUMEONE
-// if(ud.show_help == 0 && show_shareware > 0 && (ps[myconnectindex].gm&MODE_MENU) == 0 )
-// rotatesprite((320-50)<<16,9<<16,65536L,0,BETAVERSION,0,0,2+8+16+128,0,0,xdim-1,ydim-1);
-// #endif
-// nextpage();
-// }
-
-// gameexit(" ");
}