diff --git a/zsnes/src/dos/dosintrf.asm b/zsnes/src/dos/dosintrf.asm index f0499d74..7259b877 100644 --- a/zsnes/src/dos/dosintrf.asm +++ b/zsnes/src/dos/dosintrf.asm @@ -40,7 +40,7 @@ EXTSYM GUIoldhand9s,GUIoldhand9o,GUIoldhand8s,GUIoldhand8o,GUIhandler9h EXTSYM GUIhandler8h,GUIinit18_2hz,dosmakepal,doschangepal,dosinitvideo EXTSYM dosinitvideo2,DosDrawScreen,cvidmode,vidbuffer,GUICPC,DosDrawScreenB EXTSYM DOSClearScreen,DosUpdateDevices,DOSJoyRead,pl1contrl,pl2contrl,pl3contrl -EXTSYM pl4contrl,pl5contrl,BufferSizeW,BufferSizeB,ProcessSoundBuffer +EXTSYM pl4contrl,pl5contrl EXTSYM GrayscaleMode ; NOTE: For timing, Game60hzcall should be called at 50hz or 60hz (depending @@ -1004,8 +1004,6 @@ NEWSYM UpdateDevices ; One-time input device init NEWSYM JoyRead call DOSJoyRead - call SoundProcess ; Put the sound stuff here since it's - ; called 60 times per second ret NEWSYM SetInputDevice @@ -1476,29 +1474,6 @@ NEWSYM StopSound NEWSYM StartSound ret - -NEWSYM SoundProcess ; This function is called ~60 times/s at full speed -.nosound - ret -.notdos - cmp byte[soundon],0 - je .nosound - cmp byte[DSPDisable],1 - je .nosound - mov eax,200 ; Size of 32-bit buffer in dwords - add eax,eax - mov dword[BufferSizeW],eax - add eax,eax - mov dword[BufferSizeB],eax - pushad - call ProcessSoundBuffer - popad - ; DSPBuffer should contain the processed buffer in the specified size - ; You will have to convert/clip it to 16-bit for actual sound process - ret - - - NEWSYM Check60hz ; Call the timer update function here ret diff --git a/zsnes/src/linux/sdlintrf.asm b/zsnes/src/linux/sdlintrf.asm index 6f904eba..aa69a1a8 100644 --- a/zsnes/src/linux/sdlintrf.asm +++ b/zsnes/src/linux/sdlintrf.asm @@ -36,7 +36,7 @@ EXTSYM Stop60HZ,initwinvideo,vesa2_rpos,vesa2_gpos,vesa2_bpos,vesa2_rposng EXTSYM vesa2_gposng,vesa2_bposng,vesa2_usbit,vesa2_clbit,vesa2_clbitng EXTSYM vesa2_clbitng2,vesa2_clbitng3,vesa2red10,res640,res480,cbitmode,cvidmode EXTSYM vesa2_bits,vesa2_x,vesa2_y,genfulladdtab,GUICPC,drawscreenwin -EXTSYM ConvertToAFormat,UnusedBit,HalfTrans,UnusedBitXor,UnusedBit,UnusedBitXor +EXTSYM ConvertToAFormat,HalfTrans,UnusedBit,UnusedBitXor EXTSYM ngrposng,nggposng,ngbposng,HalfTransB,HalfTransC,UpdateVFrame,GetMouseX EXTSYM GetMouseY,GetMouseMoveX,GetMouseMoveY,GetMouseButton,T36HZEnabled EXTSYM MouseButton,Start36HZ,Stop36HZ,BufferSizeW,BufferSizeB,ProcessSoundBuffer @@ -1088,7 +1088,7 @@ NEWSYM StartSound NEWSYM SoundProcess ; This function is called ~60 times/s at full speed - pushad + pushad cmp byte[soundon],0 je .nosound cmp byte[DSPDisable],1 diff --git a/zsnes/src/win/winintrf.asm b/zsnes/src/win/winintrf.asm index a28c3693..7b8d514d 100644 --- a/zsnes/src/win/winintrf.asm +++ b/zsnes/src/win/winintrf.asm @@ -38,7 +38,7 @@ EXTSYM vidbufferofsb,vidbuffer,clearwin,Stop60HZ,initwinvideo,vesa2_rpos EXTSYM vesa2_gpos,vesa2_bpos,vesa2_rposng,vesa2_gposng,vesa2_bposng,vesa2_usbit EXTSYM vesa2_clbit,vesa2_clbitng,vesa2_clbitng2,vesa2_clbitng3,vesa2red10,res640 EXTSYM res480,cbitmode,cvidmode,vesa2_bits,vesa2_x,vesa2_y,genfulladdtab,GUICPC -EXTSYM drawscreenwin,ConvertToAFormat,UnusedBit,HalfTrans,UnusedBitXor,UnusedBit +EXTSYM drawscreenwin,ConvertToAFormat,HalfTrans,UnusedBitXor,UnusedBit EXTSYM ngrposng,nggposng,ngbposng,HalfTransB,HalfTransC EXTSYM WinUpdateDevices,UpdateVFrame,GetMouseX,GetMouseY,GetMouseMoveX EXTSYM GetMouseMoveY,GetMouseButton,SetMouseMinX,SetMouseMaxX,SetMouseMinY diff --git a/zsnes/src/win/winlink.cpp b/zsnes/src/win/winlink.cpp index 08be14ff..c6f7b135 100644 --- a/zsnes/src/win/winlink.cpp +++ b/zsnes/src/win/winlink.cpp @@ -526,14 +526,16 @@ aquireagain:; extern "C" void SaveSramData(void); extern "C" void GUISaveVars(void); +extern "C" void createnewcfg(void); void ExitFunction() { if (GUIOn2 == 0) { asm_call(SaveSramData); - asm_call(GUISaveVars); } + asm_call(GUISaveVars); + asm_call(createnewcfg); // We need to clean up the debug window if it's running diff --git a/zsnes/src/zloader.c b/zsnes/src/zloader.c index ea6c35ce..afd133e8 100644 --- a/zsnes/src/zloader.c +++ b/zsnes/src/zloader.c @@ -35,10 +35,12 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. #endif #endif +/* #ifndef __MSDOS__ extern unsigned char NetChatFirst, NetServer, NetNewNick, NetFilename[512], CmdLineTCPIPAddress, NetQuitAfter, UDPConfig, CmdLineNetPlay; #endif +*/ #ifdef __WIN32__ void ImportDirectX(); @@ -184,6 +186,7 @@ static void display_help() #ifndef __LINUX__ put_line(" Microsoft-style options (/option) are also accepted"); #endif +/* #ifndef __MSDOS__ put_line(" --Netplay Parameters--"); put_line(" Commandline: /ABCDE "); @@ -201,6 +204,7 @@ static void display_help() put_line(" eg: zsnes /UCCN2 nickname /home/zuser/snesroms 202.36.124.28"); #endif #endif +*/ exit(1); }