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

Added generic save shutdown method for RetroPie #6

Open
wants to merge 114 commits into
base: master
Choose a base branch
from

Conversation

crcerror
Copy link

Hello,

here is a generic method for save shutdown in every situation.
If you want you can use the added ./multi_switch.sh as standalone switch.
Just call it with ./multi_switch.sh --nespi+ to get working buttons with bash script only.

If you want to use python code you can use switches --es-pid and --es-poweroff to detect and save shutdown RetroPie!

All you need to code is change code to your installer script.

Greetings

Works only for RetroPie!
Please copy ./multi_switch.sh
Added generic method
Working on RetroPie 4.3 and 4.4
By cyperghost
Working perfect now!
Cleaned code a bit
Used better logic
@crcerror
Copy link
Author

crcerror commented Apr 27, 2018

I changed the code logic a bit to use integer values
So boolean in if/else branch is working and I can avoid .strip() junction

1. If you press restart if emulator is currently running, then you will be kicked back to ES main menu
2. If you press restart in ES main screen, ES will be restartet (no reboot!)
3. If you press power-off then Raspberry will shutdown

All metadata is always saved
Best -> cyperghost
@UncleRus
Copy link

UncleRus commented Jul 3, 2018

Repo owners simply ignores issues and PRs.
I think that we need a fork.

@crcerror
Copy link
Author

crcerror commented Jul 3, 2018

@UncleRus Not an official but works....
Improved with more natural behaviour

  1. If an emulator is running inside ES and you press reset, you will be kicked back to ES
  2. If you are in ES main screen and press reset, then ES will be restarted (NO REBOOT! - that makes simply no sense)
  3. If you press power off .... well ... what do you expect?

All metadata is 100% be saved, smooth, fast, smart :)

@ddaversa
Copy link

Nice mods. If I may suggest, it would be cool if we could have the reset button open up the Retroarch menu when in-game, similar behavior to the Classic Series.

KlfJoat and others added 12 commits November 13, 2018 18:10
Disabeling UART now, this will prevent some issues
with CPU throtteling and makes use of advanced setup!
Ignore if the directory already exists for install over RetroFlag version
Updated with latest multi_switch version
Introduced wget -N switch to overwrite old installed files - preventing failed installs
Added messages for installing files 
now with progress bar
Write status of install to stdout
Added messages for installing files 
now with progress bar
Write status of install to stdout
Removed typo
@cgherman
Copy link

For those still looking here, fork was created at https://github.com/crcerror/retroflag-picase/

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

Successfully merging this pull request may close these issues.

6 participants