8000 feat(): Add Writing system for Batocera by asturur · Pull Request #213 · ZaparooProject/zaparoo-core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat(): Add Writing system for Batocera #213

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

Merged
merged 7 commits into from
Apr 26, 2025
Merged

Conversation

asturur
Copy link
Collaborator
@asturur asturur commented Apr 24, 2025

This PR does a bunch of things:
It adds 2 new http rest endpoint ( to be discussed ):

  • GET /select-item/*
  • GET /selected-item

Those endpoint are designed in get to make interoperability with curl easy.

They are supposed to work on SD card distribution saving a string into a state variable without using they file system.
To be honest the same could have been done doing something like

echo ${1} >> ./SELECTED.TXT

and using cat for the opposite

I'm open to both approaches if we know we are not hammering the sd card.
This command runs every time you move in the batocera UI from a game to another.

This PR also wrap the -write API with the disable run script wrapper.
It was happening to me i wasn't able to write on an already written tag otherwise.
(@wizzomafizzo is this possible? a batocera issue? a my issue? an old bug?)

Then this pr adds 2 scripts for batocera to work:

zaparoo_write_game.sh goes into /userdata/system
while
zaparoo_game_select.sh goes into /userdata/system/configs/emulationstation/scripts/game-selected

Finally there is the last file
multimedia_keys.conf this one goes into /userdata/system/configs

I think that probably the best thing to do here would be create a folder structure that reflect those paths so that we can use a zip to deploy them into batocera easily.

Each game selection the zaparoo_game_select script will write in a state variable the current rom path, pressing META + W will trigger writing, with messaging on the screen to place a card on the reader.

Overall i m pretty much happy with the result, but we need to discuss the implementation details.

@asturur
Copy link
Collaborator Author
asturur commented Apr 24, 2025

TO DO: Investigate JOYSTICK BUTTONS writing.

@asturur
Copy link
Collaborator Author
asturur commented Apr 25, 2025

@wizzomafizzo i changed the build process so that it creates a folder that is ready to be copied in userdata/system

@asturur
Copy link
Collaborator Author
asturur commented Apr 25, 2025

this is ready to go imho

@wizzomafizzo wizzomafizzo merged commit d777a9b into main Apr 26, 2025
@wizzomafizzo wizzomafizzo deleted the batocera-game-ready branch April 26, 2025 06:45
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.

2 participants
0