···81818282boolean singletics = false; // debug flag to cancel adaptiveness
83838484-boolean doomexit;
8484+bool doomexit;
85858686//jff 1/22/98 parms for disabling music and sound
8787-boolean nosfxparm;
8888-boolean nomusicparm;
8787+boolean nomusicparm=0;
89889089//jff 4/18/98
9190extern boolean inhelpscreens;
···154153 wipestart = nowtime;
155154156155 done = wipe_ScreenWipe(0,0,SCREENWIDTH,SCREENHEIGHT,tics);
157157- I_UpdateNoBlit();
158156 M_Drawer(); // menu is drawn even on top of wipes
159157 I_FinishUpdate(); // page flip or blit buffer
160158 }
···173171174172void D_Display (void)
175173{
176176- static boolean isborderstate = false;
177177- static boolean borderwillneedredraw = false;
178178- static boolean inhelpscreensstate = false;
179179- static gamestate_t oldgamestate = -1;
174174+ static boolean isborderstate IDATA_ATTR= false;
175175+ static boolean borderwillneedredraw IDATA_ATTR= false;
176176+ static boolean inhelpscreensstate IDATA_ATTR= false;
177177+ static gamestate_t oldgamestate IDATA_ATTR= -1;
180178 boolean wipe;
181179 boolean viewactive = false, isborder = false;
182180···306304307305 while (!doomexit)
308306 {
309309- // frame syncronous IO operations
310310- //I_StartFrame ();
311311-312307 // process one or more tics
313308 if (singletics)
314309 {
···331326 // Update display, next frame, with current state.
332327 D_Display();
333328334334- // Sound mixing for the buffer is snychronous.
335335-// I_UpdateSound();
329329+ // Give the system some time
336330 rb->yield();
337331 }
338332}
+5-2
apps/plugins/doom/i_system.c
···1616// GNU General Public License for more details.
1717//
1818// $Log$
1919-// Revision 1.8 2006/04/14 21:07:55 kkurbjun
1919+// Revision 1.9 2006/04/15 22:08:36 kkurbjun
2020+// Slight code cleanups, fixed sound parameter - now it saves. Old configurations will be reset.
2121+//
2222+// Revision 1.8 2006-04-14 21:07:55 kkurbjun
2023// Start of profiling support for doom.
2124//
2225// Revision 1.7 2006-04-04 11:16:44 dave
···114117//
115118// I_Quit
116119//
117117-extern boolean doomexit;
120120+118121void I_Quit (void)
119122{
120123 I_ShutdownSound();
-10
apps/plugins/doom/i_system.h
···41414242//
4343// Called by D_DoomLoop,
4444-// called before processing any tics in a frame
4545-// (just after displaying a frame).
4646-// Time consuming syncronous operations
4747-// are performed here (joystick reading).
4848-// Can call D_PostEvent.
4949-//
5050-void I_StartFrame (void);
5151-5252-//
5353-// Called by D_DoomLoop,
5444// called before processing each tic in a frame.
5545// Quick syncronous operations are performed here.
5646// Can call D_PostEvent.