Code Monkey home page Code Monkey logo

rg35xx-updater's Introduction

RG35xx Garlic Updater

This small script allows you to automatically fetch the newest GarlicOS version.GarlicOS is made by Black-Seraph, please support the project if you can at their Patreon page.

Usage

  • install dependencies specified in requirements.txt

  • run src/updater.py -h and get familiar with the options

  • the script will by default just download the latest garlic, then it will apply the changes. Please backup your sd card before trying the tool.

  • if you provide any override options it willoverride the configuration/folders/files in either boot or retroarch partition

Todo

  • more flexible replacement options

  • allow replacing skins (this might be a bit iffy if garlic requires skin updates)

  • docker container / windows tool

  • configurable output folder

  • add date to out/garlic folder

  • cleanup output folder

CLI params

  • -bp: specify the boot partition, if not set the tool will attempt to detect it and ask you if it the partition is correct. Press enter if yes else specify the Label (no : needed)

  • -rp: specify the retroarch partition (see above for more info)

  • -co: retroarch config override. Expects you to copy paste the settings you want to automatically override in the same format as the normal config. The following example enables rewind and maps the button for you to menu + b:

    retroarch.override.conf
    input_rewind_btn="1"
    rewind_enable = "true"
  • -so: skin config override. Expects a json file that only contains the keys and values you want to override. Example for moving the text to the right half of the screen:

    skin.overrides.json
    {
      "text-alignment": "left",
      "text-margin": 352
    }
  • -si: override the skins system folder with another one. This folde must contain the system pngs with the expected names.

  • -bl: override the boot logo with the specified boot logo

Examples

My setup:

rg35xx-updater
    └── overrides
        ├── system
        ├── boot_logo.bmp.gz
        ├── retroarch.override.conf
        └── skin.overrides.json

Content of the conf overrides can be seen above.Then run the tool:

python3 src/updater.py -co ../overrides/retroarch.override.conf -so ../overrides/skin.overrides.json -si ../overrides/system -bl ../overrides/boot_logo.bmp.gz

This will upate garlic to the newest version, then enable rewind support if you press b and will aadd my new system images to the default skin. In addition it will alter the location of text in the skin to be on the right side.

rg35xx-updater's People

Contributors

fwidm avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.