Skip to content
This repository was archived by the owner on Feb 19, 2025. It is now read-only.

Update drv.cpp #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update drv.cpp #4

wants to merge 1 commit into from

Conversation

poglad
Copy link

@poglad poglad commented May 23, 2020

Prevent corruption of .cfg file when a rom is loaded via the command line. (It always saved the default config over the top of the .cfg file before loading the .cfg file.)

(Apologies, I may have changed the line-endings on a couple of other lines, sorry guys. CRLF whatever.)

Prevent corruption of .cfg file when a rom is loaded via the command line. (It always saved the default config over the top of the .cfg file before loading the .cfg file.)
@@ -1,5 +1,5 @@
// Driver Init module
Copy link
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.

@@ -77,7 +79,7 @@ int DrvInit(int nDrvNum, bool bRestore)
ConfigGameLoad();
// InputMake(true);

// GameInpDefault();
Copy link
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.

@@ -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
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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant