Skip to content
This repository was archived by the owner on Feb 19, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/sdl-dingux/drv.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Driver Init module
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This CRLF is unintended, pls ignore it.

#include "burner.h"
#include "burner.h"
#include "snd.h"
#include "sdl_progress.h"

Expand Down Expand Up @@ -58,7 +58,9 @@ static int DrvLoadRom(unsigned char* Dest, int* pnWrote, int i)

int DrvInit(int nDrvNum, bool bRestore)
{
DrvExit(); // Make sure exitted
if (bDrvOkay) {
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the actual change that fixes the issue.

DrvExit(); // Make sure exitted
}
SndInit(); //AudSoundInit(); // Init Sound (not critical if it fails)

/*nBurnSoundRate = 0; // Assume no sound
Expand All @@ -77,7 +79,7 @@ int DrvInit(int nDrvNum, bool bRestore)
ConfigGameLoad();
// InputMake(true);

// GameInpDefault();
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This CRLF is unintended, pls ignore it.

// GameInpDefault();

if (DoLibInit()) { // Init the Burn library's driver
char szTemp[512];
Expand Down