forked from skmp/reicast-emulator
-
Notifications
You must be signed in to change notification settings - Fork 6
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
jonsimantov
wants to merge
6
commits into
RetroPie:retropie
Choose a base branch
from
jonsimantov:retropie
base: retropie
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
99b4594
Allow Linux build to close cleanly
7oxicshadow 1933540
Fixes for raspberry pi
7oxicshadow aad2955
add missing return value for appveyor
7oxicshadow faa1edc
Merge branch 'master' into linux_clean_exit
7oxicshadow 2d27c22
Adds support for NO_VIRTUAL_CFG define.
7oxicshadow 4dde2c2
Merge remote-tracking branch 'toxic/linux_clean_exit' into retropie
jonsimantov File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -223,6 +223,7 @@ void os_DoEvents() | |
{ | ||
#if defined(SUPPORT_X11) | ||
input_x11_handle(); | ||
event_x11_handle(); | ||
#endif | ||
} | ||
|
||
|
@@ -427,9 +428,34 @@ std::vector<string> find_system_data_dirs() | |
return dirs; | ||
} | ||
|
||
#if HOST_OS==OS_LINUX | ||
|
||
#if defined(SUPPORT_X11) | ||
/* Required Prototypes */ | ||
void x11_gl_context_destroy(); | ||
void x11_window_destroy(); | ||
#endif | ||
|
||
void dc_term(); | ||
void rend_terminate(); | ||
void ngen_terminate(); | ||
|
||
void start_shutdown(void) | ||
{ | ||
printf("start_shutdown called\n"); | ||
rend_terminate(); | ||
ngen_terminate(); | ||
} | ||
|
||
#endif | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. wrong ident. |
||
|
||
int main(int argc, wchar* argv[]) | ||
{ | ||
|
||
#ifdef NO_VIRTUAL_CFG | ||
printf("Virtual CFG support is disabled in this build! \n"); | ||
#endif | ||
|
||
#ifdef TARGET_PANDORA | ||
signal(SIGSEGV, clean_exit); | ||
signal(SIGKILL, clean_exit); | ||
|
@@ -476,11 +502,38 @@ int main(int argc, wchar* argv[]) | |
emscripten_set_main_loop(&dc_run, 100, false); | ||
#endif | ||
|
||
|
||
#ifdef TARGET_PANDORA | ||
clean_exit(0); | ||
#endif | ||
|
||
#if HOST_OS==OS_LINUX | ||
|
||
printf("main loop ended\n"); | ||
|
||
dc_term(); | ||
|
||
#if defined(USE_EVDEV) | ||
printf("closing any open controllers\n"); | ||
|
||
for (int port = 0; port < 4 ; port++) | ||
{ | ||
if(evdev_controllers[port].fd >= 0) | ||
{ | ||
close(evdev_controllers[port].fd); | ||
} | ||
} | ||
#endif | ||
|
||
#if defined(SUPPORT_X11) | ||
/*Close the GL context */ | ||
x11_gl_context_destroy(); | ||
/* Destroy the window */ | ||
x11_window_destroy(); | ||
#endif | ||
|
||
#endif | ||
|
||
return 0; | ||
} | ||
#endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wrong indent.