Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge 7oxicshadow's Linux fixes #6

Open
wants to merge 6 commits into
base: retropie
Choose a base branch
from

Conversation

jonsimantov
Copy link

7oxicshadow fixed the reicast Linux build to exit cleanly so it saves settings on exit, rather than crashing. I've built and tested this on my RPi3 and it works like a charm. This PR merges in those fixes to the RetroPie branch of reicast.

Here's a thread where the patch has been discussed, and (after I posted a binary) others tried it and reported success: https://retropie.org.uk/forum/topic/364/every-time-i-play-dreamcast-displays-the-setting-screen-time-date/64

7oxicshadow and others added 6 commits April 22, 2016 23:11
*Add the ability to stop the render thread
*Add the ability to stop the ngen thread
*Add the ability to detect the window close event
*Add gl_context_destroy function
*Close any open controllers
*Allows the nvmem to save
pi2 should now exit cleanly
pi2 should now save settings
general formatting clean-up

Note: Raspberry pi requires keyboard.cfg in /mappings
      to bind esc key
This is required for Launchers that make extensive use of the "-config" command
line option. Without it the RTC always resets to default because it parses a
virtual config instead of the emu.cfg file.

RetroPie is one of the main usage cases for this mode. If any RetroPie devs try these changes, be sure to open the Makefile and enable NO_VIRTUAL_CONFIG at
the top of the file.

I have rearanged the cfgopen() and parsecommandline() functions to accomodate this.

Add minor fixes for tab/space corrections.
Add minor fix for missing guards around closing evdev controllers.
@Darknior
Copy link

WOAW great work, thanks a lot

@@ -331,7 +333,7 @@
} else if (ie.code == controller->mapping->Btn_Start) {
SET_FLAG(kcode[port], DC_BTN_START, ie.value);
} else if (ie.code == controller->mapping->Btn_Escape) {
die("death by escape key");
start_shutdown();
Copy link
Member

Choose a reason for hiding this comment

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

wrong indent.

ngen_terminate();
}

#endif
Copy link
Member

Choose a reason for hiding this comment

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

wrong ident.

@joolswills
Copy link
Member

there are various whitespace/indent issues that should be fixed.

@joolswills
Copy link
Member

the PR also contains merge commits - it needs rebasing.

@hex007
Copy link

hex007 commented Jan 19, 2018

Do the commits need to be squashed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants