├── DB-Install.sh
├── Devils-Box.sh
├── README.md
├── files
├── IMP
│ └── README.md
├── box
├── db-files
│ ├── HELP-DB.txt
│ ├── INFO.txt
│ └── host-backup.txt
├── images
│ └── Devils-Box.png
├── ports
│ ├── GTA3.sh
│ └── re3.ini
├── tamoplus
│ └── README.md
└── videos
│ ├── art-packs.mp4
│ ├── community-toolbox.mp4
│ ├── console-packs.mp4
│ ├── credits.mp4
│ ├── devils-toolbox.mp4
│ ├── droids.mp4
│ ├── hack-packs.mp4
│ ├── intro.mp4
│ └── pickchoose.mp4
├── helpers
├── attract-mode
│ └── Attract-Helper.sh
├── emulationstation
│ ├── Collections.sh
│ ├── ES-Helper.sh
│ └── Icon-Helper.sh
└── pegasusfe
│ ├── pegasus-converter
│ ├── README.md
│ ├── __es_resources
│ │ ├── arrow.svg
│ │ ├── busy_0.svg
│ │ ├── busy_1.svg
│ │ ├── busy_2.svg
│ │ ├── busy_3.svg
│ │ ├── button.png
│ │ ├── button_filled.png
│ │ ├── cartridge.svg
│ │ ├── checkbox_checked.svg
│ │ ├── checkbox_unchecked.svg
│ │ ├── fav_add.svg
│ │ ├── fav_remove.svg
│ │ ├── folder.svg
│ │ ├── frame.png
│ │ ├── help
│ │ │ ├── analog_down.svg
│ │ │ ├── analog_left.svg
│ │ │ ├── analog_right.svg
│ │ │ ├── analog_stick.svg
│ │ │ ├── analog_thumb.svg
│ │ │ ├── analog_up.svg
│ │ │ ├── button_1.svg
│ │ │ ├── button_2.svg
│ │ │ ├── button_3.svg
│ │ │ ├── button_4.svg
│ │ │ ├── button_a.svg
│ │ │ ├── button_b.svg
│ │ │ ├── button_circle.svg
│ │ │ ├── button_cross.svg
│ │ │ ├── button_hotkey.svg
│ │ │ ├── button_l.svg
│ │ │ ├── button_lr.svg
│ │ │ ├── button_lt.svg
│ │ │ ├── button_r.svg
│ │ │ ├── button_rt.svg
│ │ │ ├── button_select.svg
│ │ │ ├── button_square.svg
│ │ │ ├── button_start.svg
│ │ │ ├── button_triangle.svg
│ │ │ ├── button_x.svg
│ │ │ ├── button_y.svg
│ │ │ ├── buttons_east.svg
│ │ │ ├── buttons_north.svg
│ │ │ ├── buttons_south.svg
│ │ │ ├── buttons_west.svg
│ │ │ ├── dpad_all.svg
│ │ │ ├── dpad_down.svg
│ │ │ ├── dpad_left.svg
│ │ │ ├── dpad_leftright.svg
│ │ │ ├── dpad_right.svg
│ │ │ ├── dpad_up.svg
│ │ │ └── dpad_updown.svg
│ │ ├── mamebioses.xml
│ │ ├── mamedevices.xml
│ │ ├── mamenames.xml
│ │ ├── off.svg
│ │ ├── on.svg
│ │ ├── opensans_hebrew_condensed_light.ttf
│ │ ├── opensans_hebrew_condensed_regular.ttf
│ │ ├── option_arrow.svg
│ │ ├── scroll_gradient.png
│ │ ├── slider_knob.svg
│ │ ├── splash.svg
│ │ ├── star_filled.svg
│ │ ├── star_unfilled.svg
│ │ ├── textinput_ninepatch.png
│ │ ├── textinput_ninepatch_active.png
│ │ └── window_icon_256.png
│ ├── __pycache__
│ │ ├── errors.cpython-37.pyc
│ │ ├── property_types.cpython-37.pyc
│ │ ├── qml.cpython-37.pyc
│ │ ├── qml_render.cpython-37.pyc
│ │ └── static.cpython-37.pyc
│ ├── convert.py
│ ├── errors.py
│ ├── property_types.py
│ ├── qml.py
│ ├── qml_render.py
│ └── static.py
│ └── previews
│ ├── neoretro-preview.mp4
│ ├── place-holder
│ └── switchOS-preview.mp4
└── scripts
├── BIOS.sh
├── FE-Switcheroo.sh
├── GTA-VC-Setup.sh
├── GTA3-Setup.sh
├── Game-Fixes.sh
├── Hacks.sh
├── MSU1-Setup.sh
├── Multi-Devils-Box.sh
├── PI-0
├── PI-0-Artwork.sh
├── PI-0-Devils-Box.sh
├── PI-0-Homebrews.sh
├── PI-0-Packs.sh
└── PI-0-PickChoose.sh
├── PI-3
├── PI-3-Artwork.sh
├── PI-3-Devils-Box.sh
├── PI-3-Homebrews.sh
├── PI-3-Lightgun-Pack.sh
├── PI-3-Lightgun-Pick.sh
├── PI-3-Packs.sh
├── PI-3-PickChoose.sh
└── PI-3-Translations.sh
├── PI-4
├── PI-4-Artwork.sh
├── PI-4-Devils-Box.sh
├── PI-4-Game-Packs.sh
├── PI-4-Homebrews.sh
├── PI-4-Lightgun-Packs.sh
├── PI-4-Lightgun-Pick.sh
├── PI-4-Packs.sh
├── PI-4-PickChoose.sh
├── PI-4-Translations.sh
└── PI-4-pidei.sh
├── PickChoose
└── Pick-N64.sh
├── Remove.sh
├── Retro-Scrapey.sh
├── Server-Check.sh
├── Special-Packs.sh
├── System-Tools.sh
└── Tester-Menu.sh
/DB-Install.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | export NCURSES_NO_UTF8_ACS=1
4 | DB_SETTINGS="$HOME/.devilsbox/db_settings.ini"
5 | ###----------------------------###
6 | ### INSTALLER MENU FUNCTIONS ###
7 | ###----------------------------###
8 | function main_menu() {
9 | local choice
10 |
11 | while true; do
12 | choice=$(dialog --backtitle "$BACKTITLE" --title " DEVILS BOX 3.15---UPDATED 9/15/22 " \
13 | --ok-label Select --cancel-label Exit-Installer \
14 | --menu "DEVILS BOX RETROPIE INSTALLER" 25 50 30 \
15 | 1 "Install/Update Devils Box " \
16 | 2 "Devils Box Info " \
17 | - "__________ __ " \
18 | - "\______ \ _____/ |________ ____ " \
19 | - " | _// __ \ __\_ __ \/ _ \ " \
20 | - " | | \ ___/| | | | \( <_> ) " \
21 | - " |____|_ /\___ >__| |__| \____/ " \
22 | - " \/ \/ " \
23 | - "________ .__.__ " \
24 | - "\______ \ _______ _|__| | ______" \
25 | - " | | \_/ __ \ \/ / | | / ___/" \
26 | - " | ' \ ___/\ /| | |__\___ \ " \
27 | - "/_______ /\___ >\_/ |__|____/____ >" \
28 | - " \/ \/ \/ " \
29 | 2>&1 > /dev/tty)
30 |
31 | case "$choice" in
32 | 1) install_db ;;
33 | 2) info ;;
34 | -) no ;;
35 | *) break ;;
36 | esac
37 | done
38 | }
39 |
40 | #----------------------------#
41 | # INSTALL/UPDATE DEVILS BOX #
42 | #----------------------------#
43 | function install_db() {
44 | if [ -d "$HOME/RetroPie/retropiemenu/Devils-Box/" ]; then sudo rm -R $HOME/RetroPie/retropiemenu/Devils-Box/; fi
45 | if [ -f "$HOME/RetroPie/retropiemenu/Devils-Box.sh" ]; then sudo rm $HOME/RetroPie/retropiemenu/Devils-Box.sh; fi
46 | if [ -d "$HOME/Devils-Box/" ]; then sudo rm -R $HOME/Devils-Box/; fi
47 | cd $HOME
48 | git clone https://github.com/Retro-Devils/Devils-Box
49 | cp $HOME/Devils-Box/Devils-Box.sh -f $HOME/RetroPie/retropiemenu/
50 | cp $HOME/Devils-Box/files/images/Devils-Box.png -f $HOME/RetroPie/retropiemenu/icons/
51 | sudo cp $HOME/Devils-Box/files/box -f /usr/local/bin/
52 | sudo cp $HOME/Devils-Box/Devils-Box.sh -f /usr/local/bin/Devils-Box
53 | sudo wget -O "/usr/local/bin/confirm" https://raw.githubusercontent.com/Retro-Devils/Devils-Pi/main/things
54 | sudo wget https://github.com/Retro-Devils/FE-Switcheroo/blob/main/switcheroo -f /usr/local/bin/switcheroo
55 | sudo chmod 755 /usr/local/bin/confirm
56 | sudo chmod 755 /usr/local/bin/box
57 | chmod 755 $HOME/RetroPie/retropiemenu/Devils-Box.sh
58 | sudo chmod 755 /usr/local/bin/Devils-Box
59 | sudo chmod 755 /usr/local/bin/switcheroo
60 | chmod -R 755 $HOME/Devils-Box
61 | if [ ! -d "$HOME/.devilsbox" ]; then mkdir "$HOME/.devilsbox"; fi
62 | if [ ! -f "$DB_SETTINGS" ]; then
63 | cat <<\EOF_db_settings.ini > "$DB_SETTINGS"
64 | #DB SETTINGS
65 | auto_update_flag=0
66 | intro_splash_flag=1
67 | EOF_db_settings.ini
68 | sudo chmod +x $DB_SETTINGS
69 | fi
70 | sleep 1
71 | if [ ! -s "$HOME/RetroPie/retropiemenu/gamelist.xml" ]; then sudo rm -f $HOME/RetroPie/retropiemenu/gamelist.xml; fi
72 | if [ ! -f "$HOME/RetroPie/retropiemenu/gamelist.xml" ]; then cp /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml $HOME/RetroPie/retropiemenu/gamelist.xml; fi
73 | CONTENT1="\t\n\t\t./Devils-Box.sh\n\t\tDevils-Box\n\t\tThe Retro Devils Tool Box - A fully fuctional script to get even the newbies started up with ease, able to download roms and artwork to their proper places, Mugen and Sega Model 3 emulators, themes and music tools, plus much, much more.\n\t\t./icons/Devils-Box.png\n\t\t20220105T173842\n\t\tThe Retro Devils\n\t\tThe Retro Devils\n\t\tDevils-Box Script\n\t"
74 | C1=$(echo $CONTENT1 | sed 's/\//\\\//g')
75 | if grep -q Devils-Box.sh "$HOME/RetroPie/retropiemenu/gamelist.xml"; then echo "gamelist.xml entry confirmed"
76 | else
77 | sed "/<\/gameList>/ s/.*/${C1}\n&/" $HOME/RetroPie/retropiemenu/gamelist.xml > $HOME/temp
78 | cat $HOME/temp > $HOME/RetroPie/retropiemenu/gamelist.xml
79 | rm -f $HOME/temp
80 | fi
81 | echo "FOR MORE INFO,HELP,SUGGESTIONS ETC"
82 | echo "VISIT --RETRO DEVILS COMMUNITY-- ON FACEBOOK"
83 | echo "OR OUR WEBSITE WWW.RETRO-DEVILS.COM"
84 | sleep 5
85 | echo "Emulationstation Will Now Restart ..."
86 | sleep 1
87 | killall emulationstation
88 | sudo openvt -c 1 -s -f emulationstation 2>&1
89 | }
90 |
91 | #--------#
92 | # INFO #
93 | #--------#
94 | function info() {
95 | dialog --sleep 1 --title "DEVILS BOX INFO" --msgbox "
96 | WHATS THIS? A DOWNLOADER AND TOOL BOX
97 | CREATED BY? THE RETRO DEVILS AND OTHERS
98 | CREATED WHEN? DECEMBER 2021
99 |
100 | __FREQUENTLY ASKED QUESTIONS__
101 |
102 | WHY EVEN MAKE THIS?
103 | - We want everyone to enjoy alL the games. If your getting em anyway, let us make it easy.
104 | WHAT DOES THIS WORK ON?
105 | - This is built for things with RetroPie installed. Mainly PI 4.
106 | - This will work on any system(s) with Retropie Installed.
107 | --The following is needed for Devils Box to work:
108 | -The location: ~/RetroPie/retropiemenu/ & ~/RetroPie/roms/
109 | -The Commands: wget and curl
110 | - The downloader will work any Retropie Device. That doesnt mean you can play all the consoles listed.
111 | **example pi zero wont play N64.
112 | - Most tools will only work on pi 3 or 4.
113 | WHY USE THIS ARTWORK INSTEAD OF SCRAPER?
114 | - This art is set for these roms. So they will look nice. Scraper works and props to it.
115 |
116 | __CREDITS__
117 | --EMUS AND TOOLS CREDITS:
118 | -All emus & tools from commmunity have credits in Devils Box menus.
119 | example. RetroPie Extras says *Zero Jay* at the far right of that line.
120 | --MISC CREDITS:
121 | -ALL THE RETRO DEVILS--------YOU KNOW WHAT YOU DID
122 | -COMMUNITY-------------------INPUT IN GENERAL
123 | -RETROPIE--------------------FOR EVERYTHING THEY DO
124 | -CRASH-----------------------SCRIPTING KNOWLEDGE & ADVICE
125 | -BIGED-----------------------SCRIPTING KNOWLEDGE & ADVICE
126 | -MONK OF THE FUNK------------SCRIPTING KNOWLEDGE & ADVICE
127 | -SOLARBABY-------------------SCRIPTING KNOWLEDGE & ADVICE
128 |
129 |
130 | MORE INFO SEE
131 | WWW.RETRO-DEVILS.COM OR RETRO DEVILS COMMUNITY ON FACEBOOK" 0 0
132 | }
133 |
134 | # Main
135 | main_menu
136 |
--------------------------------------------------------------------------------
/Devils-Box.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | export NCURSES_NO_UTF8_ACS=1
3 |
4 |
5 | rpi=$(cat /proc/device-tree/model |awk '{print $3}')
6 |
7 | if [ "$rpi" = "Zero" ]; then bash $HOME/Devils-Box/scripts/PI-0/PI-0-Devils-Box.sh
8 | elif [ "$rpi" = "Model B" ]; then bash $HOME/Devils-Box/scripts/PI-0/PI-0-Devils-Box.sh
9 | elif [ "$rpi" = "2" ]; then bash $HOME/Devils-Box/scripts/PI-3/PI3-Devils-Box.sh
10 | elif [ "$rpi" = "3" ]; then bash $HOME/Devils-Box/scripts/PI-3/PI-3-Devils-Box.sh
11 | elif [ "$rpi" = "4" ]; then bash $HOME/Devils-Box/scripts/PI-4/PI-4-Devils-Box.sh
12 | elif [ "$rpi" = "400" ]; then bash $HOME/Devils-Box/scripts/PI-4/PI-4-Devils-Box.sh
13 | elif [ "$rpi" = "5" ]; then bash $HOME/Devils-Box/scripts/PI-4/PI-4-Devils-Box.sh
14 | else
15 | bash $HOME/Devils-Box/scripts/Multi-Devils-Box.sh
16 | fi
17 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | ## LAST UPDATE ------- 11/27/23
2 |
3 | ## To Install/Update
4 |
5 | curl -sSL bit.ly/Install-Devils-Box | bash
6 |
7 | ## Some stuff someone said at some point, somewhere .
8 |
9 | "I don’t regret the things I’ve done, I regret the things I didn’t do when I had the chance."
10 |
11 | "In order to succeed, your desire for success should be greater than your fear of failure."
12 |
13 | "I feel like a slice of butter, on a big oh pile of flapjacks. "
14 |
15 | “Do you want to know who you are? Don't ask. Act! Action will delineate and define you.”
16 |
17 | "Madness? No......this is SPARTA!!!!"
18 |
19 | “Cous cous: the food's so nice they named it twice.”
20 |
21 |
22 | ## Whats This?
23 |
24 | - A Toolbox and more built for RetroPie.
25 |
26 | - Functions
27 |
28 | ~ Grabs packs of 'things & stuff' from web to Pi.
29 |
30 | ~ Grabs indivual 'thing & stuff' from web to Pi.
31 |
32 | ~ Community made/assembled emu installers.
33 |
34 | ~ Custom made/assembled emu installers for Pi 4.
35 |
36 | ~ Easy access to RetroPie Tools.
37 |
38 | ~ Community Tools like Pi Marquee, TAMO+, I.M.P, etc.
39 |
40 | ~ Custom Made/Modified Themes
41 |
42 | ~ Easy access to Hurstys Themes
43 |
44 | ~ Community Made/Modified Themes
45 |
46 | ~ Remove Game Packs/Collections
47 |
48 | ## WHAT PI DOES THIS WORK ON ?
49 |
50 | Devils Box has been tested and works on PI ZERO, PI 3, PI4 and Linux PC(with RetroPie)
51 |
52 | * DEVILS BOX CHECKS THE DEVICE YOU ARE ON & WILL LOAD DIFFERENT VERSIONS BASED ON WHAT YOU ARE USING IT ON.
53 |
54 | VERSIONS INFO:
55 |
56 | - PI 0/1 ------ RASPBERRY PI ZERO/W & RASPBERRY PI 1 ----V 1.1
57 |
58 | - PI 2/3 ------ RASPBERRY PI 2 & RASPBERRY PI 3 ---------V 1.0
59 |
60 | - PI 4 -------- RASPBERRY PI 4B -------------------------V 4.1
61 |
62 | - MULTI ------- OTHER DEVICES WITH RETROPIE INSTALLED ---V 1.0
63 |
64 | _______________________________________________________________________
65 | *AVAILABLE ON ALL PIS VERSIONS (with RetroPie installed)*
66 | _______________________________________________________________________
67 | ~ Getting packs and indivaul "things & stuff" from web.
68 |
69 | ~ Expand Memory
70 |
71 | ~ Themes and stuff like that
72 |
73 | _______________________________________________________________________
74 | *AVAILABLE ON PI 4 VERSION ONLY (with RetroPie installed)*
75 | _______________________________________________________________________
76 | ~ Most Tools
77 |
78 | ~ Some Emus. Mugen/WINE and Model 3 for examples.
79 |
80 | _______________________________________________________________________
81 |
82 | *AVAILABLE ON MULTI VERSION*
83 | _______________________________________________________________________
84 |
85 | ~ Downloaders
86 |
87 | ~ Reboot and very simple tools.
88 |
89 | *We have tested on 3 seperate pcs with linux running on them. One pc didnt have Retropie at all. *
90 |
91 | ## DEVILS RETROPIE IMAGE ONLY?
92 |
93 | - NOPE. Built to work on as many as possible. Tested on the following
94 |
95 | ~ Supreme Ultra------------------Some Tools cause slight issues, other than that worked fine.
96 |
97 | ~ Virtual Man---------------------Some tools cause slight issues, other than that worked fine.
98 |
99 | ~ Diablos Arcade------------------Works Great.
100 |
101 | ~ Pleasure Paradise---------------Some tools cause slight issues, other than that woked fine.
102 |
103 | ~ Images with irregular retropie roms paths. UNLIKELY TO WORK WITHOUT EDITS TO PATHS.
104 |
105 |
106 |
--------------------------------------------------------------------------------
/files/IMP/README.md:
--------------------------------------------------------------------------------
1 | # IMP for RetroPie
2 | # Intergrated Music Player
3 |
4 | ## Based on every article you ever read about mpg123 scripts in RetroPie. ##
5 | Integrated Music Player [IMP] allows you to Select and Play [MP3/PLS/M3U] Files like a ROM.
6 | Automates Playlists, Recalls Last Track/Position, Next/Previous Track, Fade, INFINITE and LITE Mode.
7 | (No OGG Support) [Recall Last Track/Position] NOT Retained at STARTUP in LITE Mode.
8 |
9 | ## [IMP] RETROPIE MENU
10 |
11 | Music Player [IMP]
12 |
13 | Current Playlist
14 | Previous Track
15 | Play
16 | Pause
17 | Stop
18 | Next Track
19 | Shuffle Off/On
20 | Start All Music [*BGM Settings are Respected*] {Icon Changes to Reflect BGM Settings}
21 | Start BGM Music
22 | Volume % [mpg123 Player Volume]
23 |
24 | Music [Place MP3/PLS/M3U Files here to have Select and Play Abilities in ES]
25 | ~/RetroPie/roms/music [symbolic link to ~/RetroPie/retropiemenu/imp/music]
26 |
27 | ## Settings ##
28 | Current Settings
29 | Lite Mode [Off/On]
30 | Infinite Mode [Off/On]
31 |
32 | BGM Settings [*Will Override Playlist at Startup*]
33 | BGM A-Side [Off/On] ~/RetroPie/roms/music/bgm/A-SIDE/
34 | BGM B-Side [Off/On] ~/RetroPie/roms/music/bgm/B-SIDE/
35 |
36 | Game Settings
37 | Music Over Games [Off/On]
38 | Volume Fade at Games [Off/On]
39 | Delay at Game End [seconds]
40 |
41 | HTTP Server [Port:8080 You must STOP HTTP Server before you can START it on Another Directory]
42 | HTTP Server [Log]
43 | HTTP Server [On] Music Directory
44 | HTTP Server [On] ROMS Directory
45 | HTTP Server [Off]
46 |
47 | Startup Settings
48 | Music at Startup [Off/On]
49 | Delay at Startup [seconds]
50 | .
51 | .
52 | # MORE INFO SEE IMPS GITHUB ##
53 | https://github.com/RapidEdwin08/imp
54 | .
55 | .
56 |
--------------------------------------------------------------------------------
/files/box:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | rst="$(tput sgr0)"
3 | fgred="${rst}$(tput setaf 1)" # Red
4 | fggrn="${rst}$(tput setaf 2)" # Green
5 | fgylw="${rst}$(tput setaf 3)" # Yellow
6 | bld="$(tput bold)"
7 | bfgred="${bld}$(tput setaf 1)"
8 | bfggrn="${bld}$(tput setaf 2)"
9 | bfgylw="${bld}$(tput setaf 3)"
10 |
11 | echo ''${bfgylw}' ( (
12 | )\ ) ) )\ ) (
13 | (()/( ( ( /(( (()/( ( ) ( )\
14 | /(_))))\ )\())( ( ___ /(_)) ))\ /(( )\((_|
15 | ('${fgred}'_'${fgylw}')) /((_|'${fgred}'_'${fgylw}'))(('${bfgylw}')\ )\___('${fgred}'_'${fgylw}'))'${fgred}'_'${fgylw}' /((_|_))((_)_ )\'${fgred}'
16 | | _ \'${fgylw}'('${fgred}'_'${fgylw}'))'${fgred}'| |_ '${fgylw}'(('${fgred}'_'${fgylw}')(('${fgred}'_'${fgylw}') '${fgred}'| \'${fgylw}'('${fgred}'_'${fgylw}')) '${fgred}'_'${fgylw}')(('${fgred}'_|_)'${fgylw}' (('${fgred}'_'${fgylw}')'${fgred}'
17 | | / -_)| _| `_/ _ \ | |) / -_)\ V /| | (_-<
18 | |_|_\___| \__|_| \___/ |___/\___| \_/ |_|_/__/
19 | . .
20 | |\ |\
21 | _..;|;__;|; '${bfggrn}'THE RETRO DEVILS'${fgred}'
22 | ,` `;` \`;`-. '${bfggrn}'---DEVILS BOX---'${fgred}'
23 | 7;-.. : ) '${bfggrn}'____ ____________ _______ '${fgred}'
24 | .--._)| `;==,|,==` '${bfggrn}'\ \ / /\_____ \ \ _ \ '${fgred}'
25 | `\`@; \_ `<`'${bfgylw}'G'${fgred}'," '${bfgylw}'G'${fgred}'). '${bfggrn}' \ Y / _(__ < / /_\ \ '${fgred}'
26 | `\/-;,( ) .>. ) '${bfggrn}' \ / / \ \ \_/ \'${fgred}'
27 | < ,-;`-.__.;` '${bfggrn}' \___/ /______ / /\ \_____ /'${fgred}'
28 | `\_ `-,__,` '${bfggrn}' \/ \/ \/ '${fgred}'
29 | `-..,;,>
30 | `;;;;
31 | ` `
32 | '${rst}''
33 | sleep 5
34 |
--------------------------------------------------------------------------------
/files/db-files/HELP-DB.txt:
--------------------------------------------------------------------------------
1 | _____________________DEVILS BOX RETROPIE VARIANT_______________________
2 |
3 |
4 | ----------------------------------------------------------
5 | SYSTEMS DONT SHOW IN RETROPIE
6 | ----------------------------------------------------------
7 |
8 | -SOME SYSTEMS MIGHT NOT SHOW
9 | -YOU WILL HAVE TO MANUALLY EDIT YOUR ES_SYSTEM.CFG FILE
10 | LOCATED AT ~/.emulationstation
11 | -OR COPY THE ONE FROM /etc/emulationstation/es_systems.cfg
12 |
13 | -WITH SOME SYSTEMS YOU WILL HAVE TO INSTALL THE EMU AS WELL.
14 | - RETROPIE SETUP IS EASIEST WAY.
15 |
16 |
17 | ------------------------------------------------------------
18 | EXAMPLE CONSOLE DIDNT DOWNLOAD
19 | ------------------------------------------------------------
20 |
21 | -MORE THAN LIKELY A SCRIPT ERROR. REPORT TO US WE WILL DO OUR BEST TO FIX.
22 |
23 |
24 | -------------------------------------------------------------
25 | SOME SYSTEMS WONT LOAD AT ALL AND NO EMU TO INSTALL
26 | -------------------------------------------------------------
27 |
28 | -DEVILS BOX WILL DOWNLOAD ANY CONSOLE YOU SELECT. THAT DOESNT MEAN YOUR DEVICE WILL PLAY IT.
29 | -THIS IS MAINLY MADE FOR PI 4. SO N64 FOR EXAMPLE WONT PLAY WELL ON A PI 3.
30 | -DEVILS BOX CAN BE USED ON ANY LINUX RETROPIE SYSTEM. SOME CONSOLES FOR THAT REASON.
31 |
32 |
33 | FOR MORE HELP
34 |
35 | RETRO DEVILS COMMUNITY ON FACEBOOK & DISCORD
36 |
37 | RETRO DEVILS GITHUB
38 |
39 |
--------------------------------------------------------------------------------
/files/db-files/INFO.txt:
--------------------------------------------------------------------------------
1 | _____________________DEVILS BOX RETROPIE VARIANT __________________
2 |
3 | WHATS THIS? A DOWNLOADER AND TOOL BOX
4 | CREATED BY? THE RETRO DEVILS AND OTHERS
5 | CREATED WHEN? DECEMBER 2021
6 |
7 | __FAQ________________________________________FREQUENTLY ASKED QUESTIONS_
8 |
9 | SLOW DOWNLOADS WHATS UP ?
10 | - Free hosting site slower up and down speeds. FYI we dont plan on paying to host atm.
11 | SOME SYSTEMS DONT DO ANYTHING?
12 | - Please report to us, we will do our best to fix.
13 | HOW DO I ADD A TOOL OR DOWNLOAD?
14 | - The Devils Box is wrote for you too understand. Wanna add for everyone contact us.
15 | WHY EVEN MAKE THIS?
16 | - We want everyone to enjoy alL the games. If your getting em anyway, let us make it easy.
17 | WHAT DOES THIS WORK ON?
18 | - This is built for things with RetroPie installed. Mainly PI 4.
19 | - This will work on any system(s) with Retropie Installed.
20 | **The following is needed for Devils Box to work:
21 | *The location: ~/RetroPie/retropiemenu/
22 | *The location: ~/RetroPie/roms/
23 | *The Commands: wget and curl
24 | - The downloader will work any Retropie Device. That doesnt mean you can play all the consoles listed.
25 | **example pi zero wont play N64.
26 | - Most tools will only work on pi 3 or 4.
27 | - Android Variant (Slighly Different)
28 | ** Download .apk from "archive.org/download/bad-droid"
29 | * You will see "Devils-Box-V1.zip".
30 | * Download, unzip, transfer to android device and install.
31 | WHY USE THIS ARTWORK INSTEAD OF SCRAPER?
32 | - This art is set for these roms. So they will look nice. Scraper works and props to it.
33 |
--------------------------------------------------------------------------------
/files/db-files/host-backup.txt:
--------------------------------------------------------------------------------
1 | ##-------------------------##
2 | ## HOST SITES ##
3 | ##-------------------------##
4 |
5 | #--------ART HOSTS----------#
6 | ART_HOST="https://archive.org/download/devils-box-media-alt"
7 | ART_HOST2="https://github.com/Retro-Devils-Media"
8 | #ART_HOST3=""
9 | #ART_HOST4=""
10 |
11 | #-----------------DEVILS-GAME HOSTS---------------------#
12 | HOST1="https://archive.org/download/the-devils-box-alt"
13 | HOST2="https://archive.org/download/the-devils-box_202112"
14 | HOST3="https://archive.org/download/devils-bios"
15 | HOST4="https://archive.org/download/devils-wine"
16 | HOST5="https://archive.org/download/devils-dos"
17 |
18 | #---------------NON-DEVILS-HOSTS-----------------------#
19 | HOST6="https://archive.org/download/PSP_US_Arquivista"
20 | HOST7="https://archive.org/download/secretofmanausamsu1hackbydarkshockv1.0"
21 |
22 | #--------PICK & CHOOSE HOST-----#
23 | PC_HOST="https://archive.org/download/the-devils-box-alt"
24 |
25 |
26 |
27 | #------------------#
28 | # ARTWORK FUNCTION #
29 | #------------------#
30 | function download-art() {
31 | if [ ! -d "$HOME/RetroPie/roms/"${1}"/" ]; then dialog --sleep 1 --title ""${1}" FOLDER MISSING!" --msgbox "Please Install It's Emulator First" 6 40; else
32 | clear
33 | cd "$HOME/RetroPie/roms/"${1}"/"
34 | git init
35 | git remote add origin "${ART_HOST2}/${1}.git"
36 | git fetch
37 | git pull origin main
38 | rm -fr "$HOME"/RetroPie/roms/"${1}"/.git
39 | echo ${bld}$(tput setaf 1)"-----SCRAPING NEW MEDIA NOW------"
40 | sleep 5
41 | /opt/retropie/supplementary/scraper/scraper -img_format=png -image_dir="./boxart" -image_path="./boxart" -download_images=false -image_suffix="" -marquee_dir="./wheel" -marquee_path="./wheel" -download_marquees=false -marquee_suffix="" -video_dir="./snap" -video_path="./snap" -download_videos=false -video_suffix="" -refresh -console_src gdb,ss,ovgdb
42 | fi
43 | }
44 | #------------------#
45 | # CONSOLE FUNCTION #
46 | #------------------#
47 | function download-bios() {
48 | clear
49 | wget -m -r -np -nH -nd -R "index.html" "${HOST3}"/BIOS/ -P "$HOME"/RetroPie/BIOS/ -erobots=off
50 | rm -f "$HOME"/RetroPie/BIOS/index.html.tmp
51 | }
52 | function download-packs() {
53 | if [ ! -d "$HOME/RetroPie/roms/"${1}"/" ]; then dialog --sleep 1 --title ""${1}" FOLDER MISSING!" --msgbox "Please Install It's Emulator First" 6 40;
54 | else
55 | clear
56 | wget -m -r -np -nH -nd -R "index.html" "${HOST1}"/"${1}"/ -P "$HOME"/RetroPie/roms/"${1}" -erobots=off
57 | rm -f "$HOME"/RetroPie/roms/"${1}"/index.html.tmp
58 | echo ${bld}$(tput setaf 1)"-----SCRAPING NEW GAMES INFO NOW------"
59 | sleep 5
60 | cd "$HOME/RetroPie/roms/"${1}"/"
61 | /opt/retropie/supplementary/scraper/scraper -img_format=png -image_dir="./boxart" -image_path="./boxart" -download_images=false -image_suffix="" -marquee_dir="./wheel" -marquee_path="./wheel" -download_marquees=false -marquee_suffix="" -video_dir="./snap" -video_path="./snap" -download_videos=false -video_suffix="" -refresh -console_src gdb,ss,ovgdb
62 | fi
63 | }
64 | function download-packs-alt() {
65 | if [ ! -d "$HOME/RetroPie/roms/"${1}"/" ]; then dialog --sleep 1 --title ""${1}" FOLDER MISSING!" --msgbox "Please Install It's Emulator First" 6 40;
66 | else
67 | clear
68 | wget -m -r -np -nH -nd -R "index.html" "${HOST2}"/"${1}"/ -P "$HOME"/RetroPie/roms/"${1}" -erobots=off
69 | rm -f "$HOME"/RetroPie/roms/"${1}"/index.html.tmp
70 | echo ${bld}$(tput setaf 1)"-----SCRAPING NEW MEDIA NOW------"
71 | sleep 5
72 | /opt/retropie/supplementary/scraper/scraper -img_format=png -image_dir="./boxart" -image_path="./boxart" -download_images=false -image_suffix="" -marquee_dir="./wheel" -marquee_path="./wheel" -download_marquees=false -marquee_suffix="" -video_dir="./snap" -video_path="./snap" -download_videos=false -video_suffix="" -refresh -console_src gdb,ss,ovgdb
73 | fi
74 | }
75 | #-----------------#
76 | # HACKS FUNCTION #
77 | #-----------------#
78 | function download-hacks() {
79 | if [ ! -d "$HOME/RetroPie/roms/"${1}"/" ]; then dialog --sleep 1 --title ""${1}" FOLDER MISSING!" --msgbox "Please Apply Hacks Config" 6 40;
80 | else
81 | clear
82 | wget -m -r -np -nH -nd -R "index.html" "${HOST1}"/"${1}"/ -P "$HOME"/RetroPie/roms/"${1}" -erobots=off
83 | rm -f "$HOME"/RetroPie/roms/"${1}"/index.html.tmp
84 | cd "$HOME/RetroPie/roms/"${1}"/"
85 | /opt/retropie/supplementary/scraper/scraper -img_format=png -image_dir="./boxart" -image_path="./boxart" -download_images=false -image_suffix="" -marquee_dir="./wheel" -marquee_path="./wheel" -download_marquees=false -marquee_suffix="" -video_dir="./snap" -video_path="./snap" -download_videos=false -video_suffix="" -refresh -console_src gdb,ss,ovgdb
86 | fi
87 | }
88 | # GAME FUNCTION #
89 | #-----------------#
90 | function download-game() {
91 | for type in "$@"; do
92 | if [ "${type}" != "${1}" ]; then
93 | if [ ! -d "$HOME/RetroPie/roms/"${1}"/" ]; then dialog --sleep 1 --title ""${1}" FOLDER MISSING!" --msgbox "Please Install It's Emulator First" 6 40;
94 | else
95 | clear
96 | wget -m -r -np -nH -nd -R "index.html" ${PC_HOST}/"${1}"/"${type}" -P "$HOME"/RetroPie/roms/"${1}" -erobots=off
97 | rm -f "$HOME"/RetroPie/roms/"${1}"/index.html.tmp
98 | fi
99 | fi
100 | done
101 | }
102 |
103 | #-----------------#
104 | # WINE FUNCTION #
105 | #-----------------#
106 | function download-winegames() {
107 | if [ ! -d "$HOME/RetroPie/roms/wine/" ]; then dialog --sleep 1 --title ""${1}" FOLDER MISSING!" --msgbox "Please Install Wine First" 6 40;
108 | else
109 | clear
110 | wget -m -r -np -nH -nd -R "index.html" ${HOST4}/"${1}" -P "$HOME"/RetroPie/roms/wine -erobots=off
111 | unzip -o "$HOME"/RetroPie/roms/wine/"${1}" -d "$HOME"/RetroPie/roms/wine/
112 | chmod 755 "$HOME"/RetroPie/roms/wine/*.sh
113 | sudo rm -r "$HOME"/RetroPie/roms/wine/"${1}"
114 | fi
115 | }
116 | function download-pcgames() {
117 | if [ ! -d "$HOME/RetroPie/roms/pc/" ]; then dialog --sleep 1 --title ""${1}" FOLDER MISSING!" --msgbox "Please Install It's Emulator First" 6 40;
118 | else
119 | clear
120 | wget -m -r -np -nH -nd -R "index.html" ${HOST5}/"${1}" -P "$HOME"/RetroPie/roms/pc -erobots=off
121 | unzip -o "$HOME"/RetroPie/roms/pc/"${1}" -d "$HOME"/RetroPie/roms/pc/
122 | sudo rm -r "$HOME"/RetroPie/roms/pc/"${1}"
123 | fi
124 | }
125 | #----------------------#
126 | # PSP GAMES FUNCTIONS #
127 | #----------------------#
128 | function download-psp() {
129 | if [ ! -d "$HOME/RetroPie/roms/pc/" ]; then dialog --sleep 1 --title "PSP FOLDER MISSING!" --msgbox "Please Install It's Emulator First" 6 40;
130 | else
131 | clear
132 | wget -m -r -np -nH -nd -R "index.html" ${HOST6}/"${1}" -P "$HOME"/RetroPie/roms/psp -erobots=off
133 | fi
134 | }
135 | function psp-pack() {
136 | if [ ! -d "$HOME"/RetroPie/roms/psp/ ]; then dialog --sleep 1 --title "PSP FOLDER MISSING!" --msgbox "Please Install It's Emulator First" 6 40;
137 | else
138 | clear
139 | wget -m -r -np -nH -nd -R "index.html" "${HOST6}"/ -P "$HOME"/RetroPie/roms/psp -erobots=off
140 | rm -f "$HOME"/RetroPie/roms/psp/index.html.tmp
141 | echo ${bld}$(tput setaf 1)"-----SCRAPING NEW GAMES INFO NOW------"
142 | sleep 5
143 | cd "$HOME/RetroPie/roms/psp/"
144 | /opt/retropie/supplementary/scraper/scraper -img_format=png -image_dir="./boxart" -image_path="./boxart" -download_images=false -image_suffix="" -marquee_dir="./wheel" -marquee_path="./wheel" -download_marquees=false -marquee_suffix="" -video_dir="./snap" -video_path="./snap" -download_videos=false -video_suffix="" -refresh -console_src gdb,ss,ovgdb
145 | fi
146 | }
147 | #--------------------------#
148 | # MSU-1 GAMES FUNCTIONS #
149 | #--------------------------#
150 | function download-msu1() {
151 | if [ ! -d "$HOME"/RetroPie/roms/snesmsu1/ ]; then dialog --sleep 1 --title "MSU1 FOLDER MISSING!" --msgbox "RUNNING MSU1 SETUP NOW" 6 40;
152 | chmod 755 "$HOME"/Devils-Box/scripts/MSU1-Setup.sh
153 | "$HOME"/Devils-Box/scripts/MSU1-Setup.sh
154 | else
155 | clear
156 | wget -m -r -np -nH -nd -R "index.html" ${HOST7}/"${1}" -P "$HOME"/RetroPie/roms/snesmsu1 -erobots=off
157 | fi
158 | }
159 | function msu1-pack() {
160 | if [ ! -d "$HOME"/RetroPie/roms/snesmsu1/ ]; then dialog --sleep 1 --title "MSU1 FOLDER MISSING!" --msgbox "RUNNING MSU1 SETUP NOW" 6 40;
161 | chmod 755 "$HOME"/Devils-Box/scripts/MSU1-Setup.sh
162 | "$HOME"/Devils-Box/scripts/MSU1-Setup.sh
163 | else
164 | clear
165 | wget -m -r -np -nH -nd -R "index.html" "${HOST7}"/ -P "$HOME"/RetroPie/roms/snesmsu1 -erobots=off
166 | rm -f "$HOME"/RetroPie/roms/snesmsu1/index.html.tmp
167 | echo ${bld}$(tput setaf 1)"-----SCRAPING NEW GAMES INFO NOW------"
168 | sleep 5
169 | cd "$HOME/RetroPie/roms/snesmsu1/"
170 | /opt/retropie/supplementary/scraper/scraper -img_format=png -image_dir="./boxart" -image_path="./boxart" -download_images=false -image_suffix="" -marquee_dir="./wheel" -marquee_path="./wheel" -download_marquees=false -marquee_suffix="" -video_dir="./snap" -video_path="./snap" -download_videos=false -video_suffix="" -refresh -console_src gdb,ss,ovgdb
171 | fi
172 | }
173 | #-----------------#
174 | # MUGEN FUNCTION #
175 | #-----------------#
176 | function download-mugens() {
177 | if [ ! -d "$HOME/RetroPie/roms/wine" ]; then dialog --sleep 1 --title ""${1}" FOLDER MISSING!" --msgbox "Please Install Wine First" 6 40;
178 | else
179 | clear
180 | wget -m -r -np -nH -nd -R "index.html" ${HOST4}/"${1}" -P "$HOME"/RetroPie/roms/mugens -erobots=off
181 | unzip -o "$HOME"/RetroPie/roms/mugens/"${1}" -d "$HOME"/RetroPie/roms/mugens
182 | chmod 755 "$HOME"/RetroPie/roms/mugens/*.sh
183 | sudo rm -r "$HOME"/RetroPie/roms/mugens/"${1}"
184 | fi
185 | }
186 |
--------------------------------------------------------------------------------
/files/images/Devils-Box.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Retro-Devils/Devils-Box/bfcf892619b0e12169ffc294e2b4361fbc402311/files/images/Devils-Box.png
--------------------------------------------------------------------------------
/files/ports/GTA3.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | cd ~/RetroPie/roms/ports/GTA3/GrandTheftAuto3
3 | startx ./re3 re3.sh
4 |
--------------------------------------------------------------------------------
/files/ports/re3.ini:
--------------------------------------------------------------------------------
1 | [VideoMode]
2 | Depth = 32
3 | Height = 480
4 | Width = 640
5 | Windowed = 0
6 |
--------------------------------------------------------------------------------
/files/tamoplus/README.md:
--------------------------------------------------------------------------------
1 |
2 | ## TAMO+ (formally known as TAMPO)
3 | ## Theme And Music Plus Overlay v1.45
4 | ## More Information
5 | This is a script that is similar to Kio Diekin's theme and music script, but mine was made only by me and this is in no way the works he premeries in this video:
6 | https://www.youtube.com/watch?v=I0nUTGeLT8o
7 |
8 | This can install all the associated themes, background music, videoloadingscreens, and of course the splashscreens and exitscreens
9 | for two Holiday themes and my own concoction theme set Carbonite, for now, hopefully more to come!
10 | Also it removes everything from the RetroPie Menu that will be included in TAMO+ (IE: esthemes, audiosettings, & splashscreen.rp for vanilla retropie users)
11 | And for those using Supreme Ultra builds it removes Audio Settings, Controller Settings, & Visual Settings from the RetroPie Menu.
12 | All of which can be found from within the TAMO+ script itself.
13 | This installs the same BGM Control Script from here [retropie_music_overlay](https://github.com/ALLRiPPED/retropie_music_overlay) as this is the complete merging of the BGM as well as the original idea for TAMPO and TAMO+.
14 | It will do the full shabang, that means when you run tamo+ from your retropie menu and choose one of the preconfigured themes it will restart emulationstation, not the pi itself, so if you want to see the splashscreen you will have to manually reboot the pi, and you can turn the exit splashes and the videoloading screens on or off.
15 | Now when installing you are able to keep your RetroPie Menu items, or if you choose to remove your Menu items you now restore it back to the orignal. Compatible with Supreme Ultra Builds.
16 | The install and main scripts now let you install the themesets and music seprately later after installation of TAMO+.
17 | This is open source and free for anyone to use, just drop me a little credit is all I ask.
18 | The script has a one line install, so no need to clone a repo (it does all that for you).
19 | Now if you have any sugesstions or addition please fork the repo and hit me up with a pull request.
20 |
21 | ## Future Plans
22 | Not Done Add more Holiday based themes.
23 | Not Done Adding the ability to the control script to change the size of the overlay.
24 | .
25 | .
26 | # FOR MORE SEE TAMPO GITHUB
27 | .
28 | https://github.com/ALLRiPPED/tampo
29 | .
30 | .
31 |
--------------------------------------------------------------------------------
/files/videos/art-packs.mp4:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Retro-Devils/Devils-Box/bfcf892619b0e12169ffc294e2b4361fbc402311/files/videos/art-packs.mp4
--------------------------------------------------------------------------------
/files/videos/community-toolbox.mp4:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Retro-Devils/Devils-Box/bfcf892619b0e12169ffc294e2b4361fbc402311/files/videos/community-toolbox.mp4
--------------------------------------------------------------------------------
/files/videos/console-packs.mp4:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Retro-Devils/Devils-Box/bfcf892619b0e12169ffc294e2b4361fbc402311/files/videos/console-packs.mp4
--------------------------------------------------------------------------------
/files/videos/credits.mp4:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Retro-Devils/Devils-Box/bfcf892619b0e12169ffc294e2b4361fbc402311/files/videos/credits.mp4
--------------------------------------------------------------------------------
/files/videos/devils-toolbox.mp4:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Retro-Devils/Devils-Box/bfcf892619b0e12169ffc294e2b4361fbc402311/files/videos/devils-toolbox.mp4
--------------------------------------------------------------------------------
/files/videos/droids.mp4:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Retro-Devils/Devils-Box/bfcf892619b0e12169ffc294e2b4361fbc402311/files/videos/droids.mp4
--------------------------------------------------------------------------------
/files/videos/hack-packs.mp4:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Retro-Devils/Devils-Box/bfcf892619b0e12169ffc294e2b4361fbc402311/files/videos/hack-packs.mp4
--------------------------------------------------------------------------------
/files/videos/intro.mp4:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Retro-Devils/Devils-Box/bfcf892619b0e12169ffc294e2b4361fbc402311/files/videos/intro.mp4
--------------------------------------------------------------------------------
/files/videos/pickchoose.mp4:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Retro-Devils/Devils-Box/bfcf892619b0e12169ffc294e2b4361fbc402311/files/videos/pickchoose.mp4
--------------------------------------------------------------------------------
/helpers/attract-mode/Attract-Helper.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | function attract-helper() {
4 | local choice
5 |
6 | while true; do
7 | choice=$(dialog --backtitle "$BACKTITLE" --title "ATTRACT MODE HELPER " \
8 | --ok-button Select --cancel-button Exit \
9 | --menu "Version 0.9" 15 30 30 \
10 | 1 "Attract Mode Themes" \
11 | 2 "Attract Mode Tools (WORK IN PROGRESS)" \
12 | 2>&1 >/dev/tty)
13 |
14 | case "$choice" in
15 | 1) attract-themes ;;
16 | 2) attract-tools ;;
17 | *) break ;;
18 | esac
19 | done
20 | }
21 |
22 | function attract-themes() {
23 | local choice
24 |
25 | while true; do
26 | choice=$(dialog --backtitle "$BACKTITLE" --title " ATTRACT MODE THEMES MENU " \
27 | --ok-label Select --cancel-label Main-Menu \
28 | --menu "SELECT THEME AND PRESS A " 20 50 30 \
29 | 1 "DevilsSpin " \
30 | 2>&1 >/dev/tty)
31 |
32 | case "$choice" in
33 | 1) devilsspin ;;
34 | *) break ;;
35 | esac
36 | done
37 | }
38 |
39 | function devilspin() {
40 | wget https://archive.org/download/attractmode/devilspin.zip -P ${HOME}/.am-temp
41 | unzip -o "$HOME"/.am-temp/devilspin.zip -d "$HOME"/.am-temp/
42 | sudo rm -R "$HOME"/devilspin.zip
43 | mv
44 | }
45 |
46 |
47 | function attract-tools() {
48 | local choice
49 |
50 | while true; do
51 | choice=$(dialog --backtitle "$BACKTITLE" --title " ATTRACT MODE TOOLS MENU " \
52 | --ok-label Select --cancel-label Main-Menu \
53 | --menu "SELECT THEME AND PRESS A " 20 50 30 \
54 | 1 "tool 1 " \
55 | 2>&1 >/dev/tty)
56 |
57 | case "$choice" in
58 | 1) tool-1 ;;
59 | *) break ;;
60 | esac
61 | done
62 | }
63 |
64 |
65 | attract-helper
--------------------------------------------------------------------------------
/helpers/emulationstation/Collections.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | clear
3 | dialog --sleep 1 --title "COLLECTIONS MENU" --msgbox"
4 | ------YOU WILL NEED A KEYBOARD------
5 | ---THIS MAKES COLLECTIONS FOR YOU---" 0 0
6 |
7 | function collections_menu() {
8 | local choice
9 |
10 | while true; do
11 | choice=$(dialog --backtitle "$BACKTITLE" --title "COLLECTIONS HELPER V1.0" \
12 | --ok-label Select --cancel-label Back \
13 | --menu "COLLECTIONS HELPER MENU" 25 40 40 \
14 | 1 "How To Use Helper ???" \
15 | 2 "List Installed ES Themes " \
16 | 3 "Pick Collections To Make " \
17 | 2>&1 > /dev/tty)
18 |
19 | case "$choice" in
20 | 1) how-to ;;
21 | 2) list-themes ;;
22 | 3) pick-collections ;;
23 | *) break ;;
24 | esac
25 | done
26 | }
27 |
28 | function how-to() {
29 | dialog --sleep 1 --title "COLLECTIONS HOW TO" --msgbox "
30 | 1. Click -List Installed ES Themes- To See Themes
31 | 2. Click -Select Collections To Make-
32 | 3. Type Theme You Want To Add Collections Too
33 | 4. Select Collection(s) You Want To Add To Theme
34 | 5. Let it run
35 | 6. ENJOY !!!
36 |
37 | ----------- Frequently Asked Questions--------
38 | - What Art is Used?
39 | Hurstys Chromey Wheels
40 |
41 | - Why Make this?
42 | Too Make your life easier" 0 0
43 | }
44 |
45 | function list-themes() {
46 | clear
47 | cd "/home/pi/.emulationstation/themes/"
48 | ls
49 | read -n 1 -s -r -p "Above Is A List Of Installed Themes-----Press any key to Continue"
50 | }
51 |
52 |
53 | function pick-collections() {
54 | local choice
55 |
56 | while true; do
57 | choice=$(dialog --backtitle "$BACKTITLE" --title "COLLECTIONS HELPER V1.0" \
58 | --ok-label Select --cancel-label Back \
59 | --menu "COLLECTIONS HELPER MENU" 25 40 40 \
60 | + "----Hurstys Collections----" \
61 | 1 "BeatEmUps Collection " \
62 | 2 "Fighters Collection " \
63 | 2>&1 > /dev/tty)
64 |
65 | case "$choice" in
66 | +) none ;;
67 | 1) hursty-logos "beatemups" ;;
68 | 2) hursty-logos "fighters" ;;
69 | *) break ;;
70 | esac
71 | done
72 | }
73 | function hursty-logos() {
74 | cd "/home/pi/.emulationstation/themes/"
75 | echo "Please type theme name and press Enter"
76 | read theme
77 | cd ~/$theme
78 | if [ -d "$HOME"/.emulationstation/themes/$theme/$1 ]
79 | then
80 | mkdir ~/"${1}"
81 | cd ~/"${1}"
82 | wget https://raw.githubusercontent.com/Retro-Devils/Devils-Themes/main/Devil-Chromey/"${1}"/_inc/system.png -P /home/pi/.emulationstation/themes/$theme/"${1}"
83 | cd
84 | dialog --sleep 1 --title "COLLECTIONS EXIT MESSAGE" --msgbox"
85 | -------THANKS FOR USING--------
86 | TO SEE COLLECTIONS IN ES PLEASE
87 | -GO TO RETROPIE
88 | -PRESS START
89 | -GOT TO UI SETTINGS
90 | -COLLECTIONS
91 | -GENERATE COLLECTION FROM THEME
92 | YOU SHOULD SEE ADDED COLLECTIONS THIER" 0 0
93 | else
94 | dialog --sleep 1 --title "COLLECTIONS ALREADY EXSIST" --msgbox"
95 | COLLECTION ALREADY EXSIST
96 | - CANT GENERATE A COLLECTION THAT EXSIST" 0 0
97 | fi
98 | }
99 |
100 | function ibad-logos() {
101 | cd "/home/pi/.emulationstation/themes/"
102 | echo "Please type theme name and press Enter"
103 | read theme
104 | cd ~/$theme
105 | if [ -d "$HOME"/.emulationstation/themes/$theme/$1 ]
106 | then
107 | mkdir ~/"${1}"
108 | cd ~/"${1}"
109 | wget https://raw.githubusercontent.com/Retro-Devils/Devils-Themes/main/NEON-IBAD/"${1}"/_inc/system.png -P /home/pi/.emulationstation/themes/$theme/"${1}"
110 | cd
111 | read -n 1 -s -r -p "Thanks For Using-----Press any key to Continue"
112 | cd
113 | dialog --sleep 1 --title "COLLECTIONS EXIT MESSAGE" --msgbox"
114 | -------THANKS FOR USING--------
115 | TO SEE COLLECTION IN ES PLEASE
116 | -GO TO RETROPIE
117 | -PRESS START
118 | -GOT TO UI SETTINGS
119 | -COLLECTIONS
120 | -GENERATE COLLECTION FROM THEME
121 | YOU SHOULD SEE ADDED COLLECTIONS THIER" 0 0
122 | else
123 | dialog --sleep 1 --title "COLLECTIONS ALREADY EXSIST" --msgbox"
124 | COLLECTION ALREADY EXSIST
125 | - CANT GENERATE A COLLECTION THAT EXSIST" 0 0
126 | fi
127 | }
128 |
129 | collections_menu
130 |
--------------------------------------------------------------------------------
/helpers/emulationstation/ES-Helper.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | function es-helper() {
4 | local choice
5 |
6 | while true; do
7 | choice=$(dialog --backtitle "$BACKTITLE" --title "ES HELPER " \
8 | --ok-button Select --cancel-button Exit \
9 | --menu "Version 0.9" 15 30 30 \
10 | 1 "Collections" \
11 | 2 "Themes " \
12 | 3 "Info " \
13 | 2>&1 >/dev/tty)
14 |
15 | case "$choice" in
16 | 1) collections ;;
17 | 2) es-themes ;;
18 | 3) info ;;
19 | *) break ;;
20 | esac
21 | done
22 | }
23 |
24 | function collections() {
25 | bash "$HOME"/Devils-Box/helpers/emulationstation/Collections.sh
26 | }
27 |
28 | function how-to() {
29 | dialog --sleep 1 --title "COLLECTIONS HOW TO" --msgbox "
30 | 1. Click -List Installed ES Themes- To See Themes
31 | 2. Click -Select Collections To Make-
32 | 3. Type Theme You Want To Add Collections Too
33 | 4. Select Collection(s) You Want To Add To Theme
34 | 5. Let it run
35 | 6. ENJOY !!!
36 |
37 | ----------- Frequently Asked Questions--------
38 | - What Art is Used?
39 | Hurstys Chromey Wheels
40 |
41 | - Why Make this?
42 | Too Make your life easier" 0 0
43 | }
44 |
45 | function list-themes() {
46 | clear
47 | cd "/home/pi/.emulationstation/themes/"
48 | ls
49 | read -n 1 -s -r -p "Above Is A List Of Installed Themes-----Press any key to Continue"
50 | }
51 |
52 | function pick-collections() {
53 | local choice
54 | whiptail --clear --title "PICK & CHOOSE ATOMISWAVE" --separate-output --checklist "Choose Game(s) and click Download:" 0 0 0 \
55 | --ok-button Download --cancel-button Back \
56 | "+" "---Hurstys Chromey Wheel---" off \
57 | "1" "Battletoads Collection" off \
58 | "2" "Capcom Collection" off \
59 | "3" "Fighters Collection" off \
60 | "4" "Shooters Collection" off |
61 | 2>/tmp/results
62 | while read -r choice
63 | do
64 | case $choice in
65 | +) none ;;
66 | 1) hursty-logos "battletoads" ;;
67 | 2) hursty-logos "capcom" ;;
68 | 3) hursty-logos "fighters" ;;
69 | 4) hursty-logos "shooters" ;;
70 | -) nono ;;
71 | 5) devil-logos "battletoads" ;;
72 | 6) devil-logos "capcom" ;;
73 | *) ;;
74 | esac
75 | done < /tmp/results
76 | }
77 |
78 | function hursty-logos() {
79 | cd "/home/pi/.emulationstation/themes/"
80 | echo "Please type theme name and press Enter"
81 | read theme
82 | cd ~/$theme
83 | mkdir ~/"${1}"
84 | cd ~/"${1}"
85 | wget https://raw.githubusercontent.com/Retro-Devils/Devils-Themes/main/Devil-Chromey/"${1}"/_inc/system.png -P /home/pi/.emulationstation/themes/$theme/"${1}"
86 | cd
87 | read -n 1 -s -r -p "Thanks For Using-----Press any key to Continue"
88 | cd
89 | }
90 | function devil-logos() {
91 | cd "/home/pi/.emulationstation/themes/"
92 | echo "Please type theme name and press Enter"
93 | read theme
94 | cd ~/$theme
95 | mkdir ~/"${1}"
96 | cd ~/"${1}"
97 | wget https://raw.githubusercontent.com/Retro-Devils/Devils-Themes/main/NEON-IBAD/"${1}"/_inc/system.png -P /home/pi/.emulationstation/themes/$theme/"${1}"
98 | cd
99 | read -n 1 -s -r -p "Thanks For Using-----Press any key to Continue"
100 | cd
101 | }
102 |
103 | function es-themes() {
104 | local choice
105 |
106 | while true; do
107 | choice=$(dialog --backtitle "$BACKTITLE" --title "ES HELPER " \
108 | --ok-button Select --cancel-button Exit \
109 | --menu "Version 0.9" 15 30 30 \
110 | 1 "Community Themes" \
111 | 2 "Devils Themes" \
112 | 3 "ES Theme Menu" \
113 | 4 "Hurstys Themes" \
114 | 2>&1 >/dev/tty)
115 |
116 | case "$choice" in
117 | 1) community-themes ;;
118 | 2) devils-themes ;;
119 | 3) es-themes ;;
120 | 4) hursty-themes ;;
121 | *) break ;;
122 | esac
123 | done
124 | }
125 |
126 | function es-themes () {
127 | sudo /home/pi/RetroPie-Setup/retropie_packages.sh retropiemenu launch /home/pi/RetroPie/retropiemenu/esthemes.rp
128 | }
129 |
130 | function hursty-themes () {
131 | if [ -f "/home/pi/RetroPie/retropiemenu/hurstythemes.sh" ]; then
132 | /home/pi/RetroPie/retropiemenu/hurstythemes.sh
133 | else
134 | wget https://raw.githubusercontent.com/RetroHursty69/HurstyThemes/master/install.sh
135 | chmod +x "install.sh"
136 | ./install.sh
137 | fi
138 | }
139 |
140 | function devil-themes() {
141 | local choice
142 |
143 | while true; do
144 | choice=$(dialog --backtitle "$BACKTITLE" --title " DEVILS THEMES MENU " \
145 | --ok-label Select --cancel-label Main-Menu \
146 | --menu "SELECT THEME AND PRESS A " 20 50 30 \
147 | 1 "Devil Chromey " \
148 | 2 "Neon I.B.A.D " \
149 | 2>&1 >/dev/tty)
150 |
151 | case "$choice" in
152 | 1) devil-chromey ;;
153 | 2) neon-ibad ;;
154 | *) break ;;
155 | esac
156 | done
157 | }
158 |
159 | function devil-chromey() {
160 | wget https://archive.org/download/devils-themes/devil-chromey.zip -P ${HOME}/
161 | unzip -o "$HOME"/devil-chromey.zip -d /home/pi/.emulationstation/themes/
162 | sudo rm -R "$HOME"/devil-chromey.zip
163 | }
164 |
165 | function neon-ibad() {
166 | wget https://archive.org/download/devils-themes/NEON-IBAD.zip -P ${HOME}/
167 | unzip -o "$HOME"/NEON-IBAD.zip -d /home/pi/.emulationstation/themes/
168 | sudo rm -R "$HOME"/NEON-IBAD.zip
169 | }
170 |
171 | function info() {
172 |
173 |
174 | es-helper
175 |
--------------------------------------------------------------------------------
/helpers/emulationstation/Icon-Helper.sh:
--------------------------------------------------------------------------------
1 | function icons-menu() {
2 | local choice
3 |
4 | while true; do
5 | choice=$(dialog --backtitle "$BACKTITLE" --title "ICON HELPER v1.0" \
6 | --ok-label Select --cancel-label Back \
7 | --menu "ICON HELPER MENU" 25 40 40 \
8 | 1 "How To Use This ???" \
9 | 2 "List Installed ES Themes " \
10 | + "-------CHOOSE ICON SET------" \
11 | 3 "Chromey Icons---------Hursty" \
12 | 4 "Set2 Icons-------COMING SOON" \
13 | 5 "Set3 Icons-------COMING SOON" \
14 | + "------PREVIEW ICONS---------" \
15 | 6 "Preview Chromey Icons " \
16 | 7 "Preview Set 2 Icons " \
17 | 8 "Preview Set 3 Icons " \
18 | 2>&1 > /dev/tty)
19 |
20 | case "$choice" in
21 | 1) how-to ;;
22 | 2) list-themes ;;
23 | +) none ;;
24 | 3) chromey-icons ;;
25 | 4) set2set2 ;;
26 | 5) set3set3 ;;
27 | +) none ;;
28 | 6) preview-chromey ;;
29 | 7) preview-set2 ;;
30 | 8) preview-set3 ;;
31 | *) break ;;
32 | esac
33 | done
34 | }
35 |
36 | function how-to() {
37 | dialog --sleep 1 --title "COLLECTIONS HOW TO" --msgbox "
38 | -----------YOU WILL NEED A KEYBOARD-----------
39 |
40 | 1. Click -List Installed ES Themes- To See Themes
41 | 2. Choose Whoch Icon Set you want & Click It
42 | 3. Type Theme You Want To Add Missing Icons Too
43 | 4. Let it run
44 | 5. ENJOY !!!
45 |
46 | ----------- Frequently Asked Questions--------
47 | - What Art is Used?
48 | - Hurstys Chromey Wheels
49 | - Set2
50 | - Set3
51 |
52 | - Why Make this?
53 | Too Make Your Retropie as Nice as possible.
54 |
55 | " 0 0
56 | }
57 |
58 | function list-themes() {
59 | clear
60 | cd "/home/pi/.emulationstation/themes/"
61 | ls
62 | read -n 1 -s -r -p "Above Is A List Of Installed Themes-----Press any key to Continue"
63 | }
64 |
65 | function preview-chromey() {
66 | sudo apt-get install fbi
67 | mkdir "$HOME"/temp/icons-preview
68 | cd "$HOME"/temp/icons-preview
69 | echo "Getting Previews Now"
70 | sleep 2
71 | wget https://raw.githubusercontent.com/Retro-Devils/Devils-Themes/main/Devil-Chromey/gb/_inc/system.png -f "$HOME"/temp/icons-preview/gameboy.png
72 | wget https://raw.githubusercontent.com/Retro-Devils/Devils-Themes/main/Devil-Chromey/asteroids/_inc/system.png -f "$HOME"/temp/icons-preview/atari7800.png
73 | echo "Displaying Icons Now "
74 | sleep 3
75 | fbi ~/atari7800.png
76 | fbi ~/gameboy.png
77 | sudo rm -R "$HOME"/temp/icons-preview
78 | }
79 |
80 | function preview-set2() {
81 | mkdir $HOME"/temp/icons-preview
82 | cd "$HOME"/temp/icons-preview
83 | echo "Getting Previews Now"
84 | sleep 2
85 | wget HURSTY ICON GAMEBOY -f $HOME"/temp/icons-preview/gameboy.png
86 | wget HURSTY ICON ATARI7800 -f "$HOME"/temp/icons-preview/atari7800.png
87 | echo "Displaying Icons Now "
88 | sleep 3
89 | view "$HOME"/temp/icons-preview/atari7800.png
90 | view "$HOME"/temp/icons-preview/gameboy.png
91 | sudo rm -R "$HOME"/temp/icons-preview
92 | }
93 |
94 | function preview-set³() {
95 | mkdir "$HOME"/temp/icons-preview
96 | cd "$HOME"/temp/icons-preview
97 | echo "Getting Previews Now"
98 | sleep 2
99 | wget HURSTY ICON GAMEBOY -f "$HOME"/temp/icons-preview/gameboy.png
100 | wget HURSTY ICON ATARI7800 -f "$HOME"/temp/icons-preview/atari7800.png
101 | echo "Displaying Icons Now "
102 | sleep 3
103 | view "$HOME"/temp/icons-preview/atari7800.png
104 | view "$HOME"/temp/icons-preview/gameboy.png
105 | sudo rm -R "$HOME"/temp/icons-preview
106 | }
107 |
108 |
109 | function chromey-icons() {
110 | cd "/home/pi/.emulationstation/themes/"
111 | echo "Please type theme name and press Enter"
112 | read theme
113 | echo "Searching For Common Missing Icons Now "
114 | sleep 2
115 | #---MODEL 3----#
116 | if [ ! -d "$HOME"/.emulationstation/themes/$theme/model3 ] then
117 | mkdir "$HOME"/.emulationstation/$theme/model3/_inc
118 | cd "$HOME"/.emulationstation/themes/model3/_inc/
119 | wget https://raw.githubusercontent.com/Retro-Devils/Devils-Themes/main/Devil-Chromey/model3/_inc/system.png
120 | cd "$HOME"/.emulationstation/$theme/model3
121 | wget https://raw.githubusercontent.com/Retro-Devils/Devils-Themes/main/Devil-Chromey/model3/theme.xml
122 | cd
123 | else echo "MODEL 3 PRESENT ALREADY"
124 | fi
125 | #---WINE---#
126 | if [ ! -d /home/pi/.emulationstation/themes/$theme/wine ] then
127 | mkdir "$HOME"/.emulationstation/$theme/wine/_inc
128 | cd "$HOME"/.emulationstation/$theme/wine/_inc
129 | wget https://raw.githubusercontent.com/Retro-Devils/Devils-Themes/main/Devil-Chromey/wine/_inc/system.png
130 | cd "$HOME"/.emulationstation/$theme/wine
131 | wget https://raw.githubusercontent.com/Retro-Devils/Devils-Themes/main/Devil-Chromey/wine/theme.xml
132 | cd
133 | else echo "WINE PRESENT ALREADY"
134 | fi
135 | #---MUGEN---#
136 | if [ ! -d /home/pi/.emulationstation/themes/$theme/mugens ] then
137 | mkdir "$HOME"/.emulationstation/$theme/mugens/_inc
138 | wget https://raw.githubusercontent.com/Retro-Devils/Devils-Themes/main/Devil-Chromey/mugens/_inc/system.png
139 | cd "$HOME"/.emulationstation/$theme/mugens
140 | wget https://raw.githubusercontent.com/Retro-Devils/Devils-Themes/main/Devil-Chromey/mugens/theme.xml
141 | cd
142 | else echo "MUGENS PRESENT ALREADY"
143 | fi
144 | #--ATOMISWAVE--#
145 | if [ ! -d /home/pi/.emulationstation/themes/$theme/atomiswave ] then
146 | mkdir "$HOME"/.emulationstation/themes/$theme/atomiswave/_inc
147 | cd "$HOME"/.emulationstation/themes/$theme/atomiswave/_inc
148 | wget https://raw.githubusercontent.com/Retro-Devils/Devils-Themes/main/Devil-Chromey/atomiswave/_inc/system.png
149 | cd "$HOME"/.emulationstation/themes/$theme/atomiswave/
150 | wget https://raw.githubusercontent.com/Retro-Devils/Devils-Themes/main/Devil-Chromey/atomiswave/theme.xml
151 | cd
152 | else echo "ATOMISWAVE ALREADY PRESENT"
153 | fi
154 | }
155 |
156 | function set2-icons() {
157 | cd "/home/pi/.emulationstation/themes/"
158 | echo "Please type theme name and press Enter"
159 | read theme
160 | echo "Searching For Common Missing Icons Now "
161 | sleep 2
162 | #---MODEL 3----#
163 | if [ ! -d /home/pi/.emulationstation/themes/$theme/model3]
164 | then
165 | mkdir /home/pi/.emulationstation/themes/$theme/model3
166 | cd "$HOME"/.emulationstation/themes/$theme/model3
167 | wget HURSTY LOGOS MODEL 3
168 | else skip
169 | fi
170 | #---WINE---#
171 | if [ ! -d /home/pi/.emulationstation/themes/$theme/wine]
172 | then
173 | mkdir "$HOME"/.emulationstation/themes/$theme/wine
174 | cd "$HOME"/.emulationstation/themes/$theme/wine
175 | wget HURSTY LOGOS WINE
176 | else skip
177 | fi
178 | #---MUGEN---#
179 | if [ ! -d /home/pi/.emulationstation/themes/$theme/model3] then wget HURSTY LOGOS MUGEN
180 | else skip
181 | fi
182 | #--ATOMISWAVE--#
183 | if [ ! -d /home/pi/.emulationstation/themes/$theme/atomiswave]
184 | then wget HURSTY LOGOS ATOMISWAVE
185 | else skip
186 | fi
187 | }
188 |
189 | function set3-icons() {
190 | cd "/home/pi/.emulationstation/themes/"
191 | echo "Please type theme name and press Enter"
192 | read theme
193 | echo "Searching For Common Missing Icons Now "
194 | sleep 2
195 | #---MODEL 3----#
196 | if [ ! -d /home/pi/.emulationstation/themes/$theme/model3] then
197 | wget HURSTY LOGOS MODEL 3
198 | else skip
199 | fi
200 | #---WINE---#
201 | if [ ! -d /home/pi/.emulationstation/themes/$theme/wine]
202 | then wget HURSTY LOGOS WINE
203 | else skip
204 | fi
205 | #---MUGEN---#
206 | if [ ! -d /home/pi/.emulationstation/themes/$theme/model3 ] then wget HURSTY LOGOS MUGEN
207 | else skip
208 | fi
209 | #--ATOMISWAVE--#
210 | if [ ! -d /home/pi/.emulationstation/themes/$theme/atomiswave ]
211 | then wget HURSTY LOGOS ATOMISWAVE
212 | else skip
213 | fi
214 | }
215 |
216 | icons-menu
217 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/README.md:
--------------------------------------------------------------------------------
1 | # ES to Pegasus Theme Converter
2 |
3 | A proof of concept tool for converting EmulationStation themes to Pegasus. Highly experimental, beware the dragons.
4 |
5 | ## Usage
6 |
7 | `./convert inputdir [outputdir]`
8 |
9 | This will read the ES theme files in `inputdir`, then generate new files in `outpudir`. At the moment, you might want to step into an ES theme's directory and run the script from there.
10 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/arrow.svg:
--------------------------------------------------------------------------------
1 |
2 |
5 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/busy_0.svg:
--------------------------------------------------------------------------------
1 |
2 |
8 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/busy_1.svg:
--------------------------------------------------------------------------------
1 |
2 |
8 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/busy_2.svg:
--------------------------------------------------------------------------------
1 |
2 |
8 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/busy_3.svg:
--------------------------------------------------------------------------------
1 |
2 |
8 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/button.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Retro-Devils/Devils-Box/bfcf892619b0e12169ffc294e2b4361fbc402311/helpers/pegasusfe/pegasus-converter/__es_resources/button.png
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/button_filled.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Retro-Devils/Devils-Box/bfcf892619b0e12169ffc294e2b4361fbc402311/helpers/pegasusfe/pegasus-converter/__es_resources/button_filled.png
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/cartridge.svg:
--------------------------------------------------------------------------------
1 |
2 |
27 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/checkbox_checked.svg:
--------------------------------------------------------------------------------
1 |
2 |
7 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/checkbox_unchecked.svg:
--------------------------------------------------------------------------------
1 |
2 |
5 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/fav_add.svg:
--------------------------------------------------------------------------------
1 |
2 |
6 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/fav_remove.svg:
--------------------------------------------------------------------------------
1 |
2 |
5 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/folder.svg:
--------------------------------------------------------------------------------
1 |
2 |
6 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/frame.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Retro-Devils/Devils-Box/bfcf892619b0e12169ffc294e2b4361fbc402311/helpers/pegasusfe/pegasus-converter/__es_resources/frame.png
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/help/analog_down.svg:
--------------------------------------------------------------------------------
1 |
2 |
10 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/help/analog_left.svg:
--------------------------------------------------------------------------------
1 |
2 |
10 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/help/analog_right.svg:
--------------------------------------------------------------------------------
1 |
2 |
10 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/help/analog_stick.svg:
--------------------------------------------------------------------------------
1 |
2 |
10 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/help/analog_thumb.svg:
--------------------------------------------------------------------------------
1 |
2 |
10 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/help/analog_up.svg:
--------------------------------------------------------------------------------
1 |
2 |
10 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/help/button_1.svg:
--------------------------------------------------------------------------------
1 |
2 |
6 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/help/button_2.svg:
--------------------------------------------------------------------------------
1 |
2 |
6 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/help/button_3.svg:
--------------------------------------------------------------------------------
1 |
2 |
6 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/help/button_4.svg:
--------------------------------------------------------------------------------
1 |
2 |
6 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/help/button_a.svg:
--------------------------------------------------------------------------------
1 |
2 |
6 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/help/button_b.svg:
--------------------------------------------------------------------------------
1 |
2 |
6 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/help/button_circle.svg:
--------------------------------------------------------------------------------
1 |
2 |
6 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/help/button_cross.svg:
--------------------------------------------------------------------------------
1 |
2 |
6 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/help/button_hotkey.svg:
--------------------------------------------------------------------------------
1 |
2 |
6 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/help/button_l.svg:
--------------------------------------------------------------------------------
1 |
2 |
6 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/help/button_lr.svg:
--------------------------------------------------------------------------------
1 |
2 |
13 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/help/button_lt.svg:
--------------------------------------------------------------------------------
1 |
2 |
7 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/help/button_r.svg:
--------------------------------------------------------------------------------
1 |
2 |
6 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/help/button_rt.svg:
--------------------------------------------------------------------------------
1 |
2 |
7 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/help/button_select.svg:
--------------------------------------------------------------------------------
1 |
2 |
13 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/help/button_square.svg:
--------------------------------------------------------------------------------
1 |
2 |
6 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/help/button_start.svg:
--------------------------------------------------------------------------------
1 |
2 |
12 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/help/button_triangle.svg:
--------------------------------------------------------------------------------
1 |
2 |
6 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/help/button_x.svg:
--------------------------------------------------------------------------------
1 |
2 |
6 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/help/button_y.svg:
--------------------------------------------------------------------------------
1 |
2 |
6 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/help/buttons_east.svg:
--------------------------------------------------------------------------------
1 |
2 |
9 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/help/buttons_north.svg:
--------------------------------------------------------------------------------
1 |
2 |
9 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/help/buttons_south.svg:
--------------------------------------------------------------------------------
1 |
2 |
9 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/help/buttons_west.svg:
--------------------------------------------------------------------------------
1 |
2 |
9 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/help/dpad_all.svg:
--------------------------------------------------------------------------------
1 |
2 |
13 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/help/dpad_down.svg:
--------------------------------------------------------------------------------
1 |
2 |
13 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/help/dpad_left.svg:
--------------------------------------------------------------------------------
1 |
2 |
13 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/help/dpad_leftright.svg:
--------------------------------------------------------------------------------
1 |
2 |
13 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/help/dpad_right.svg:
--------------------------------------------------------------------------------
1 |
2 |
13 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/help/dpad_up.svg:
--------------------------------------------------------------------------------
1 |
2 |
13 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/help/dpad_updown.svg:
--------------------------------------------------------------------------------
1 |
2 |
13 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/mamebioses.xml:
--------------------------------------------------------------------------------
1 | 3dobios
2 | airlbios
3 | aleck64
4 | alg_bios
5 | allied
6 | ar_bios
7 | aristmk5
8 | aristmk6
9 | atarisy1
10 | atluspsx
11 | atpsx
12 | awbios
13 | bctvidbs
14 | bubsys
15 | cd32
16 | cdibios
17 | cedmag
18 | chihiro
19 | coh1000a
20 | coh1000c
21 | coh1000t
22 | coh1000w
23 | coh1001l
24 | coh1002e
25 | coh1002m
26 | coh1002v
27 | coh3002c
28 | coh3002t
29 | cpzn1
30 | cpzn2
31 | crysbios
32 | cubo
33 | decocass
34 | f355bios
35 | f355dlx
36 | galgbios
37 | gp_110
38 | gq863
39 | gts1
40 | gts1s
41 | hikaru
42 | hng64
43 | hod2bios
44 | isgsm
45 | iteagle
46 | konamigv
47 | konamigx
48 | kviper
49 | lindbios
50 | list.txt
51 | mac2bios
52 | macsbios
53 | maxaflex
54 | megaplay
55 | megatech
56 | naomi2
57 | naomi
58 | naomigd
59 | neogeo
60 | nss
61 | pgm
62 | playch10
63 | psarc95
64 | pyson
65 | sammymdl
66 | segasp
67 | sfcbox
68 | shtzone
69 | skns
70 | stvbios
71 | su2000
72 | sys246
73 | sys256
74 | sys573
75 | taitofx1
76 | taitogn
77 | taitotz
78 | tourvis
79 | tps
80 | triforce
81 | v4bios
82 | vspsx
83 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/off.svg:
--------------------------------------------------------------------------------
1 |
2 |
10 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/on.svg:
--------------------------------------------------------------------------------
1 |
2 |
6 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/opensans_hebrew_condensed_light.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Retro-Devils/Devils-Box/bfcf892619b0e12169ffc294e2b4361fbc402311/helpers/pegasusfe/pegasus-converter/__es_resources/opensans_hebrew_condensed_light.ttf
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/opensans_hebrew_condensed_regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Retro-Devils/Devils-Box/bfcf892619b0e12169ffc294e2b4361fbc402311/helpers/pegasusfe/pegasus-converter/__es_resources/opensans_hebrew_condensed_regular.ttf
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/option_arrow.svg:
--------------------------------------------------------------------------------
1 |
2 |
5 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/scroll_gradient.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Retro-Devils/Devils-Box/bfcf892619b0e12169ffc294e2b4361fbc402311/helpers/pegasusfe/pegasus-converter/__es_resources/scroll_gradient.png
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/slider_knob.svg:
--------------------------------------------------------------------------------
1 |
2 |
5 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/star_filled.svg:
--------------------------------------------------------------------------------
1 |
2 |
5 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/star_unfilled.svg:
--------------------------------------------------------------------------------
1 |
2 |
5 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/textinput_ninepatch.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Retro-Devils/Devils-Box/bfcf892619b0e12169ffc294e2b4361fbc402311/helpers/pegasusfe/pegasus-converter/__es_resources/textinput_ninepatch.png
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/textinput_ninepatch_active.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Retro-Devils/Devils-Box/bfcf892619b0e12169ffc294e2b4361fbc402311/helpers/pegasusfe/pegasus-converter/__es_resources/textinput_ninepatch_active.png
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__es_resources/window_icon_256.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Retro-Devils/Devils-Box/bfcf892619b0e12169ffc294e2b4361fbc402311/helpers/pegasusfe/pegasus-converter/__es_resources/window_icon_256.png
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__pycache__/errors.cpython-37.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Retro-Devils/Devils-Box/bfcf892619b0e12169ffc294e2b4361fbc402311/helpers/pegasusfe/pegasus-converter/__pycache__/errors.cpython-37.pyc
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__pycache__/property_types.cpython-37.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Retro-Devils/Devils-Box/bfcf892619b0e12169ffc294e2b4361fbc402311/helpers/pegasusfe/pegasus-converter/__pycache__/property_types.cpython-37.pyc
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__pycache__/qml.cpython-37.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Retro-Devils/Devils-Box/bfcf892619b0e12169ffc294e2b4361fbc402311/helpers/pegasusfe/pegasus-converter/__pycache__/qml.cpython-37.pyc
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__pycache__/qml_render.cpython-37.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Retro-Devils/Devils-Box/bfcf892619b0e12169ffc294e2b4361fbc402311/helpers/pegasusfe/pegasus-converter/__pycache__/qml_render.cpython-37.pyc
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/__pycache__/static.cpython-37.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Retro-Devils/Devils-Box/bfcf892619b0e12169ffc294e2b4361fbc402311/helpers/pegasusfe/pegasus-converter/__pycache__/static.cpython-37.pyc
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/errors.py:
--------------------------------------------------------------------------------
1 | import sys
2 |
3 |
4 | def term_can_color():
5 | return sys.platform != 'win32' and sys.stdout.isatty()
6 |
7 |
8 | def print_info(msg):
9 | print(f'[i] {msg}')
10 |
11 |
12 | def warn(msg):
13 | COLOR_START = '\033[93m' if term_can_color() else ''
14 | COLOR_END = '\033[0m' if term_can_color() else ''
15 | print(f'{COLOR_START}[warning] {msg}{COLOR_END}', file=sys.stderr)
16 |
17 |
18 | def print_error(msg):
19 | COLOR_START = '\033[91m' if term_can_color() else ''
20 | COLOR_END = '\033[0m' if term_can_color() else ''
21 | print(f'{COLOR_START}[error] {msg}{COLOR_END}', file=sys.stderr)
22 |
23 |
24 | def error_and_die(msg):
25 | print_error(msg)
26 | sys.exit(1)
27 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/property_types.py:
--------------------------------------------------------------------------------
1 | import os
2 | import re
3 | from errors import *
4 | from static import PropTypes
5 | from typing import Optional, Union
6 |
7 |
8 | class NormPair():
9 | def __init__(self, prop_str):
10 | fields = prop_str.split(maxsplit=1)
11 | if len(fields) != 2:
12 | print_error(f"Invalid normalized pair: `{prop_str}`")
13 | raise ValueError
14 |
15 | try:
16 | self.a, self.b = map(float, fields)
17 | except ValueError:
18 | print_error(f"Invalid normalized pair values: `{prop_str}`")
19 | raise ValueError
20 |
21 | def __repr__(self):
22 | return f"{self.__class__.__name__} {{ {self.a}, {self.b} }}"
23 |
24 |
25 | #class NormRect():
26 | # def __init__(self, prop_str):
27 | # fields = prop_str.split(maxsplit=3)
28 | # if len(fields) != 2 or len(fields) != 4:
29 | # print_error(f"Invalid normalized rectangle: `{prop_str}`")
30 | # raise ValueError
31 | #
32 | # try:
33 | # if len(fields) == 2:
34 | # self.a, self.b = map(float, fields)
35 | # self.c, self.d = self.a, self.b
36 | # else:
37 | # self.a, self.b, self.c, self.d = map(float, fields)
38 | # except ValueError:
39 | # print_error(f"Invalid normalized pair values: `{prop_str}`")
40 | # raise ValueError
41 | #
42 | # def __repr__(self):
43 | # return f"{self.__class__.__name__} {{ {self.a}, {self.b}, {self.c}, {self.d} }}"
44 |
45 |
46 | class Color():
47 | def __init__(self, prop_str):
48 | res = re.match(r'^[0-9a-fA-F]{6}([0-9a-fA-F]{2})?$', prop_str)
49 | if not res:
50 | print_error(f"Invalid color value: `{prop_str}`")
51 | raise ValueError
52 |
53 | self.hex = prop_str
54 | # self.hex = res.group(0)
55 | if res.group(1):
56 | self.opacity = int(res.group(1), 16) / 255
57 | else:
58 | self.opacity = 1.0
59 |
60 | def __repr__(self):
61 | return f"#{self.hex}"
62 |
63 |
64 | PropertyType = Union[NormPair, Color, str, float, bool]
65 |
66 |
67 | def parse_param(basedir, prop_type, prop_str) -> Optional[PropertyType]:
68 | try:
69 | if prop_type == PropTypes.NORMALIZED_PAIR:
70 | return NormPair(prop_str)
71 | if prop_type == PropTypes.NORMALIZED_RECT:
72 | return NormPair(prop_str)
73 | if prop_type == PropTypes.STRING:
74 | return prop_str
75 | if prop_type == PropTypes.PATH:
76 | return os.path.join(basedir, prop_str)
77 | if prop_type == PropTypes.COLOR:
78 | return Color(prop_str)
79 | if prop_type == PropTypes.FLOAT:
80 | return float(prop_str)
81 | if prop_type == PropTypes.BOOLEAN:
82 | return prop_str.lower()[0] in ['1', 't', 'y']
83 | except ValueError:
84 | pass
85 | return None
86 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/pegasus-converter/qml.py:
--------------------------------------------------------------------------------
1 | import os
2 | from qml_render import *
3 | from static import *
4 |
5 |
6 | def extend_with_defaults(viewtype, elems):
7 | def add_maybe(name, kind, elems):
8 | for elem in elems:
9 | # FIXME: handle non-extra items marked as extra
10 | # if elem['name'] == name and elem['type'] == kind and not elem['is_extra']:
11 | if elem['name'] == name and elem['type'] == kind:
12 | # elem['is_extra'] = False
13 | return
14 |
15 | elems.append({
16 | 'name': name,
17 | 'type': kind,
18 | 'is_extra': False,
19 | 'params': {},
20 | })
21 |
22 | default_elems = RESERVED_ITEMS.get(viewtype, {})
23 |
24 | if viewtype == 'system':
25 | default_elems = RESERVED_ITEMS[viewtype].copy()
26 | default_elems.pop('logo')
27 | default_elems.pop('logoText')
28 |
29 | for ename, etype in default_elems.items():
30 | add_maybe(ename, etype, elems)
31 |
32 |
33 | def create_qml_defaults(out_files):
34 | for viewtype in ['system', 'detailed']:
35 | items = []
36 | extend_with_defaults(viewtype, items)
37 |
38 | lines = render_view_items(viewtype, None, items)
39 | import_lines = 5
40 | lines.insert(import_lines, " Rectangle { anchors.fill: parent; color: '#fff' }")
41 |
42 | filepath = os.path.join('__components', 'Missing' + viewtype.title() + 'View.qml')
43 | out_files[filepath] = '\n'.join(lines)
44 |
45 |
46 | def create_qml_platform_views(platform, out_files):
47 | for viewtype in platform['views']:
48 | if viewtype not in SUPPORTED_VIEWS:
49 | continue
50 |
51 | extend_with_defaults(viewtype, platform['views'][viewtype])
52 | lines = render_view_items(viewtype, platform['name'], platform['views'][viewtype])
53 |
54 | filepath = os.path.join(platform['name'], viewtype + '.qml')
55 | out_files[filepath] = '\n'.join(lines)
56 |
57 |
58 | def collect_fonts(ui_platforms):
59 | paths = []
60 | for platform in ui_platforms:
61 | for viewtype in platform['views']:
62 | for elem in platform['views'][viewtype]:
63 | if 'fontPath' in elem['params']:
64 | paths.append(elem['params']['fontPath'])
65 |
66 | paths = map(os.path.normpath, paths)
67 | paths = set(paths)
68 | paths = [{'name': font_path_to_name(p), 'path': p} for p in paths]
69 | return paths
70 |
71 |
72 | def collect_platform_logos(ui_platforms):
73 | logos = {}
74 | for platform in ui_platforms:
75 | if 'system' not in platform['views']:
76 | continue
77 | for elem in platform['views']['system']:
78 | if elem['type'] == 'image' and elem['name'] == 'logo' and 'path' in elem['params']:
79 | logos[platform['name']] = elem['params']['path']
80 | return logos
81 |
82 |
83 | def collect_platform_views(ui_platforms) -> Dict[str, List[str]]:
84 | views: Dict[str, List[str]] = {}
85 | for platform in ui_platforms:
86 | pname = platform['name']
87 | views[pname] = []
88 | for viewtype in platform['views']:
89 | views[pname].append(viewtype)
90 | return views
91 |
92 |
93 | def fill_templates(ui_platforms, out_files):
94 | fonts = collect_fonts(ui_platforms)
95 | platform_logos = collect_platform_logos(ui_platforms)
96 | platform_views = collect_platform_views(ui_platforms)
97 |
98 | def sorted_str(lines: List[str]) -> str:
99 | lines.sort()
100 | return '\n'.join(lines).strip()
101 |
102 | platform_logos_str = [f" ['{platform}', '{path}']," for platform, path in platform_logos.items()]
103 | platform_logos_str = sorted_str(platform_logos_str)
104 |
105 | platforms_w_system_str = [f" '{k}'," for k, views in platform_views.items() if 'system' in views]
106 | platforms_w_system_str = sorted_str(platforms_w_system_str)
107 |
108 | platforms_w_details_str = [f" '{k}'," for k, views in platform_views.items() if 'detailed' in views]
109 | platforms_w_details_str = sorted_str(platforms_w_details_str)
110 |
111 | fontlist_str = [f" FontLoader {{ id: {f['name']}; source: '{f['path']}' }}" for f in fonts]
112 | fontlist_str = sorted_str(fontlist_str)
113 |
114 | out_files['theme.qml'] = out_files['theme.qml'] \
115 | .replace('$$FONTLIST$$', fontlist_str)
116 |
117 | out_files['__components/DetailsView.qml'] = out_files['__components/DetailsView.qml'] \
118 | .replace('$$PLATFORMS_WITH_DETAILS$$', platforms_w_details_str)
119 |
120 | out_files['__components/SystemView.qml'] = out_files['__components/SystemView.qml'] \
121 | .replace('$$PLATFORM_LOGOS$$', platform_logos_str) \
122 | .replace('$$PLATFORMS_WITH_SYSTEMS$$', platforms_w_system_str)
123 |
124 |
125 | def create_qml(theme_name, ui_platforms) -> Dict[str, str]:
126 | out_files: Dict[str, str] = {}
127 |
128 | create_qml_defaults(out_files)
129 | for platform in ui_platforms:
130 | create_qml_platform_views(platform, out_files)
131 |
132 | for path, contents in STATIC_FILES.items():
133 | out_files[path] = contents.strip()
134 |
135 | fill_templates(ui_platforms, out_files)
136 |
137 | lines = [
138 | "name: " + theme_name,
139 | ]
140 | out_files['theme.cfg'] = '\n'.join(lines)
141 |
142 | return out_files
143 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/previews/neoretro-preview.mp4:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Retro-Devils/Devils-Box/bfcf892619b0e12169ffc294e2b4361fbc402311/helpers/pegasusfe/previews/neoretro-preview.mp4
--------------------------------------------------------------------------------
/helpers/pegasusfe/previews/place-holder:
--------------------------------------------------------------------------------
1 | WORK IN PROGRESS
2 |
--------------------------------------------------------------------------------
/helpers/pegasusfe/previews/switchOS-preview.mp4:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Retro-Devils/Devils-Box/bfcf892619b0e12169ffc294e2b4361fbc402311/helpers/pegasusfe/previews/switchOS-preview.mp4
--------------------------------------------------------------------------------
/scripts/BIOS.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | export NCURSES_NO_UTF8_ACS=1
3 |
4 | HOSTB="https://archive.org/download/devils-bios"
5 |
6 | clear
7 | wget -m -r -np -nH -nd -R "index.html" "${HOSTB}"/BIOS/ -P "$HOME"/RetroPie/BIOS/ -erobots=off
8 | rm -f "$HOME"/RetroPie/BIOS/index.html.tmp
9 |
10 |
--------------------------------------------------------------------------------
/scripts/GTA-VC-Setup.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | echo "Creating Foldes"
4 | sleep 3
5 | mkdir -p ~/RetroPie/roms/ports/gtavc
6 | mkdir -p ~/RetroPie/roms/ports/gtavc/GrandTheftAutoViceCity
7 |
8 | echo "Getting Files & Dependencies"
9 | sleep 3
10 | cd ~/RetroPie/roms/ports/gtavc
11 |
12 | git clone --recursive -b miami https://github.com/td512/re3.git reVC
13 |
14 | sudo apt install libopenal-dev
15 | sudo apt install libglew-dev
16 |
17 | wget https://github.com/glfw/glfw/archive/3.3.2.tar.gz
18 | tar xvf 3.3.2.tar.gz
19 | cd glfw-3.3.2/
20 | cmake .
21 | cmake -DBUILD_SHARED_LIBS=ON .
22 | sudo make install
23 |
24 | cd ~/RetroPie/roms/ports/gtavc
25 |
26 | sudo apt install libsndfile1-dev
27 | sudo apt install libmpg123-dev
28 |
29 |
30 | echo " Building and Installing ReVc"
31 |
32 | sleep 3
33 | wget https://github.com/premake/premake-core/archive/v5.0.0-alpha15.tar.gz
34 | tar xvf v5.0.0-alpha15.tar.gz
35 | cd premake-core-5.0.0-alpha15/
36 | make -f Bootstrap.mak linux
37 | cd bin/release
38 | cp premake5 ~/RetroPie/roms/ports/gtavc/reVC/premake5LinuxArm
39 |
40 | cd ~/RetroPie/roms/ports/gtavc/reVC
41 | ./premake5LinuxArm --with-librw gmake2
42 | cd build
43 | make config=release_linux-arm-librw_gl3_glfw-oal
44 |
45 | cd
46 | cp ~/RetroPie/roms/ports/gtavc/reVC/bin/linux-arm-librw_gl3_glfw-oal/Release/re3 ~/RetroPie/roms/ports/gtavc/GrandTheftAutoViceCity/
47 | cd ~/RetroPie/roms/ports/gtavc/reVC
48 | cp -r gamefiles/* ~/RetroPie/roms/ports/gtavc/GrandTheftAutoViceCity/
49 |
50 |
51 | echo "Creating & Settings Up Ports Entry"
52 | sleep 3
53 |
54 | cd ~/RetroPie/roms/ports
55 | touch reVC.sh
56 |
57 | sed '1 i #!/bin/bash' reVC.sh
58 | sed '2 i cd ~/RetroPie/roms/ports/gtavc/GrandTheftAutoViceCity' reVC.sh
59 | sed '3 i startx ./re3' reVC.sh
60 |
61 | chmod u+x reVC.sh
62 |
63 | print
64 | ptint Find the [VideoMode] and change it like so
65 | print
66 | print [VideoMode]
67 | print Depth = 32
68 | print Height = 480
69 | print Width = 640
70 | print Windowed = 0
71 | print
72 | print
73 |
74 | wait 15
75 |
76 | nano ~/RetroPie/roms/ports/gtavc/GrandTheftAutoViceCity/reVC.ini
77 |
78 | echo "Complete Testing Now"
79 | sleep 5
80 | cd ~/RetroPie/roms/ports/gtavc/GrandTheftAutoViceCity
81 | startx ./reVC
82 |
--------------------------------------------------------------------------------
/scripts/GTA3-Setup.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | echo "Making Sure Desktop Is Installed"
3 |
4 | if [ ! -f /usr/bin/startx ]; then
5 | dialog --sleep 1 --title "PIXEL DESKTOP NOT INSTALLED !! " --msgbox
6 | "INSTALLING NOW" 0 0
7 | cd $HOME/RetroPie-Setup
8 | sudo ./retropie_packages.sh raspbiantools lxde;
9 | else
10 |
11 | echo "Setting Up Folders"
12 | sleep 1
13 | mkdir -p ~/RetroPie/roms/ports/GTA3
14 |
15 |
16 | echo "Getting Files "
17 | sleep 3
18 | cd ~/RetroPie/roms/ports/GTA3
19 | git clone https://github.com/dmitry64/re3.git
20 |
21 |
22 | sudo apt install -y libopenal-dev
23 | sudo apt install -y libglew-dev
24 |
25 | wget https://github.com/glfw/glfw/archive/3.3.2.tar.gz
26 | tar xvf 3.3.2.tar.gz
27 | cd glfw-3.3.2/
28 | cmake .
29 | cmake -DBUILD_SHARED_LIBS=ON .
30 | sudo make install
31 |
32 | cd ~/RetroPie/roms/ports/GTA3
33 |
34 | sudo apt install -y libsndfile1-dev
35 | sudo apt install -y libmpg123-dev
36 |
37 |
38 | echo " Building and Installing Re3"
39 | cd ~/RetroPie/roms/ports/GTA3
40 |
41 | wget https://archive.org/download/grand-theft-auto-3_202111/GrandTheftAuto3.zip
42 | unzip GrandTheftAuto3.zip
43 |
44 | sudo rm -f GrandTheftAuto3.zip
45 |
46 |
47 | cd ~/RetroPie/roms/ports
48 |
49 | wget https://raw.githubusercontent.com/Retro-Devils/Devils-Box/main/files/ports/GTA3.sh
50 |
51 | chmod u+x GTA3.sh
52 |
53 |
54 | cd ~/RetroPie/roms/ports/GTA3/GrandTheftAuto3
55 | sudo rm -f re3.ini
56 | wget https://raw.githubusercontent.com/Retro-Devils/Devils-Box/main/files/ports/re3.ini
57 |
58 | echo "Complete Rebooting Now "
59 | sleep 5
60 | sudo reboot
61 |
62 | fi
63 |
--------------------------------------------------------------------------------
/scripts/Game-Fixes.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | if [ -f "/usr/local/bin/confirm" ]; then
4 | confirm=0
5 | else
6 | confirm=1
7 | fi
8 |
9 | function game_fixes-menu() {
10 | if [ $confirm = 1 ]; then
11 | dialog --sleep 1 --title "Devils Box ERROR !! " --msgbox "
12 | PLEASE Install/Update Devils Box" 0 0
13 | else
14 | local choice
15 |
16 | while true; do
17 | choice=$(dialog --backtitle "$BACKTITLE" --title " GAME TOOLS/FIXES MENU " \
18 | --ok-label Select --cancel-label Back \
19 | --menu "SELECT TOOL OR FIX AND PRESS A " 20 50 30 \
20 | + "--------WINE HELPER-------" \
21 | 1 "Age Of Empires No-CD Error Fix" \
22 | 2 "C&C Generals + Zero Hour Fix" \
23 | 3 "Heroes OF might And Magic Fix" \
24 | 4 "Silent Hill 4 Fix" \
25 | 5 "Spooky Castle Fix" \
26 | 6 "Unreal Anthology Fix" \
27 | + "----------GAME TOOLS----------" \
28 | 7 "Qjoypad Helper" \
29 | 2>&1 >/dev/tty)
30 |
31 | case "$choice" in
32 | +) none ;;
33 | 1) game_fix "Age-of-Empires-no-cd-error-fix.reg" ;;
34 | 2) game_fix "Command-And-Conquer-fix.reg" ;;
35 | 3) game_fix "Heroes-of-Might-and-Magic-fix.reg" ;;
36 | 4) game_fix "Silent-Hill-4-The-Room-Fix.reg" ;;
37 | 5) castle-fix ;;
38 | 6) game_fix "Unreal-Anthology-fix.reg" ;;
39 | 7) download_qjoy ;;
40 | *) break ;;
41 | esac
42 | done
43 | fi
44 | }
45 | #--------Spooky Castle Fix-------#
46 | function castle-fix() {
47 | wget https://raw.githubusercontent.com/Retro-Devils/Devils-Extra/main/files/emu.cfg/wine/Spooky-Castle.sh -P $HOME/.qjopyad/
48 | }
49 | #----------------------#
50 | # WINE GAME FIXES #
51 | #----------------------#
52 | function game_fix(){
53 | cd ~/
54 | wget https://github.com/ALLRiPPED/Devils-Wine-Updates/raw/main/reg-patches/${1}
55 | wine reg import ${1}
56 | sleep 1
57 | rm -f ${1}
58 | }
59 |
60 | #-------------------#
61 | # GAME TOOLS #
62 | #-------------------#
63 | function download_qjoy() {
64 | if [ $NETCHECK = 1 ]; then
65 | dialog --sleep 1 --title "OFFLINE ERROR!!" --msgbox "
66 | Offline ... Downloads not Availible Please Connect To Internet!" 0 0
67 | else
68 | dialog --sleep 1 --title "QJOYPAD INFO" --msgbox "
69 | ---------------ATTENTION-----------
70 | QJOYPAD MAPS KEYBOARD TO CONTROLLER
71 | QJOYPAD IS USED FOR WINE/MUGEN
72 | THIS DOWNLOADS PREMADE LAYOUTS
73 | WILL OVERWRITE LAYOUTS WITH SAME NAME" 0 0
74 | local choice
75 |
76 | while true; do
77 | choice=$(dialog --backtitle "$BACKTITLE" --title " QJOY DOWNLOADER " \
78 | --ok-label Select --cancel-label Back \
79 | --menu "Select Type Of Controller" 30 50 40 \
80 | 1 "Arcade Controller 11 Layouts" \
81 | 2 "PS3 Controller 4 Layouts" \
82 | + "---------------Info---------------" \
83 | 3 "----Arcade Mapped Games List------" \
84 | 4 "----PS3 Mapped Games List---------" \
85 | 2>&1 > /dev/tty)
86 |
87 | case "$choice" in
88 | 1) qj_arcade ;;
89 | 2) qj_ps3 ;;
90 | +) none ;;
91 | 3) qarcade_info ;;
92 | 4) qps3-info ;;
93 | *) break ;;
94 | esac
95 | done
96 | fi
97 | }
98 |
99 | #-----------------------#
100 | # QJ FUNCTIONS #
101 | #-----------------------#
102 | function qj_arcade() {
103 | clear
104 | wget -m -r -np -nH -nd -R "index.html" https://archive.org/download/devils-updates/qjoy-arcade.zip -P "$HOME"/.qjoypad3 -erobots=off
105 | unzip -o "$HOME"/.qjoypad3/qjoy-arcade.zip -d "$HOME"/.qjoypad3
106 | sudo rm -R "$HOME"/.qjoypad3/qjoy-ps3.zip
107 | }
108 |
109 | function qj_ps3() {
110 | clear
111 | wget -m -r -np -nH -nd -R "index.html" https://archive.org/download/devils-updates/qjoy-ps3.zip -P "$HOME"/.qjoypad3 -erobots=off
112 | unzip -o "$HOME"/.qjoypad3/qjoy-ps3.zip -d "$HOME"/.qjoypad3/
113 | sudo rm -R "$HOME"/.qjoypad3/qjoy-ps3.zip
114 | }
115 |
116 | #-------------------------#
117 | # Q INFO FUNCTIONS #
118 | #-------------------------#
119 | function qarcade_info() {
120 | dialog --sleep 1 --title "Mapped Games" --msgbox "
121 | ARCADE MAPPED GAMES
122 | -Angry Birds Seasons
123 | -Baldurs Gate
124 | -Cuphead
125 | -Hydro Thunder
126 | -Mugen
127 | -Simpsons Hit & Run
128 | -Skifree
129 | -Spooky Castle
130 | -Sugar Rush
131 | -TMNT
132 | -Terrordome" 0 0
133 | }
134 | function qps3_info() {
135 | dialog --sleep 1 --title "Mapped Games" --msgbox "
136 | PS3 MAPPED GAMES
137 | -Baldurs Gate
138 | -Spooky Castle
139 | -Mugen
140 | -Skifree" 0 0
141 | }
142 |
143 | game_fixes-menu
144 |
--------------------------------------------------------------------------------
/scripts/Hacks.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | DB_SETTINGS="$HOME/.devilsbox/db_settings.ini"
3 | #-----------------DEVILS-GAME HOSTS---------------------#
4 | HOST1="https://archive.org/download/the-devils-box-alt"
5 | HOST2="https://archive.org/download/the-devils-box_202112"
6 | HOST3="https://archive.org/download/devils-bios"
7 | HOST4="https://archive.org/download/devils-wine_20221218"
8 | HOST5="https://archive.org/download/devils-dos"
9 |
10 | #---------------NON-DEVILS-HOSTS-----------------------#
11 | HOST6="https://archive.org/download/PSP_US_Arquivista"
12 | HOST7="https://archive.org/download/secretofmanausamsu1hackbydarkshockv1.0"
13 |
14 | #--------PICK & CHOOSE HOST-----#
15 | PC_HOST="https://archive.org/download/the-devils-box-alt"
16 |
17 | if grep 'intro_splash_flag=1' "$DB_SETTINGS" > /dev/null 2>&1; then
18 | omxplayer "$HOME"/Devils-Box/files/videos/hack-packs.mp4 > /dev/null 2>&1
19 | sleep 1
20 | dialog --sleep 1 --title "HACKS PACKS INFO" --msgbox "
21 | <-------------WELCOME--------------->
22 | WHATS THIS DO?
23 | -DOWNLOADS GAME PACKS TO CORRECT FOLDERS
24 |
25 | F.A.Q
26 | WILL THIS OVERWRITE MY GAMES?
27 | --NOPE
28 |
29 | CAN I STOP MIDWAY THRU?
30 | --SURE PRESS CONTROL+C
31 | WILL IT KEEP MY PROGRESS?
32 | --YES TO LAST DOWNLOADED GAME" 0 0
33 | fi
34 |
35 | if [ -f "/usr/local/bin/confirm" ]; then
36 | confirm=0
37 | else
38 | confirm=1
39 | fi
40 |
41 | function hacks-menu() {
42 | if [ $confirm = 1 ]; then
43 | dialog --sleep 1 --title "Devils Box ERROR !! " --msgbox "
44 | PLEASE Install/Update Devils Box" 0 0
45 | else
46 | local choice
47 |
48 | while true; do
49 | choice=$(dialog --backtitle "$BACKTITLE" --title "HACKED PACKS DOWNLOAD MENU " \
50 | --ok-button Download --cancel-button Main-Menu \
51 | --menu " PRESS A/ENTER TO DOWNLOAD PACK" 30 70 50 \
52 | + "<->CONSOLE NAME<--------------------->SIZE<---># OF GAMES " \
53 | 1 "Gameboy Advance Hacks 195MB 26 GAMES " \
54 | 2 "Gameboy Hacks 4MB 19 GAMES " \
55 | 3 "Genesis Hacks 197MB 191 GAMES " \
56 | 4 "Gamegear Hacks 1MB 4 GAMES " \
57 | 5 "NES Hacks 962KB 6 GAMES " \
58 | 6 "SNES Hacks 40MB 37 GAMES " \
59 | + "<->ALL IN ONE CLICK <------------------------------------>" \
60 | 7 "Apply Configs & Download All Hack Packs " \
61 | + "<->TOOLS------------------------------------------------- " \
62 | 8 "Apply/Update Hacks Configs 6 Configs " \
63 | 9 "GET ES-SYSTEMS CONFIG 1 File " \
64 | 10 "PRESS HERE FOR HELP WITH HACKS DOWNLOADER" \
65 | 2>&1 >/dev/tty)
66 |
67 | case "$choice" in
68 | +) none ;;
69 | 1) download-hacks "gbah" ;;
70 | 2) download-hacks "gbh" ;;
71 | 3) download-hacks "genh" ;;
72 | 4) download-hacks "ggh" ;;
73 | 5) download-hacks "nesh" ;;
74 | 6) download-hacks "snesh" ;;
75 | 7) all ;;
76 | 8) hacks-config ;;
77 | 9) get-config ;;
78 | 10) help-me ;;
79 | *) break ;;
80 | esac
81 | done
82 | fi
83 | }
84 |
85 | function all() {
86 | hacks-config
87 | download hacks "gba"
88 | download hacks "gbah"
89 | download hacks "snesh"
90 | download hacks "genh"
91 | download-hacks "ggh"
92 | }
93 |
94 | function hacks-config() {
95 | clear
96 | sleep 2
97 | echo ${bld}$(tput setaf 1)"Copying Your/Default Configs"
98 | sleep 2
99 | cp -r /opt/retropie/configs/gba /opt/retropie/configs/gbah
100 | cp -r /opt/retropie/configs/gb /opt/retropie/configs/gbh
101 | cp -r /opt/retropie/configs/megadrive /opt/retropie/configs/genh
102 | cp -r /opt/retropie/configs/gamegear /opt/retropie/configs/ggh
103 | cp -r /opt/retropie/configs/nes /opt/retropie/configs/nesh
104 | cp -r /opt/retropie/configs/snes /opt/retropie/configs/snesh
105 | sleep 2
106 | echo "Making Directories For Hacks"
107 | sleep 2
108 | mkdir "$HOME"/RetroPie/roms/gbah
109 | mkdir "$HOME"/RetroPie/roms/gbh
110 | mkdir "$HOME"/RetroPie/roms/genh
111 | mkdir "$HOME"/RetroPie/roms/ggh
112 | mkdir "$HOME"/RetroPie/roms/nesh
113 | mkdir "$HOME"/RetroPie/roms/snesh
114 | }
115 |
116 | function help-me() {
117 | dialog --sleep 1 --title "HACKS HELP MESSAGE" --msgbox "
118 | <-------------FAQ & HELP----------------->
119 | GAMES DONT SHOW?
120 | YOUR ES SYSTEMS PROBABLY DOESNT HAVE HACKS.
121 |
122 | WHAT CAN I DO?
123 | YOU CAN GO BACK AND PRESS GET ES-SYSTEMS CONFIG
124 | OR
125 | YOU CAN MAUNAULLY ADD HACKS. HOW ?
126 | GO TO /home/pi/.emulationstation/es_systems.cfg
127 | EDIT THIS FILE WITH TEXT EDITOR
128 | COPY GB AND ADD HACKS AT THE END" 0 0
129 | }
130 |
131 | function download-hacks() {
132 | if [ ! -d "$HOME/RetroPie/roms/"${1}"/" ]; then dialog --sleep 1 --title ""${1}" FOLDER MISSING!" --msgbox "Please Apply Hacks Config" 6 40;
133 | else
134 | clear
135 | wget -m -r -np -nH -nd -R "index.html" "${HOST1}"/"${1}"/ -P "$HOME"/RetroPie/roms/"${1}" -erobots=off
136 | rm -f "$HOME"/RetroPie/roms/"${1}"/index.html.tmp
137 | fi
138 | }
139 |
140 | function get-config() {
141 | dialog --sleep 1 --title "GET ES SYSTEMS INFO" --msgbox "
142 | <----> ATTENTION <---->
143 | THIS WILL OVERWRITE OR ES-SYSTEMS.CFG
144 | THIS WILL ALSO BACKUP ES-SYSTEMS TO .../.emulationstation/backups/b4hacks.cfg" 0 0
145 | mv "$HOME"/.emulationstation/es_systems.cfg -f "$HOME"/.emulationstation/backups/b4hacks.cfg
146 | wget https://archive.org/download/devils-updates/es_systems.cfg -P "$HOME"/.emulationstation/
147 | }
148 |
149 | hacks-menu
150 |
--------------------------------------------------------------------------------
/scripts/MSU1-Setup.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | dialog --sleep 1 --title "SNES MSU1 SETUP" --msgbox "
3 | <---------------WHATS THIS DO?-------------------->
4 | - COPIES YOUR SNES CONFIGS TO NEW SNESMSU1 FOLDER
5 | - MAKES SURE YOU HAVE CORRECT EMU INSTALLED
6 | - DOWNLOADS A FEW NEEDED FILES FOR MSU1" 0 0
7 | clear
8 | echo "<----Checking For Emu Now---->"
9 | sleep 2
10 | if [ ! -d /opt/retropie/libretrocores/lr-snes9x ]; then
11 | dialog --sleep 1 --title "LR-SNES9X NOT INSTALLED !! " --msgbox "
12 | Installing for you" 0 0
13 | sudo ./retropie_packages.sh lr-snes9x;
14 | else
15 | echo "<----Snes9X Installed Begining Setup Now---->"
16 | sleep 2
17 | mkdir "$HOME"/RetroPie/roms/snesmsu1
18 | sudo cp -r /opt/retropie/configs/snes -d /opt/retropie/configs/snesmsu1
19 | wget https://archive.org/download/DB-EMUS/RetroArch/SNES-MSU1/emulators.cfg -P /opt/retropie/configs/snesmsu1/
20 | dialog --sleep 1 --title "MSU1 SETUP COMPLETE" --msgbox "
21 | <------------>ATTENTION<-----!!!-------->ATTENTION<------!!!------>ATTENTION<----------->ATTENTION<------------->
22 | For this to work you need to edit es system comfig
23 | Located at /home/pi/.emulationstation/es_system.cfg
24 | Please add the following
25 |
26 | snesmsu1
27 | Super Nintendo MSU1
28 | /home/pi/RetroPie/roms/snesmsu1
29 | .7z .bin .bs .smc .sfc .fig .swc .mgd .zip .7Z .BIN .BS .SMC .SFC .FIG .SWC .MGD .ZIP
30 | /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ snesmsu1 %ROM%
31 | snes
32 | snesmsu1
33 |
34 |
35 | ADDITIONAL WHEN YOU FIRST FIRST MSU1 GAME
36 | - Open Up RetroPie Runcommand by pressing while game loads
37 | - Set Default Emu for ALL MSU1 to LR-SNES9X" 0 0
38 | fi
39 |
40 |
--------------------------------------------------------------------------------
/scripts/PI-0/PI-0-Artwork.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | DB_SETTINGS="$HOME/.devilsbox/db_settings.ini"
3 | #-----------INTRO VIDEO-----------#
4 | clear
5 | if grep 'intro_splash_flag=1' "$DB_SETTINGS" > /dev/null 2>&1; then
6 | omxplayer "$HOME"/Devils-Box/files/videos/art-packs.mp4 > /dev/null 2>&1
7 | sleep 1
8 | dialog --sleep 1 --title "ARTWORK PACKS INFO" --msgbox "
9 | <-------------WELCOME--------------->
10 | WHATS THIS DO?
11 | -DOWNLOADS ARTWORK PACKS
12 | -TRYS TO SCRAPE AFTERWARDS
13 | F.A.Q
14 | WHAT GAMES IS THIS ART FOR?
15 | THE CONSOLES/GAMES IN DEVILS BOX
16 | WILL THIS WORK WITH MY GAMES?
17 | UNLIKELY. PLEASE USE SCRAPPER" 0 0
18 | fi
19 |
20 | #--------ART HOSTS----------#
21 | ART_HOST="https://archive.org/download/devils-box-media-alt"
22 | ART_HOST2="https://github.com/Retro-Devils-Media"
23 | #ART_HOST3=""
24 | #ART_HOST4=""
25 |
26 |
27 | if [ -f "/usr/local/bin/confirm" ]; then
28 | confirm=0
29 | else
30 | confirm=1
31 | fi
32 |
33 | function artwork-menu() {
34 | if [ $confirm = 1 ]; then
35 | dialog --sleep 1 --title "Devils Box ERROR !! " --msgbox "
36 | PLEASE Install/Update Devils Box" 0 0
37 | else
38 | local choice
39 |
40 | while true; do
41 | choice=$(dialog --backtitle "$BACKTITLE" --title " ARTWORK DOWNLOAD MENU " \
42 | --ok-label Download --cancel-label Main-Menu \
43 | --menu "[*] MEANS PACK INCLUDES..........[ ] MEANS PACK DOESNT INCLUDE
44 | -PRESS A/ENTER TO DOWNLOAD.......***MEANS COMING SOON" 30 70 50 \
45 | - "<----------------Consoles-Regular-Artwork----------------->" \
46 | 1 "Atari800 Artwork [*]box [ ]cart [*]snap [ ]wheel" \
47 | 2 "Atari2600 Artwork [*]box [*]cart [*]snap [*]wheel" \
48 | 3 "Atari5200 Artwork [*]box [*]cart [*]snap [*]wheel" \
49 | 4 "Atari7800 Artwork [*]box [*]cart [*]snap [*]wheel" \
50 | 5 "Dragon32 Artwork [*]box [ ]cart [*]snap [ ]wheel" \
51 | 6 "Game & Watch Artwork [*]box [*]cart [*]snap [*]wheel" \
52 | 7 "Gameboy Artwork [*]box [*]cart [*]snap [*]wheel" \
53 | 8 "GBA Artwork [*]box [*]cart [*]snap [*]wheel" \
54 | 9 "GBC Artwork [*]box [*]cart [*]snap [*]wheel" \
55 | 10 "Gamegear Artwork [*]box [*]cart [*]snap [ ]wheel" \
56 | 11 "Mastersystem Artwork [*]box [*]cart [*]snap [*]wheel" \
57 | 12 "Megadrive Artwork [*]box [*]cart [*]snap [*]wheel" \
58 | 13 "Megadrive-Japan Artwork [*]box [*]cart [*]snap [*]wheel" \
59 | 14 "NeoGeo Artwork [*]box [*]cart [*]snap [*]wheel" \
60 | 15 "NES Artwork [*]box [ ]cart [*]snap [*]wheel" \
61 | 16 "NGPC Artwork [*]box [ ]cart [*]snap [ ]wheel" \
62 | 17 "Sega32x Artwork [*]box [*]cart [*]snap [*]wheel" \
63 | 18 "SegaCD Artwork [*]box [*]cart [*]snap [*]wheel" \
64 | 19 "Super Famicon Artwork [*]box [*]cart [*]snap [*]wheel" \
65 | 20 "SG-1000 Artwork [*]box [*]cart [*]snap [*]wheel" \
66 | 21 "SNES Artwork [*]box [*]cart [*]snap [ ]wheel" \
67 | 22 "TurboGrafx 16 Artwork [*]box [*]cart [*]snap [*]wheel" \
68 | + "<---------------Consoles-Hacks-Artwork-------------------->" \
69 | 23 "GBA Hacks Artwork [*]box [*]cart [*]snap [*]wheel" \
70 | 24 "GameBoy Hacks Artwork [*]box [*]cart [*]snap [*]wheel" \
71 | 25 "Genesis Hacks Artwork [*]box [*]cart [*]snap [*]wheel" \
72 | 26 "Gamegear Hacks Artwork [*]box [*]cart [*]snap [*]wheel" \
73 | 27 "NES Hacks Artwork [*]box [*]cart [*]snap [*]wheel" \
74 | 28 "SNES Hacks Artwork [*]box [*]cart [*]snap [*]wheel" \
75 | 2<&1 >/dev/tty)
76 |
77 | case "$choice" in
78 | 1) download-art "atari800" ;;
79 | 2) download-art "atari2600" "lr-stella" ;;
80 | 3) download-art "atari5200" "lr-atari800" ;;
81 | 4) download-art"atari7800" "lr-prosystem" ;;
82 | 5) download-art "dragon32" "xroar" ;;
83 | 6) download-art "gameandwatch" ;;
84 | 7) download-art "gb" ;;
85 | 8) download-art "gba" "lr-mgba" ;;
86 | 9) download-art "gbc" ;;
87 | 10) download-art "gamegear" "lr-genesis-plus-gx" ;;
88 | 11) download-art "mastersystem" ;;
89 | 12) download-art "megadrive" "lr-genesis-plus-gx" ;;
90 | 13) megadrive-japan-art ;;
91 | 14) download-art "neogeo" ;;
92 | 15) download-art "nes" ;;
93 | 16) download-art "ngpc" ;;
94 | 17) download-art "sega32x" ;;
95 | 18) download-art "segacd" ;;
96 | 19) download-art "sfc" ;;
97 | 20) download-art "sg-1000" ;;
98 | 21) download-art "snes" ;;
99 | 22) download-art "tg16" ;;
100 | 23) download-art "gbah" ;;
101 | 24) download-art "gbh" ;;
102 | 25) download-art "genh" ;;
103 | 26) download-art "ggh" ;;
104 | 27) download-art "nesh" ;;
105 | 28) download-art "snesh" ;;
106 | -) nono ;;
107 | +) none ;;
108 | *) break ;;
109 | esac
110 | done
111 | fi
112 | }
113 |
114 | function download-art() {
115 | if [ ! -d "$HOME/RetroPie/roms/"${1}"/" ]; then choice=$(dialog --backtitle "$BACKTITLE" --title " EMU IS MISSING " \
116 | --ok-label Download --cancel-label Skip \
117 | --menu "DO YOU WANT TO INSTALL EMU?" 30 70 50 \
118 | 1 "YES" \
119 | 2 "NO" \
120 | 2<&1 >/dev/tty)
121 | case "$choice" in
122 | 1) cd $HOME/RetroPie-Setup && sudo ./retropie_packages.sh "$2" ;;
123 | 2) artwork-menu ;;
124 | *) return ;;
125 | esac
126 | else
127 | clear
128 | cd "$HOME/RetroPie/roms/"${1}"/"
129 | git init
130 | git remote add origin "${ART_HOST2}/${1}.git"
131 | git fetch
132 | git pull origin main
133 | rm -fr "$HOME"/RetroPie/roms/"${1}"/.git
134 | fi
135 | }
136 |
137 | function saturn-japan-art() {
138 | if [ ! -d "$HOME/RetroPie/roms/saturn/" ]; then choice=$(dialog --backtitle "$BACKTITLE" --title " EMU IS MISSING " \
139 | --ok-label Download --cancel-label Skip \
140 | --menu "DO YOU WANT TO INSTALL EMU?" 30 70 50 \
141 | 1 "YES" \
142 | 2 "NO" \
143 | 2<&1 >/dev/tty)
144 | case "$choice" in
145 | 1) cd $HOME/RetroPie-Setup && sudo ./retropie_packages.sh "$2" ;;
146 | 2) artwork-menu ;;
147 | *) return ;;
148 | esac
149 | elseclear
150 | cd "$HOME"/RetroPie/roms/saturn/japan
151 | git init
152 | git remote add origin "${ART_HOST2}/saturn-japan.git"
153 | git fetch
154 | git pull origin main
155 | rm -fr "$HOME"/RetroPie/roms/"${1}"/.git
156 | fi
157 | }
158 |
159 | function megadrive-japan-art() {
160 | if [ ! -d "$HOME/RetroPie/roms/megadrive/" ]; then choice=$(dialog --backtitle "$BACKTITLE" --title " EMU IS MISSING " \
161 | --ok-label Download --cancel-label Skip \
162 | --menu "DO YOU WANT TO INSTALL EMU?" 30 70 50 \
163 | 1 "YES" \
164 | 2 "NO" \
165 | 2<&1 >/dev/tty)
166 | case "$choice" in
167 | 1) cd $HOME/RetroPie-Setup && sudo ./retropie_packages.sh "$2" ;;
168 | 2) artwork-menu ;;
169 | *) return ;;
170 | esac
171 | elseclear
172 | cd "$HOME"/RetroPie/roms/megadrive/japan
173 | git init
174 | git remote add origin "${ART_HOST2}/megadrive-japan.git"
175 | git fetch
176 | git pull origin main
177 | rm -fr "$HOME"/RetroPie/roms/"${1}"/.git
178 | fi
179 | }
180 |
181 | artwork-menu
182 |
--------------------------------------------------------------------------------
/scripts/PI-0/PI-0-Homebrews.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | DB_SETTINGS="$HOME/.devilsbox/db_settings.ini"
3 | clear
4 | #-----------------DEVILS-GAME HOSTS---------------------#
5 | HOST1="https://archive.org/download/the-devils-box-alt"
6 | HOST2="https://archive.org/download/the-devils-box_202112"
7 | HOST3="https://archive.org/download/devils-bios"
8 | HOST4="https://archive.org/download/devils-wine_20221218"
9 | HOST5="https://archive.org/download/devils-dos"
10 | HOST8="https://archive.org/download/the-devils-box-alt/model3"
11 | HOST9="https://archive.org/download/rpi-homebrews"
12 |
13 | #---------------NON-DEVILS-HOSTS-----------------------#
14 | HOST6="https://archive.org/download/PSP_US_Arquivista"
15 | HOST7="https://archive.org/download/secretofmanausamsu1hackbydarkshockv1.0"
16 |
17 | #--------PICK & CHOOSE HOST-----#
18 | PC_HOST="https://archive.org/download/the-devils-box-alt"
19 |
20 | if grep 'intro_splash_flag=1' "$DB_SETTINGS" > /dev/null 2>&1; then
21 | omxplayer "$HOME"/Devils-Box/files/videos/translations-packs.mp4 > /dev/null 2>&1
22 | sleep 1
23 | dialog --sleep 1 --title "HOMEBREW PACKS INFO" --msgbox "
24 | <-------------WELCOME--------------->
25 | WHATS A HOMEBREW?
26 | A HOMEBREW IS A GAME MADE BY SOMEONE NOT A COMPANY.
27 |
28 | CAN I STOP DOWNLOAD MIDWAY THRU?
29 | --SURE PRESS CONTROL+C
30 | WILL IT KEEP MY PROGRESS?
31 | --YES TO LAST DOWNLOADED GAME" 0 0
32 | fi
33 |
34 | if [ -f "/usr/local/bin/confirm" ]; then
35 | confirm=0
36 | else
37 | confirm=1
38 | fi
39 |
40 | function Homebrew-Menu() {
41 | if [ $confirm = 1 ]; then
42 | dialog --sleep 1 --title "Devils Box ERROR !! " --msgbox "
43 | PLEASE Install/Update Devils Box" 0 0
44 | else
45 | while true; do
46 | local choice
47 | choice=$(dialog --backtitle "$BACKTITLE" --title " HOMEBREWS DOWNLOAD MENU" \
48 | --ok-label Download --cancel-label Main-Menu \
49 | --menu "PRESS A/ENTER TO DOWNLOAD PACK" 30 70 50 \
50 | + "<->CONSOLE NAME<-----------------># OF GAMES" \
51 | 1 "Atari2600 HOMEBREWS 425 GAMES" \
52 | 2 "Gameboy Advance HOMEBREWS 1 GAMES" \
53 | 3 "Gameboy Color HOMEBREWS 41 GAMES" \
54 | 4 "Gameboy HOMEBREWS 47 GAMES" \
55 | 5 "Genesis HOMEBREWS 9 GAMES" \
56 | 6 "Gamegear HOMEBREWS 2 GAMES" \
57 | 7 "NES HOMEBREWS 143 GAMES" \
58 | 8 "SNES HOMEBREWS 33 GAMES" \
59 | + "<--------->LAST UPDATED 9/30/22<---------->" \
60 | + "<->Credits to Official Rom Hack Database<->" \
61 | 2>&1 >/dev/tty)
62 |
63 | case "$choice" in
64 | 1) homebrew-packs "atari2600" "Atari-2600-Homebrews" ;;
65 | 2) homebrew-packs "gba" "Gameboy-Advance-Homebrews" ;;
66 | 3) homebrew-packs "gbc" "Gameboy-Color-Homebrews" ;;
67 | 4) homebrew-packs "gb" "Gameboy-Homebrews" ;;
68 | 5) homebrew-packs "genesis" "Gamegear-Homebrews" ;;
69 | 6) homebrew-packs "gamegear" "Genesis-Homebrews" ;;
70 | 7) homebrew-packs "nes" "NES-Homebrews" ;;
71 | 8) homebrew-packs "snes" "SNES-Homebrews" ;;
72 | +) none ;;
73 | *) break ;;
74 | esac
75 | done
76 | fi
77 | }
78 |
79 | function homebrew-packs() {
80 | if [ ! -d "$HOME/RetroPie/roms/"${1}"/" ]; then choice=$(dialog --backtitle "$BACKTITLE" --title " EMU IS MISSING " \
81 | --ok-label Download --cancel-label Skip \
82 | --menu "DO YOU WANT TO INSTALL "${3}"?" 30 70 50 \
83 | 1 "YES" \
84 | 2 "NO" \
85 | 2<&1 >/dev/tty)
86 | case "$choice" in
87 | 1) cd $HOME/RetroPie-Setup && sudo ./retropie_packages.sh "$3" ;;
88 | 2) Homebrew-Menu ;;
89 | *) return ;;
90 | esac
91 | else
92 | clear
93 | wget -m -r -np -nH -nd -R "index.html" "${HOST9}"/"${2}"/ -P "$HOME"/RetroPie/roms/"${1}"/Homebrews -erobots=off
94 | rm -f "$HOME"/RetroPie/roms/"${1}"/Homebrews/index.html.tmp
95 | fi
96 | }
97 |
98 | Homebrew-Menu
99 |
--------------------------------------------------------------------------------
/scripts/PI-0/PI-0-Packs.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | DB_SETTINGS="$HOME/.devilsbox/db_settings.ini"
3 | clear
4 | #-----------------DEVILS-GAME HOSTS---------------------#
5 | HOST1="https://archive.org/download/the-devils-box-alt"
6 | HOST2="https://archive.org/download/the-devils-box_202112"
7 | HOST3="https://archive.org/download/devils-bios"
8 | HOST4="https://archive.org/download/devils-wine_20221218"
9 | HOST5="https://archive.org/download/devils-dos"
10 | HOST8="https://archive.org/download/the-devils-box-alt/model3"
11 |
12 | #---------------NON-DEVILS-HOSTS-----------------------#
13 | HOST6="https://archive.org/download/PSP_US_Arquivista"
14 | HOST7="https://archive.org/download/secretofmanausamsu1hackbydarkshockv1.0"
15 |
16 | #--------PICK & CHOOSE HOST-----#
17 | PC_HOST="https://archive.org/download/the-devils-box-alt"
18 |
19 |
20 | if grep 'intro_splash_flag=1' "$DB_SETTINGS" > /dev/null 2>&1; then
21 | omxplayer "$HOME"/Devils-Box/files/videos/console-packs.mp4 > /dev/null 2>&1
22 | fi
23 | if [ -f "/usr/local/bin/confirm" ]; then
24 | confirm=0
25 | else
26 | confirm=1
27 | fi
28 |
29 | function Consoles-Menu() {
30 | if [ $confirm = 1 ]; then
31 | dialog --sleep 1 --title "Devils Box ERROR !! " --msgbox "
32 | PLEASE Install/Update Devils Box" 0 0
33 | else
34 | while true; do
35 | local choice
36 | choice=$(dialog --backtitle "$BACKTITLE" --title " CONSOLES DOWNLOAD MENU" \
37 | --ok-label Download --cancel-label Main-Menu \
38 | --menu "PRESS A/ENTER TO DOWNLOAD PACK..........****MEANS COMING SOON" 30 70 50 \
39 | + "<->CONSOLE NAME<---------------->SIZE<----># OF GAMES" \
40 | 1 "Atari800 5.21MB 100 GAMES" \
41 | 2 "Atari2600 2.6MB 615 GAMES" \
42 | 3 "Atari5200 928KB 81 GAMES" \
43 | 4 "Atari7800 2MB 54 GAMES" \
44 | 5 "Dragon32 897KB 51 GAMES" \
45 | 6 "Game and Watch 48MB 53 GAMES" \
46 | 7 "Gameboy 42MB 565 GAMES" \
47 | 8 "Gameboy Advance 3.4GB 1006 GAMES" \
48 | 9 "Gameboy Color 232MB 538 GAMES" \
49 | 10 "Gamegear 42MB 249 GAMES" \
50 | 11 "Mastersystem 35MB 280 GAMES" \
51 | 12 "Genesis/Megadrive 409MB 561 GAMES" \
52 | 13 "Genesis/Megadrive-Japan 149MB 278 GAMES" \
53 | 14 "NeoGeo 2.3GB 142 GAMES" \
54 | 15 "Neo Geo Pocket Color 21MB 40 GAMES" \
55 | 16 "Nintendo Entertainment System 100MB 869 GAMES" \
56 | 17 "Sega32x 63MB 37 GAMES" \
57 | 18 "SegaCD 11GB 52 GAMES" \
58 | 19 "Super Famicon 475MB 487 GAMES" \
59 | 20 "SG-1000 1MB 68 GAMES" \
60 | 21 "SNES 508MB 603 GAMES" \
61 | 22 "SNES MSU1 ??MB ?? GAMES" \
62 | 23 "Turbo Graffix 16/PC Engine 20MB 94 GAMES" \
63 | 2>&1 >/dev/tty)
64 |
65 | case "$choice" in
66 | 1) download-packs "atari800" "lr-atari800" ;;
67 | 2) download-packs "atari2600" "lr-stella" ;;
68 | 3) download-packs "atari5200" "lr-atari800" ;;
69 | 4) download-packs "atari7800" "lr-prosystem";;
70 | 5) download-packs "dragon32" "xroar" ;;
71 | 6) download-packs "gameandwatch" "lr-gw" ;;
72 | 7) download-packs "gb" "lr-mgba" ;;
73 | 8) download-packs "gba" "lr-mgba" ;;
74 | 9) download-packs "gbc" "lr-gambatte" ;;
75 | 10) download-packs "gamegear" "lr-genesis-plus-gx" ;;
76 | 11) download-packs "mastersystem" "lr-picodrive" ;;
77 | 12) download-packs "megadrive" "lr-genesis-plus-gx" ;;
78 | 13) megadrive-japan ;;
79 | 14) download-packs "neogeo" ;;
80 | 15) download-packs "ngpc" "lr-beetle-ngp" ;;
81 | 16) download-packs "nes" "lr-nestopia" ;;
82 | 17) download-packs "sega32x" "lr-picodrive" ;;
83 | 18) download-packs "segacd" "lr-picodrive" ;;
84 | 19) download-packs "sfc" ;;
85 | 20) download-packs "sg-1000" "lr-genesis-plus-gx" ;;
86 | 21) download-packs "snes" "lr-snes9x" ;;
87 | 22) msu1-pack ;;
88 | 23) tg16-fix ;;
89 | +) none ;;
90 | *) break ;;
91 | esac
92 | done
93 | fi
94 | }
95 |
96 | #----------------------#
97 | # PSP GAMES FUNCTIONS #
98 | #----------------------#
99 | function psp-pack() {
100 | if [ ! -d "$HOME"/RetroPie/roms/psp/ ]; then dialog --sleep 1 --title "PSP FOLDER MISSING!" --msgbox "Please Install It's Emulator First" 6 40;
101 | else
102 | clear
103 | wget -m -r -np -nH -nd -R "index.html" "${HOST6}"/ -P "$HOME"/RetroPie/roms/psp -erobots=off
104 | rm -f "$HOME"/RetroPie/roms/psp/index.html.tmp
105 | fi
106 | }
107 |
108 | function model-3() {
109 | if [ ! -d "$HOME"/RetroPie/roms/model3/ ]; then dialog --sleep 1 --title "MODEL 3 FOLDER MISSING!" --msgbox "Please Install It's Emulator First" 6 40;
110 | else
111 | clear
112 | wget -m -r -np -nH -nd -R "index.html" "${HOST8}"/ -P "$HOME"/RetroPie/roms/model3 -erobots=off
113 | rm -f "$HOME"/RetroPie/roms/model3/index.html.tmp
114 | fi
115 | }
116 |
117 | function msu1-pack() {
118 | if [ ! -d "$HOME"/RetroPie/roms/snesmsu1/ ]; then dialog --sleep 1 --title "MSU1 FOLDER MISSING!" --msgbox "Please Run MSU1 Setup First" 6 40;
119 | else
120 | clear
121 | wget -m -r -np -nH -nd -R "index.html" "${HOST7}"/ -P "$HOME"/RetroPie/roms/snesmsu1 -erobots=off
122 | rm -f "$HOME"/RetroPie/roms/msu1/index.html.tmp
123 | fi
124 | }
125 | function tg16-fix() {
126 | if [ ! -d "$HOME"/RetroPie/roms/pcengine/ ]; then dialog --sleep 1 --title "EMU FOLDER MISSING!" --msgbox "Please Install It's Emulator First" 6 40;
127 | else
128 | clear
129 | wget -m -r -np -nH -nd -R "index.html" "${HOST1}"/tg16 -P "$HOME"/RetroPie/roms/pcengine -erobots=off
130 | rm -f "$HOME"/RetroPie/roms/pcengine/index.html.tmp
131 | fi
132 | }
133 | function download-packs() {
134 | if [ ! -d "$HOME/RetroPie/roms/"${1}"/" ]; then choice=$(dialog --backtitle "$BACKTITLE" --title " EMU IS MISSING " \
135 | --ok-label Download --cancel-label Skip \
136 | --menu "DO YOU WANT TO INSTALL "${2}"?" 30 70 50 \
137 | 1 "YES" \
138 | 2 "NO" \
139 | 2<&1 >/dev/tty)
140 | case "$choice" in
141 | 1) cd $HOME/RetroPie-Setup && sudo ./retropie_packages.sh "$2" ;;
142 | 2) Consoles-Menu ;;
143 | *) return ;;
144 | esac
145 | else
146 | clear
147 | wget -m -r -np -nH -nd -R "index.html" "${HOST1}"/"${1}"/ -P "$HOME"/RetroPie/roms/"${1}" -erobots=off
148 | rm -f "$HOME"/RetroPie/roms/"${1}"/index.html.tmp
149 | fi
150 | }
151 |
152 | function download-packs-alt() {
153 | if [ ! -d "$HOME/RetroPie/roms/"${1}"/" ]; then choice=$(dialog --backtitle "$BACKTITLE" --title " EMU IS MISSING " \
154 | --ok-label Download --cancel-label Skip \
155 | --menu "DO YOU WANT TO INSTALL "${2}"?" 30 70 50 \
156 | 1 "YES" \
157 | 2 "NO" \
158 | 2<&1 >/dev/tty)
159 | case "$choice" in
160 | 1) cd $HOME/RetroPie-Setup && sudo ./retropie_packages.sh "$2" ;;
161 | 2) Consoles-Menu ;;
162 | *) return ;;
163 | esac
164 | else
165 | clear
166 | wget -m -r -np -nH -nd -R "index.html" "${HOST2}"/"${1}"/ -P "$HOME"/RetroPie/roms/"${1}" -erobots=off
167 | rm -f "$HOME"/RetroPie/roms/"${1}"/index.html.tmp
168 | fi
169 | }
170 |
171 | function download-jakks() {
172 | if [ ! -d "$HOME/RetroPie/roms/plugnplay/" ]; then choice=$(dialog --backtitle "$BACKTITLE" --title " EMU IS MISSING " \
173 | --ok-label Download --cancel-label Skip \
174 | --menu "DO YOU WANT TO INSTALL PLUG N PLAY EMU?" 30 70 50 \
175 | 1 "YES" \
176 | 2 "NO" \
177 | 2<&1 >/dev/tty)
178 | case "$choice" in
179 | 1) wget https://bit.ly/PlugNPlay-Emu -P $HOME/RetroPie-Setup/ ; cd $HOME/RetroPie-Setup ; sudo ./retropie_packages.sh lr-mess-plugnplay ;;
180 | 2) Consoles-Menu ;;
181 | *) return ;;
182 | esac
183 | else
184 | clear
185 | wget -m -r -np -nH -nd -R "index.html" "${HOST1}"/jakks/ -P "$HOME"/RetroPie/roms/"${1}" -erobots=off
186 | rm -f "$HOME"/RetroPie/roms/"${1}"/index.html.tmp
187 | fi
188 | }
189 |
190 | function saturn-japan() {
191 | if [ ! -d "$HOME/RetroPie/roms/saturn/" ]; then dialog --sleep 1 --title ""${1}" FOLDER MISSING!" --msgbox "Please Install It's Emulator First" 6 40;
192 | else
193 | clear
194 | sudo mkdir "$HOME"/RetroPie/roms/saturn/Japanese/
195 | wget -m -r -np -nH -nd -R "index.html" "${HOST1}"/saturn-japan/ -P "$HOME"/RetroPie/roms/saturn/Japanese/ -erobots=off
196 | rm -f "$HOME"/RetroPie/roms/saturn/index.html.tmp
197 | fi
198 | }
199 |
200 | function megadrive-japan() {
201 | if [ ! -d "$HOME/RetroPie/roms/megadrive/" ]; then dialog --sleep 1 --title ""${1}" FOLDER MISSING!" --msgbox "Please Install It's Emulator First" 6 40;
202 | else
203 | clear
204 | sudo mkdir "$HOME"/RetroPie/roms/megadrive/Japanese/
205 | wget -m -r -np -nH -nd -R "index.html" "${HOST1}"/megadrive-japan/ -P "$HOME"/RetroPie/roms/megadrive/Japanese/ -erobots=off
206 | rm -f "$HOME"/RetroPie/roms/saturn/index.html.tmp
207 | fi
208 | }
209 | Consoles-Menu
210 |
--------------------------------------------------------------------------------
/scripts/PI-3/PI-3-Homebrews.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | DB_SETTINGS="$HOME/.devilsbox/db_settings.ini"
3 | clear
4 | #-----------------DEVILS-GAME HOSTS---------------------#
5 | HOST1="https://archive.org/download/the-devils-box-alt"
6 | HOST2="https://archive.org/download/the-devils-box_202112"
7 | HOST3="https://archive.org/download/devils-bios"
8 | HOST4="https://archive.org/download/devils-wine_20221218"
9 | HOST5="https://archive.org/download/devils-dos"
10 | HOST8="https://archive.org/download/the-devils-box-alt/model3"
11 | HOST9="https://archive.org/download/rpi-homebrews"
12 |
13 | #---------------NON-DEVILS-HOSTS-----------------------#
14 | HOST6="https://archive.org/download/PSP_US_Arquivista"
15 | HOST7="https://archive.org/download/secretofmanausamsu1hackbydarkshockv1.0"
16 |
17 | #--------PICK & CHOOSE HOST-----#
18 | PC_HOST="https://archive.org/download/the-devils-box-alt"
19 |
20 | if grep 'intro_splash_flag=1' "$DB_SETTINGS" > /dev/null 2>&1; then
21 | omxplayer "$HOME"/Devils-Box/files/videos/translations-packs.mp4 > /dev/null 2>&1
22 | sleep 1
23 | dialog --sleep 1 --title "HOMEBREW PACKS INFO" --msgbox "
24 | <-------------WELCOME--------------->
25 | WHATS A HOMEBREW?
26 | A HOMEBREW IS A GAME MADE BY SOMEONE NOT A COMPANY.
27 |
28 | CAN I STOP DOWNLOAD MIDWAY THRU?
29 | --SURE PRESS CONTROL+C
30 | WILL IT KEEP MY PROGRESS?
31 | --YES TO LAST DOWNLOADED GAME" 0 0
32 | fi
33 |
34 | if [ -f "/usr/local/bin/confirm" ]; then
35 | confirm=0
36 | else
37 | confirm=1
38 | fi
39 |
40 | function Homebrew-Menu() {
41 | if [ $confirm = 1 ]; then
42 | dialog --sleep 1 --title "Devils Box ERROR !! " --msgbox "
43 | PLEASE Install/Update Devils Box" 0 0
44 | else
45 | while true; do
46 | local choice
47 | choice=$(dialog --backtitle "$BACKTITLE" --title " HOMEBREWS DOWNLOAD MENU" \
48 | --ok-label Download --cancel-label Main-Menu \
49 | --menu "PRESS A/ENTER TO DOWNLOAD PACK" 30 70 50 \
50 | + "<->CONSOLE NAME<-----------------># OF GAMES" \
51 | 1 "Atari2600 HOMEBREWS 425 GAMES" \
52 | 2 "Colecovision HOMEBREWS 61 GAMES" \
53 | 3 "Gameboy Advance HOMEBREWS 1 GAMES" \
54 | 4 "Gameboy Color HOMEBREWS 41 GAMES" \
55 | 5 "Gameboy HOMEBREWS 47 GAMES" \
56 | 6 "Genesis HOMEBREWS 9 GAMES" \
57 | 7 "Gamegear HOMEBREWS 2 GAMES" \
58 | 8 "NES HOMEBREWS 143 GAMES" \
59 | 9 "SNES HOMEBREWS 33 GAMES" \
60 | + "<--------->LAST UPDATED 9/30/22<---------->" \
61 | + "<->Credits to Official Rom Hack Database<->" \
62 | 2>&1 >/dev/tty)
63 |
64 | case "$choice" in
65 | 1) homebrew-packs "atari2600" "Atari-2600-Homebrews" ;;
66 | 2) homebrew-packs "coleco" "Colecovision-2600-Homebrews" ;;
67 | 3) homebrew-packs "gba" "Gameboy-Advance-Homebrews" ;;
68 | 4) homebrew-packs "gbc" "Gameboy-Color-Homebrews" ;;
69 | 5) homebrew-packs "gb" "Gameboy-Homebrews" ;;
70 | 6) homebrew-packs "genesis" "Gamegear-Homebrews" ;;
71 | 7) homebrew-packs "gamegear" "Genesis-Homebrews" ;;
72 | 8) homebrew-packs "nes" "NES-Homebrews" ;;
73 | 9) homebrew-packs "snes" "SNES-Homebrews" ;;
74 | +) none ;;
75 | *) break ;;
76 | esac
77 | done
78 | fi
79 | }
80 |
81 | function homebrew-packs() {
82 | if [ ! -d "$HOME/RetroPie/roms/"${1}"/" ]; then choice=$(dialog --backtitle "$BACKTITLE" --title " EMU IS MISSING " \
83 | --ok-label Download --cancel-label Skip \
84 | --menu "DO YOU WANT TO INSTALL "${3}"?" 30 70 50 \
85 | 1 "YES" \
86 | 2 "NO" \
87 | 2<&1 >/dev/tty)
88 | case "$choice" in
89 | 1) cd $HOME/RetroPie-Setup && sudo ./retropie_packages.sh "$3" ;;
90 | 2) Homebrew-Menu ;;
91 | *) return ;;
92 | esac
93 | else
94 | clear
95 | wget -m -r -np -nH -nd -R "index.html" "${HOST9}"/"${2}"/ -P "$HOME"/RetroPie/roms/"${1}"/Homebrews -erobots=off
96 | rm -f "$HOME"/RetroPie/roms/"${1}"/Homebrews/index.html.tmp
97 | fi
98 | }
99 |
100 | Homebrew-Menu
101 |
--------------------------------------------------------------------------------
/scripts/PI-3/PI-3-Lightgun-Pack.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | clear
3 | DB_SETTINGS="$HOME/.devilsbox/db_settings.ini"
4 | #-----------------DEVILS-GAME HOSTS---------------------#
5 | HOST1="https://archive.org/download/the-devils-box-alt"
6 | HOST2="https://archive.org/download/the-devils-box_202112"
7 | HOST3="https://archive.org/download/devils-bios"
8 | HOST4="https://archive.org/download/devils-wine_20221218"
9 | HOST5="https://archive.org/download/devils-dos"
10 | HOST8="https://archive.org/download/the-devils-box-alt/model3"
11 |
12 | #---------------NON-DEVILS-HOSTS-----------------------#
13 | HOST6="https://archive.org/download/PSP_US_Arquivista"
14 | HOST7="https://archive.org/download/secretofmanausamsu1hackbydarkshockv1.0"
15 |
16 | #--------PICK & CHOOSE HOST-----#
17 | PC_HOST="https://archive.org/download/the-devils-box-alt"
18 |
19 | #--------LIGHTGUN HOSTS--------#
20 | LG_HOST1 ="https://archive.org/download/RPI-Lightgun-Games"
21 | LG_HOST2 ="https://archive.org/download/RPI-Lightgun-Games/zips"
22 |
23 | if grep 'intro_splash_flag=1' "$DB_SETTINGS" > /dev/null 2>&1; then
24 | omxplayer "$HOME"/Devils-Box/files/videos/lightguns.mp4 > /dev/null 2>&1
25 | fi
26 | if [ -f "/usr/local/bin/confirm" ]; then
27 | confirm=0
28 | else
29 | confirm=1
30 | fi
31 |
32 | function lightgun_menu() {
33 | if [ $confirm = 1 ]; then
34 | dialog --sleep 1 --title "Devils Box ERROR !! " --msgbox "
35 | PLEASE Install/Update Devils Box" 0 0
36 | else
37 | local choice
38 |
39 | while true; do
40 | choice=$(dialog --backtitle "$BACKTITLE" --title " AUDIO & VISUAL TOOLS MENU" \
41 | --ok-label Select --cancel-label Back \
42 | --menu "SELECT CONSOLE TO DOWNLOAD " 30 70 50 \
43 | + "<->CONSOLE NAME<---------------->SIZE<----># OF GAMES" \
44 | 1 "NES 10MB 15 GAMES" \
45 | 2 "SNES 20MB 18 GAMES" \
46 | 2>&1 >/dev/tty)
47 |
48 | case "$choice" in
49 | +) nono ;;
50 | 1) nes-pack ;;
51 | 2) snes-pack ;;
52 | -) none ;;
53 | *) break ;;
54 | esac
55 | done
56 | fi
57 | }
58 |
59 | function nes-pack() {
60 | wget -m -r -np -nH -nd -R "index.html" https://archive.org/download/RPI-Lightgun-Games/zips/NES-Gun-Games.zip -P "$HOME"/RetroPie/roms/nes/ -erobots=off
61 | cd "$HOME"/RetroPie/roms/nes/
62 | unzip "$HOME"/RetroPie/roms/nes/NES-Gun-Games.zip
63 | sudo rm "$HOME"/RetroPie/roms/nes/NES-Gun-Games.zip
64 | chmod 777 -R "$HOME"/RetroPie/roms/nes/
65 | }
66 |
67 | function snes-pack() {
68 | wget -m -r -np -nH -nd -R "index.html" https://archive.org/download/RPI-Lightgun-Games/zips/SNES-Gun-Games.zip -P "$HOME"/RetroPie/roms/snes/ -erobots=off
69 | cd "$HOME"/RetroPie/roms/snes/
70 | unzip "$HOME"/RetroPie/roms/snes/SNES-Gun-Games.zip
71 | sudo rm "$HOME"/RetroPie/roms/snes/SNES-Gun-Games.zip
72 | chmod 777 -R "$HOME"/RetroPie/roms/snes/
73 | }
74 |
75 | lightgun_menu
76 |
--------------------------------------------------------------------------------
/scripts/PI-3/PI-3-Lightgun-Pick.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | DB_SETTINGS="$HOME/.devilsbox/db_settings.ini"
3 | ##-------------------------##
4 | ## HOST SITES ##
5 | ##-------------------------##
6 | #-----------------DEVILS-GAME HOSTS---------------------#
7 | HOST1="https://archive.org/download/the-devils-box-alt"
8 | HOST2="https://archive.org/download/the-devils-box_202112"
9 | HOST3="https://archive.org/download/devils-bios"
10 | HOST4="https://archive.org/download/devils-wine_20221218"
11 | HOST5="https://archive.org/download/devils-dos"
12 | #---------------NON-DEVILS-HOSTS-----------------------#
13 | HOST6="https://archive.org/download/PSP_US_Arquivista"
14 | HOST7="https://archive.org/download/secretofmanausamsu1hackbydarkshockv1.0"
15 | #--------PICK & CHOOSE HOST-----#
16 | PC_HOST="https://archive.org/download/the-devils-box-alt"
17 | LG_PICK="https://archive.org/download/RPI-Lightgun-Games"
18 |
19 |
20 | if grep 'intro_splash_flag=1' "$DB_SETTINGS" > /dev/null 2>&1; then
21 | omxplayer "$HOME"/Devils-Box/files/videos/lightguns.mp4 > /dev/null 2>&1
22 | fi
23 | if [ -f "/usr/local/bin/confirm" ]; then
24 | confirm=0
25 | else
26 | confirm=1
27 | fi
28 |
29 | function lightgun_pick() {
30 | if [ $confirm = 1 ]; then
31 | dialog --sleep 1 --title "Devils Box ERROR !! " --msgbox "
32 | PLEASE Install/Update Devils Box" 0 0
33 | else
34 | local choice
35 |
36 | while true; do
37 | choice=$(dialog --backtitle "$BACKTITLE" --title "PICK & CHOOSE MENU" \
38 | --ok-label Select --cancel-label Main-Menu \
39 | --menu "PICK CONSOLE & CHOOSE GAME(S) " 20 50 30 \
40 | 1 "NES" \
41 | 2 "SNES" \
42 | 3 "Wine" \
43 | 2>&1 >/dev/tty)
44 |
45 | case "$choice" in
46 | 1) nes ;;
47 | 2) snes ;;
48 | 3) wine ;;
49 | *) break ;;
50 | esac
51 | done
52 | fi
53 | }
54 |
55 | function nes() {
56 | whiptail --clear --title "PICK & CHOOSE NES" --separate-output --checklist "Choose Game(s) and click Download:" 0 0 0 \
57 | --ok-button Download --cancel-button Back \
58 | "1" "Baby Boomer" off \
59 | "2" "Barker Bill's Trick Shooting" off \
60 | "3" "Chiller" off \
61 | "4" "Duck Hunt" off \
62 | "5" "Freedom Force" off \
63 | "6" "Gotcha! The Sport" off \
64 | "7" "Gunshoe" off \
65 | "8" "Hogans Alley" off \
66 | "9" "Laser Invansion" off \
67 | "10" "Lone Ranger" off \
68 | "11" "Mechanized Attack" off \
69 | "12" "Operation Wolf" off \
70 | "13" "Shooting Range" off \
71 | "14" "To The Earth" off \
72 | "15" "Wild Gunman" off \
73 | 2>/tmp/results
74 | while read -r choice
75 | do
76 | case $choice in
77 | 1) download-game "nes" "Baby Boomer (USA) (Unl).zip" ;;
78 | 2) download-game "nes" "Barker Bill's Trick Shooting (Europe).zip" ;;
79 | 3) download-game "nes" "Chiller (USA) (Unl).zip" ;;
80 | 4) download-game "nes" "Duck Hunt (World).zip" ;;
81 | 5) download-game "nes" "Freedom Force (USA).zip" ;;
82 | 6) download-game "nes" "Gotcha! - The Sport! (USA).zip" ;;
83 | 7) download-game "nes" "Gumshoe (USA, Europe).zip" ;;
84 | 8) download-game "nes" "Hogan's Alley (World).zip" ;;
85 | 9) download-game "nes" "Laser Invasion (USA).zip" ;;
86 | 10) download-game "nes" "Lone Ranger, The (USA).zip" ;;
87 | 11) download-game "nes" "Mechanized Attack (USA).zip" ;;
88 | 12) download-game "nes" "Operation Wolf (Europe).zip" ;;
89 | 13) download-game "nes" "Shooting Range (USA).zip" ;;
90 | 14) download-game "nes" "To the Earth (USA).zip" ;;
91 | 15) download-game "nes" "Wild Gunman (World) (Rev A).zip" ;;
92 | *) ;;
93 | esac
94 | done < /tmp/results
95 | }
96 |
97 | function snes() {
98 | whiptail --clear --title "PICK & CHOOSE SNES" --separate-output --checklist "Choose Game(s) and click Download:" 0 0 0 \
99 | --ok-button Download --cancel-button Back \
100 | "1" "Battle Clash" off \
101 | "2" "Bazooka Blitzkreig" off \
102 | "3" "Lethal Enforcers" off \
103 | "4" "Metal Combat" off \
104 | "5" "Lethal Enforcers" off \
105 | "6" "Operation Thunderbolt" off \
106 | "7" "Revolution X" off \
107 | "8" "Super Scope 6" off \
108 | "9" "Terminator 2" off \
109 | "10" "Tin Star" off \
110 | "11" "X Zone" off \
111 | "12" "Yoshi's Safari (USA).zip" off \
112 | 2>/tmp/results
113 | while read -r choice
114 | do
115 | case $choice in
116 | 1) download-game "snes" "Battle Clash.zip" ;;
117 | 2) download-game "snes" "Bazooka Blitzkrieg.zip" ;;
118 | 3) download-game "snes" "Lethal Enforcers.zip" ;;
119 | 4) download-game "snes" "Faceball 2000 (USA).zip" ;;
120 | 5) download-game "snes" "Lethal Enforcers.zip" ;;
121 | 6) download-game "snes" "Operation Thunderbolt.zip" ;;
122 | 7) download-game "snes" "Revolution X.zip " ;;
123 | 8) download-game "snes" "Super Scope 6.zip" ;;
124 | 9) download-game "snes" "Terminator 2.zip" ;;
125 | 10) download-game "snes" "Tin Star (USA).zip" ;;
126 | 11) download-game "snes" "X Zone.zip" ;;
127 | 12) download-game "snes" "Yoshi's Safari (USA).zip" ;;
128 | *) ;;
129 | esac
130 | done < /tmp/results
131 | }
132 |
133 | function download-game() {
134 | for type in "$@"; do
135 | if [ "${type}" != "${1}" ]; then
136 | if [ ! -d "$HOME/RetroPie/roms/"${1}"/gun-games" ]; then mkdir $HOME/RetroPie/roms/"${1}"/gun-games ; fi
137 | if [ ! -d "$HOME/RetroPie/roms/"${1}"/" ]; then dialog --sleep 1 --title ""${1}" FOLDER MISSING!" --msgbox "Please Install It's Emulator First" 6 40;
138 | else
139 | clear
140 | wget -m -r -np -nH -nd -R "index.html" ${LG_PICK}/"${1}"/gun-games/"${type}" -P "$HOME"/RetroPie/roms/"${1}"/gun-games/ -erobots=off
141 | rm -f "$HOME"/RetroPie/roms/"${1}"/gun-games/index.html.tmp
142 | fi
143 | fi
144 | done
145 | }
146 |
147 | lightgun_pick
148 |
--------------------------------------------------------------------------------
/scripts/PI-3/PI-3-Translations.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | DB_SETTINGS="$HOME/.devilsbox/db_settings.ini"
3 | clear
4 | #-----------------DEVILS-GAME HOSTS---------------------#
5 | HOST1="https://archive.org/download/the-devils-box-alt"
6 | HOST2="https://archive.org/download/the-devils-box_202112"
7 | HOST3="https://archive.org/download/devils-bios"
8 | HOST4="https://archive.org/download/devils-wine_20221218"
9 | HOST5="https://archive.org/download/devils-dos"
10 | HOST8="https://archive.org/download/the-devils-box-alt/model3"
11 | HOST9="https://archive.org/download/rpi-homebrews"
12 | HOST10="https://archive.org/download/rpi-translations"
13 |
14 | #---------------NON-DEVILS-HOSTS-----------------------#
15 | HOST6="https://archive.org/download/PSP_US_Arquivista"
16 | HOST7="https://archive.org/download/secretofmanausamsu1hackbydarkshockv1.0"
17 |
18 | #--------PICK & CHOOSE HOST-----#
19 | PC_HOST="https://archive.org/download/the-devils-box-alt"
20 |
21 | if grep 'intro_splash_flag=1' "$DB_SETTINGS" > /dev/null 2>&1; then
22 | omxplayer "$HOME"/Devils-Box/files/videos/translations-packs.mp4 > /dev/null 2>&1
23 | sleep 1
24 | dialog --sleep 1 --title "HOMEBREW PACKS INFO" --msgbox "
25 | <-------------WELCOME--------------->
26 | WHATS ARE TRANSLATIONS?
27 | THESE GAME PACKS ARE TRANSLATED FROM LANGUAGE TO ENGLISH.
28 | THIS IS DONE BY THE COMMUNITY/INDIVUALS.
29 |
30 | CAN I STOP DOWNLOAD MIDWAY THRU?
31 | --SURE PRESS CONTROL+C
32 | WILL IT KEEP MY PROGRESS?
33 | --YES TO LAST DOWNLOADED GAME" 0 0
34 | fi
35 |
36 | if [ -f "/usr/local/bin/confirm" ]; then
37 | confirm=0
38 | else
39 | confirm=1
40 | fi
41 |
42 | function Translations-Menu() {
43 | if [ $confirm = 1 ]; then
44 | dialog --sleep 1 --title "Devils Box ERROR !! " --msgbox "
45 | PLEASE Install/Update Devils Box" 0 0
46 | else
47 | while true; do
48 | local choice
49 | choice=$(dialog --backtitle "$BACKTITLE" --title " TRANSLATIONS DOWNLOAD MENU" \
50 | --ok-label Download --cancel-label Main-Menu \
51 | --menu "PRESS A/ENTER TO DOWNLOAD PACK" 30 70 50 \
52 | + "<->CONSOLE NAME<-------------------># OF GAMES" \
53 | 1 "Dreamcast TRANSLATIONS 5 GAMES" \
54 | 2 "Gameboy Color TRANSLATIONS 20 GAMES" \
55 | 3 "Gameboy TRANSLATIONS 59 GAMES" \
56 | 4 "Gamegear TRANSLATIONS 15 GAMES" \
57 | 5 "NDS TRANSLATIONS 1 GAMES" \
58 | 6 "Playstation TRNASLATIONS 7 GAMES" \
59 | 7 "Super Famicon TRANSLATIONS 232 GAMES" \
60 | + "<---------->LAST UPDATED 9/30/22<----------->" \
61 | + "<-->Credits to Official Rom Hack Database<-->" \
62 | 2>&1 >/dev/tty)
63 |
64 | case "$choice" in
65 | 1) translation-packs "dreamcast" "Dreamcast-Translations" ;;
66 | 2) translation-packs "gbc" "Gameboy-Color-Translations" ;;
67 | 3) translation-packs "gb" "Gameboy-Translations" ;;
68 | 4) translation-packs "gamegear" "Gamegear-Translations" ;;
69 | 5) translation-packs "nds" "NDS-Translations" ;;
70 | 6) translation-packs "psx" "Playstation-Translations" ;;
71 | 7) translation-packs "sfc" "Super-Famicon-Translations" ;;
72 | +) none ;;
73 | *) break ;;
74 | esac
75 | done
76 | fi
77 | }
78 |
79 | function translation-packs() {
80 | if [ ! -d "$HOME/RetroPie/roms/"${1}"/" ]; then choice=$(dialog --backtitle "$BACKTITLE" --title " EMU IS MISSING " \
81 | --ok-label Download --cancel-label Skip \
82 | --menu "DO YOU WANT TO INSTALL "${3}"?" 30 70 50 \
83 | 1 "YES" \
84 | 2 "NO" \
85 | 2<&1 >/dev/tty)
86 | case "$choice" in
87 | 1) cd $HOME/RetroPie-Setup && sudo ./retropie_packages.sh "$3" ;;
88 | 2) Homebrew-Menu ;;
89 | *) return ;;
90 | esac
91 | else
92 | clear
93 | wget -m -r -np -nH -nd -R "index.html" "${HOST10}"/"${2}"/ -P "$HOME"/RetroPie/roms/"${1}"/Translations -erobots=off
94 | rm -f "$HOME"/RetroPie/roms/"${1}"/index.html.tmp
95 | fi
96 | }
97 |
98 | Translations-Menu
99 |
--------------------------------------------------------------------------------
/scripts/PI-4/PI-4-Game-Packs.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | DB_SETTINGS="$HOME/.devilsbox/db_settings.ini"
3 | clear
4 |
5 | if grep 'intro_splash_flag=1' "$DB_SETTINGS" > /dev/null 2>&1; then
6 | omxplayer "$HOME"/Devils-Box/files/videos/game-packs.mp4 > /dev/null 2>&1
7 | fi
8 | if [ -f "/usr/local/bin/confirm" ]; then
9 | confirm=0
10 | else
11 | confirm=1
12 | fi
13 |
14 | function Game-Packs() {
15 | if [ $confirm = 1 ]; then
16 | dialog --sleep 1 --title "Devils Box ERROR !! " --msgbox "
17 | PLEASE Install/Update Devils Box" 0 0
18 | else
19 | while true; do
20 | local choice
21 | choice=$(dialog --backtitle "$BACKTITLE" --title " GAME PACKS MENU" \
22 | --ok-label Download --cancel-label Main-Menu \
23 | --menu "PICK WHICH KIND OF GAME PACK" 30 70 50 \
24 | 1 "Console Game Packs" \
25 | 2 "Hacked Game Packs" \
26 | 3 "Homebrew Game Packs" \
27 | 4 "Lightgun Game Packs" \
28 | 5 "Translations Game Packs" \
29 | 2>&1 >/dev/tty)
30 |
31 | case "$choice" in
32 | 1) consoles ;;
33 | 2) hacked ;;
34 | 3) homebrew ;;
35 | 4) lightgun ;;
36 | 5) translations ;;
37 | +) none ;;
38 | *) break ;;
39 | esac
40 | done
41 | fi
42 | }
43 |
44 |
45 | #-----------Consoles-----------#
46 | function consoles() {
47 | if [ $NETCHECK -eq 1 ]; then
48 | dialog --sleep 1 --title "OFFLINE ERROR!!" --msgbox "
49 | Offline ... Downloads not Availible Please Connect To Internet!" 0 0
50 | else
51 | bash "$HOME"/Devils-Box/scripts/PI-4/PI-4-Packs.sh
52 | fi
53 | }
54 |
55 | #-----------Hacks-----------#
56 | function hacked() {
57 | if [ $NETCHECK -eq 1 ]; then
58 | dialog --sleep 1 --title "OFFLINE ERROR!!" --msgbox "
59 | Offline ... Downloads not Availible Please Connect To Internet!" 0 0
60 | else
61 | bash "$HOME"/Devils-Box/scripts/Hacks.sh
62 | fi
63 | }
64 |
65 |
66 | #-----------Homebrews-----------#
67 | function homebrew() {
68 | if [ $NETCHECK -eq 1 ]; then
69 | dialog --sleep 1 --title "OFFLINE ERROR!!" --msgbox "
70 | Offline ... Downloads not Availible Please Connect To Internet!" 0 0
71 | else
72 | bash "$HOME"/Devils-Box/scripts/PI-4/PI-4-Homebrews.sh
73 | fi
74 | }
75 |
76 | #-----------Lightguns-----------#
77 | function lightgun() {
78 | if [ $NETCHECK -eq 1 ]; then
79 | dialog --sleep 1 --title "OFFLINE ERROR!!" --msgbox "
80 | Offline ... Downloads not Availible Please Connect To Internet!" 0 0
81 | else
82 | bash "$HOME"/Devils-Box/scripts/PI-4/PI-4-Lightgun-Packs.sh
83 | fi
84 | }
85 |
86 | #-----------Translations-----------#
87 | function translations() {
88 | if [ $NETCHECK -eq 1 ]; then
89 | dialog --sleep 1 --title "OFFLINE ERROR!!" --msgbox "
90 | Offline ... Downloads not Availible Please Connect To Internet!" 0 0
91 | else
92 | bash "$HOME"/Devils-Box/scripts/PI-4/PI-4-Translations.sh
93 | fi
94 | }
95 |
96 | Game-Packs
97 |
--------------------------------------------------------------------------------
/scripts/PI-4/PI-4-Homebrews.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | DB_SETTINGS="$HOME/.devilsbox/db_settings.ini"
3 | clear
4 | #-----------------DEVILS-GAME HOSTS---------------------#
5 | HOST1="https://archive.org/download/the-devils-box-alt"
6 | HOST2="https://archive.org/download/the-devils-box_202112"
7 | HOST3="https://archive.org/download/devils-bios"
8 | HOST4="https://archive.org/download/devils-wine"
9 | HOST5="https://archive.org/download/devils-dos"
10 | HOST8="https://archive.org/download/the-devils-box-alt/model3"
11 | HOST9="https://archive.org/download/rpi-homebrews"
12 |
13 | #---------------NON-DEVILS-HOSTS-----------------------#
14 | HOST6="https://archive.org/download/PSP_US_Arquivista"
15 | HOST7="https://archive.org/download/secretofmanausamsu1hackbydarkshockv1.0"
16 |
17 | #--------PICK & CHOOSE HOST-----#
18 | PC_HOST="https://archive.org/download/the-devils-box-alt"
19 |
20 | if grep 'intro_splash_flag=1' "$DB_SETTINGS" > /dev/null 2>&1; then
21 | omxplayer "$HOME"/Devils-Box/files/videos/translations-packs.mp4 > /dev/null 2>&1
22 | sleep 1
23 | dialog --sleep 1 --title "HOMEBREW PACKS INFO" --msgbox "
24 | <-------------WELCOME--------------->
25 | WHATS A HOMEBREW?
26 | A HOMEBREW IS A GAME MADE BY SOMEONE NOT A COMPANY.
27 |
28 | CAN I STOP DOWNLOAD MIDWAY THRU?
29 | --SURE PRESS CONTROL+C
30 | WILL IT KEEP MY PROGRESS?
31 | --YES TO LAST DOWNLOADED GAME" 0 0
32 | fi
33 |
34 | if [ -f "/usr/local/bin/confirm" ]; then
35 | confirm=0
36 | else
37 | confirm=1
38 | fi
39 |
40 | function Homebrew-Menu() {
41 | if [ $confirm = 1 ]; then
42 | dialog --sleep 1 --title "Devils Box ERROR !! " --msgbox "
43 | PLEASE Install/Update Devils Box" 0 0
44 | else
45 | while true; do
46 | local choice
47 | choice=$(dialog --backtitle "$BACKTITLE" --title " HOMEBREWS DOWNLOAD MENU" \
48 | --ok-label Download --cancel-label Back \
49 | --menu "PRESS A/ENTER TO DOWNLOAD PACK" 30 70 50 \
50 | + "<->CONSOLE NAME<-----------------># OF GAMES" \
51 | 1 "Atari2600 HOMEBREWS 425 GAMES" \
52 | 2 "Colecovision HOMEBREWS 61 GAMES" \
53 | 3 "Gameboy Advance HOMEBREWS 1 GAMES" \
54 | 4 "Gameboy Color HOMEBREWS 41 GAMES" \
55 | 5 "Gameboy HOMEBREWS 47 GAMES" \
56 | 6 "Genesis HOMEBREWS 9 GAMES" \
57 | 7 "Gamegear HOMEBREWS 2 GAMES" \
58 | 8 "NES HOMEBREWS 143 GAMES" \
59 | 9 "PSP HOMEBREWS 23 GAMES" \
60 | 10 "SNES HOMEBREWS 33 GAMES" \
61 | + "<--------->LAST UPDATED 9/30/22<---------->" \
62 | + "<->Credits to Official Rom Hack Database<->" \
63 | 2>&1 >/dev/tty)
64 |
65 | case "$choice" in
66 | 1) homebrew-packs "atari2600" "Atari-2600-Homebrews" ;;
67 | 2) homebrew-packs "coleco" "Colecovision-2600-Homebrews" ;;
68 | 3) homebrew-packs "gba" "Gameboy-Advance-Homebrews" ;;
69 | 4) homebrew-packs "gbc" "Gameboy-Color-Homebrews" ;;
70 | 5) homebrew-packs "gb" "Gameboy-Homebrews" ;;
71 | 6) homebrew-packs "genesis" "Gamegear-Homebrews" ;;
72 | 7) homebrew-packs "gamegear" "Genesis-Homebrews" ;;
73 | 8) homebrew-packs "nes" "NES-Homebrews" ;;
74 | 9) homebrew-packs "psp" "PSP-Homebrews" ;;
75 | 10) homebrew-packs "snes" "SNES-Homebrews" ;;
76 | +) none ;;
77 | *) break ;;
78 | esac
79 | done
80 | fi
81 | }
82 |
83 | function homebrew-packs() {
84 | if [ ! -d "$HOME/RetroPie/roms/"${1}"/" ]; then choice=$(dialog --backtitle "$BACKTITLE" --title " EMU IS MISSING " \
85 | --ok-label Download --cancel-label Skip \
86 | --menu "DO YOU WANT TO INSTALL "${3}"?" 30 70 50 \
87 | 1 "YES" \
88 | 2 "NO" \
89 | 2<&1 >/dev/tty)
90 | case "$choice" in
91 | 1) cd $HOME/RetroPie-Setup && sudo ./retropie_packages.sh "$3" ;;
92 | 2) Homebrew-Menu ;;
93 | *) return ;;
94 | esac
95 | else
96 | clear
97 | wget -m -r -np -nH -nd -R "index.html" "${HOST9}"/"${2}"/ -P "$HOME"/RetroPie/roms/"${1}"/Homebrews -erobots=off
98 | rm -f "$HOME"/RetroPie/roms/"${1}"/Homebrews/index.html.tmp
99 | fi
100 | }
101 |
102 | Homebrew-Menu
103 |
--------------------------------------------------------------------------------
/scripts/PI-4/PI-4-Lightgun-Packs.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | clear
3 | DB_SETTINGS="$HOME/.devilsbox/db_settings.ini"
4 | #-----------------DEVILS-GAME HOSTS---------------------#
5 | HOST1="https://archive.org/download/the-devils-box-alt"
6 | HOST2="https://archive.org/download/the-devils-box_202112"
7 | HOST3="https://archive.org/download/devils-bios"
8 | HOST4="https://archive.org/download/devils-wine_20221218"
9 | HOST5="https://archive.org/download/devils-dos"
10 | HOST8="https://archive.org/download/the-devils-box-alt/model3"
11 |
12 | #---------------NON-DEVILS-HOSTS-----------------------#
13 | HOST6="https://archive.org/download/PSP_US_Arquivista"
14 | HOST7="https://archive.org/download/secretofmanausamsu1hackbydarkshockv1.0"
15 |
16 | #--------PICK & CHOOSE HOST-----#
17 | PC_HOST="https://archive.org/download/the-devils-box-alt"
18 |
19 | #--------LIGHTGUN HOSTS--------#
20 | LG_HOST1="https://archive.org/download/RPI-Lightgun-Games"
21 | LG_HOST2="https://archive.org/download/sinden_barebones_rompack"
22 | LG_HOST3="https://archive.org/download/RPI-Lightgun-Games/zips/"
23 |
24 | if grep 'intro_splash_flag=1' "$DB_SETTINGS" > /dev/null 2>&1; then
25 | omxplayer "$HOME"/Devils-Box/files/videos/lightguns.mp4 > /dev/null 2>&1
26 | fi
27 | if [ -f "/usr/local/bin/confirm" ]; then
28 | confirm=0
29 | else
30 | confirm=1
31 | fi
32 |
33 | function lightgun_menu() {
34 | if [ $confirm = 1 ]; then
35 | dialog --sleep 1 --title "Devils Box ERROR !! " --msgbox "
36 | PLEASE Install/Update Devils Box" 0 0
37 | else
38 | local choice
39 |
40 | while true; do
41 | choice=$(dialog --backtitle "$BACKTITLE" --title "LIGHTGUN PACKS" \
42 | --ok-label Select --cancel-label Back \
43 | --menu "SELECT CONSOLE TO DOWNLOAD " 30 70 50 \
44 | + "<->CONSOLE NAME<---------------->SIZE<----># OF GAMES" \
45 | 1 "3D0 3.1GB 9 GAMES" \
46 | 2 "Arcade 5.9GB 100+ GAMES" \
47 | 3 "Atari2600 16KB 2 GAMES" \
48 | 4 "Commadore64 900KB 22 GAMES" \
49 | 5 "Dreamcast 1.5GB 5 GAMES" \
50 | 6 "Daphne Actionmax 3.4GB 7 GAMES" \
51 | 7 "Daphne Hypseus 10.5GB 9 GAMES" \
52 | 8 "Daphne Hypseus HD 11.8GB 7 GAMES" \
53 | 9 "Mastersystem 1.2MB 13 GAMES" \
54 | 10 "Megadrive 4.5MB 8 GAMES" \
55 | 11 "NES 10MB 15 GAMES" \
56 | 12 "NES Hacks 400KB 16 GAMES" \
57 | 13 "Playstation 1 6GB 28 GAMES" \
58 | 14 "Plug N Play 10MB 3 GAMES" \
59 | 15 "SNES 20MB 18 GAMES" \
60 | 2>&1 >/dev/tty)
61 |
62 | case "$choice" in
63 | +) nono ;;
64 | 1) lg-pack "3d0" "3d0" ;;
65 | 2) lg-pack "arcade" "arcade" ;;
66 | 3) lg-pack "atari2600" "atari2600" ;;
67 | 4) lg-pack "c64" "c64" ;;
68 | 5) lg-pack "dreamcast" "dreamcast" ;;
69 | 6) lg-pack "daphne-actionmax" "daphne" ;;
70 | 7) lg-pack "daphne-hypseus" "daphne" ;;
71 | 8) lg-pack "daphne-hypseusHD" "daphne" ;;
72 | 9) lg-pack "mastersystem" "mastersystem" ;;
73 | 10) lg-pack "megadrive" "megadrive" ;;
74 | 11) lg-pack "nes" "nes" ;;
75 | 12) lg-pack "nes_hacks" "nes" ;;
76 | 13) lg-pack "psx" "psx" ;;
77 | 14) lg-pack "pnp" "pnp" ;;
78 | 15) lg-pack "snes" "snes" ;;
79 | -) none ;;
80 | *) break ;;
81 | esac
82 | done
83 | fi
84 | }
85 |
86 | function lg-pack() {
87 | wget -m -r -np -nH -nd -R "index.html" "${LG_HOST2}"/"${1}".rar -P "$HOME"/RetroPie/roms/"${2}"/Lightgun_Games/ -erobots=off
88 | cd "$HOME"/RetroPie/roms/"${2}"/Lightgun_Games/
89 | unzip "$HOME"/RetroPie/roms/"${2}"/Lightgun_Games/"${1}".rar
90 | sudo rm "$HOME"/RetroPie/roms/"${2}"/Lightgun_Games/"${1}".rar
91 | chmod 777 -R "$HOME"/RetroPie/roms/"${2}"/Lightgun_Games/
92 | }
93 |
94 | lightgun_menu
95 |
--------------------------------------------------------------------------------
/scripts/PI-4/PI-4-Lightgun-Pick.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | DB_SETTINGS="$HOME/.devilsbox/db_settings.ini"
3 | ##-------------------------##
4 | ## HOST SITES ##
5 | ##-------------------------##
6 | #-----------------DEVILS-GAME HOSTS---------------------#
7 | HOST1="https://archive.org/download/the-devils-box-alt"
8 | HOST2="https://archive.org/download/the-devils-box_202112"
9 | HOST3="https://archive.org/download/devils-bios"
10 | HOST4="https://archive.org/download/devils-wine_20221218"
11 | HOST5="https://archive.org/download/devils-dos"
12 | #---------------NON-DEVILS-HOSTS-----------------------#
13 | HOST6="https://archive.org/download/PSP_US_Arquivista"
14 | HOST7="https://archive.org/download/secretofmanausamsu1hackbydarkshockv1.0"
15 | #--------PICK & CHOOSE HOST-----#
16 | LG_PICK="https://ia601407.us.archive.org/view_archive.php?archive=/29/items/sinden_barebones_rompack/"
17 |
18 |
19 | if grep 'intro_splash_flag=1' "$DB_SETTINGS" > /dev/null 2>&1; then
20 | omxplayer "$HOME"/Devils-Box/files/videos/lightguns.mp4 > /dev/null 2>&1
21 | fi
22 | if [ -f "/usr/local/bin/confirm" ]; then
23 | confirm=0
24 | else
25 | confirm=1
26 | fi
27 |
28 | function lightgun_pick() {
29 | if [ $confirm = 1 ]; then
30 | dialog --sleep 1 --title "Devils Box ERROR !! " --msgbox "
31 | PLEASE Install/Update Devils Box" 0 0
32 | else
33 | local choice
34 |
35 | while true; do
36 | choice=$(dialog --backtitle "$BACKTITLE" --title "PICK & CHOOSE MENU" \
37 | --ok-label Select --cancel-label Back \
38 | --menu "PICK CONSOLE & CHOOSE GAME(S) " 20 50 30 \
39 | 1 "NES" \
40 | 2 "MASTERSYSTEM" \
41 | 3 "MEGADRIVE" \
42 | 4 "SNES" \
43 | 5 "Wine--COMING SOON" \
44 | 2>&1 >/dev/tty)
45 |
46 | case "$choice" in
47 | 1) nes ;;
48 | 2) mastersystem ;;
49 | 3) megadrive ;;
50 | 4) snes ;;
51 | 5) wine-pick ;;
52 | *) break ;;
53 | esac
54 | done
55 | fi
56 | }
57 |
58 | function nes() {
59 | whiptail --clear --title "LIGHT GUN P&C NES" --separate-output --checklist "Choose Game(s) and click Download:" 0 0 0 \
60 | --ok-button Download --cancel-button Back \
61 | "1" "Baby Boomer" off \
62 | "2" "Barker Bill's Trick Shooting" off \
63 | "3" "Chiller" off \
64 | "4" "Duck Hunt" off \
65 | "5" "Freedom Force" off \
66 | "6" "Gotcha! The Sport" off \
67 | "7" "Gunshoe" off \
68 | "8" "Hogans Alley" off \
69 | "9" "Laser Invansion" off \
70 | "10" "Lone Ranger" off \
71 | "11" "Mechanized Attack" off \
72 | "12" "Operation Wolf" off \
73 | "13" "Shooting Range" off \
74 | "14" "To The Earth" off \
75 | "15" "Wild Gunman" off \
76 | 2>/tmp/results
77 | while read -r choice
78 | do
79 | case $choice in
80 | 1) download-game "nes" "Baby Boomer (USA) (Unl).zip" ;;
81 | 2) download-game "nes" "Barker Bill's Trick Shooting (Europe).zip" ;;
82 | 3) download-game "nes" "Chiller (USA) (Unl).zip" ;;
83 | 4) download-game "nes" "Duck Hunt (World).zip" ;;
84 | 5) download-game "nes" "Freedom Force (USA).zip" ;;
85 | 6) download-game "nes" "Gotcha! - The Sport! (USA).zip" ;;
86 | 7) download-game "nes" "Gumshoe (USA, Europe).zip" ;;
87 | 8) download-game "nes" "Hogan's Alley (World).zip" ;;
88 | 9) download-game "nes" "Laser Invasion (USA).zip" ;;
89 | 10) download-game "nes" "Lone Ranger, The (USA).zip" ;;
90 | 11) download-game "nes" "Mechanized Attack (USA).zip" ;;
91 | 12) download-game "nes" "Operation Wolf (Europe).zip" ;;
92 | 13) download-game "nes" "Shooting Range (USA).zip" ;;
93 | 14) download-game "nes" "To the Earth (USA).zip" ;;
94 | 15) download-game "nes" "Wild Gunman (World) (Rev A).zip" ;;
95 | *) ;;
96 | esac
97 | done < /tmp/results
98 | }
99 |
100 | function megadrive() {
101 | whiptail --clear --title "LIGHT GUN P&C MEGADRIVE" --separate-output --checklist "Choose Game(s) and click Download:" 0 0 0 \
102 | --ok-button Download --cancel-button Back \
103 | "1" "Body Count" off \
104 | "2" "Lethal Enforcers" off \
105 | "3" "Lethal Enforcers 2" off \
106 | "4" "Menacer 6 Game Cart" off \
107 | "5" "Terminator 2 The Arcade Game" off \
108 | 2>/tmp/results
109 | while read -r choice
110 | do
111 | case $choice in
112 | 1) download-game "megadrive" "Body Count (Europe).zip" ;;
113 | 2) download-game "megadrive" "Lethal Enforcers (USA).zip " ;;
114 | 3) download-game "megadrive" "Lethal Enforcers II - Gun Fighters (USA).zip" ;;
115 | 4) download-game "megadrive" "Menacer - 6-Game Cartridge (USA, Europe).zip" ;;
116 | 5) download-game "megadrive" "T2 - The Arcade Game (USA, Europe).zip" ;;
117 | *) ;;
118 | esac
119 | done < /tmp/results
120 | }
121 |
122 | function snes() {
123 | whiptail --clear --title "LIGHT GUN P&C SNES" --separate-output --checklist "Choose Game(s) and click Download:" 0 0 0 \
124 | --ok-button Download --cancel-button Back \
125 | "1" "Battle Clash" off \
126 | "2" "Bazooka Blitzkreig" off \
127 | "3" "Lethal Enforcers" off \
128 | "4" "Metal Combat" off \
129 | "5" "Lethal Enforcers" off \
130 | "6" "Operation Thunderbolt" off \
131 | "7" "Revolution X" off \
132 | "8" "Super Scope 6" off \
133 | "9" "Terminator 2" off \
134 | "10" "Tin Star" off \
135 | "11" "X Zone" off \
136 | "12" "Yoshi's Safari (USA).zip" off \
137 | 2>/tmp/results
138 | while read -r choice
139 | do
140 | case $choice in
141 | 1) download-game "snes" "Battle Clash.zip" ;;
142 | 2) download-game "snes" "Bazooka Blitzkrieg.zip" ;;
143 | 3) download-game "snes" "Lethal Enforcers.zip" ;;
144 | 4) download-game "snes" "Faceball 2000 (USA).zip" ;;
145 | 5) download-game "snes" "Lethal Enforcers.zip" ;;
146 | 6) download-game "snes" "Operation Thunderbolt.zip" ;;
147 | 7) download-game "snes" "Revolution X.zip " ;;
148 | 8) download-game "snes" "Super Scope 6.zip" ;;
149 | 9) download-game "snes" "Terminator 2.zip" ;;
150 | 10) download-game "snes" "Tin Star (USA).zip" ;;
151 | 11) download-game "snes" "X Zone.zip" ;;
152 | 12) download-game "snes" "Yoshi's Safari (USA).zip" ;;
153 | *) ;;
154 | esac
155 | done < /tmp/results
156 | }
157 |
158 | function download-game() {
159 | for type in "$@"; do
160 | if [ "${type}" != "${1}" ]; then
161 | if [ ! -d "$HOME/RetroPie/roms/"${1}"/Lightgun_Games" ]; then mkdir $HOME/RetroPie/roms/"${1}"/Lightgun_Games; fi
162 | if [ ! -d "$HOME/RetroPie/roms/"${1}"/" ]; then dialog --sleep 1 --title ""${1}" FOLDER MISSING!" --msgbox "Please Install It's Emulator First" 6 40
163 | else
164 | clear
165 | wget -m -r -np -nH -nd -R "index.html" ${LG_PICK}/"${1}".rar/"${type}" -P "$HOME"/RetroPie/roms/"${1}"/Lightgun_Games/ -erobots=off
166 | rm -f "$HOME"/RetroPie/roms/"${1}"/Lightgun_Games/index.html.tmp
167 | fi
168 | fi
169 | done
170 | }
171 |
172 | lightgun_pick
173 |
--------------------------------------------------------------------------------
/scripts/PI-4/PI-4-Translations.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | DB_SETTINGS="$HOME/.devilsbox/db_settings.ini"
3 | clear
4 | #-----------------DEVILS-GAME HOSTS---------------------#
5 | HOST1="https://archive.org/download/the-devils-box-alt"
6 | HOST2="https://archive.org/download/the-devils-box_202112"
7 | HOST3="https://archive.org/download/devils-bios"
8 | HOST4="https://archive.org/download/devils-wine_20221218"
9 | HOST5="https://archive.org/download/devils-dos"
10 | HOST8="https://archive.org/download/the-devils-box-alt/model3"
11 | HOST9="https://archive.org/download/rpi-homebrews"
12 | HOST10="https://archive.org/download/rpi-translations"
13 |
14 | #---------------NON-DEVILS-HOSTS-----------------------#
15 | HOST6="https://archive.org/download/PSP_US_Arquivista"
16 | HOST7="https://archive.org/download/secretofmanausamsu1hackbydarkshockv1.0"
17 |
18 | #--------PICK & CHOOSE HOST-----#
19 | PC_HOST="https://archive.org/download/the-devils-box-alt"
20 |
21 | if grep 'intro_splash_flag=1' "$DB_SETTINGS" > /dev/null 2>&1; then
22 | omxplayer "$HOME"/Devils-Box/files/videos/translations-packs.mp4 > /dev/null 2>&1
23 | sleep 1
24 | dialog --sleep 1 --title "TRANSLATIONS PACKS INFO" --msgbox "
25 | <-------------WELCOME--------------->
26 | WHATS ARE TRANSLATIONS?
27 | THESE GAME PACKS ARE TRANSLATED FROM LANGUAGE TO ENGLISH.
28 | THIS IS DONE BY THE COMMUNITY/INDIVUALS.
29 |
30 | CAN I STOP DOWNLOAD MIDWAY THRU?
31 | --SURE PRESS CONTROL+C
32 | WILL IT KEEP MY PROGRESS?
33 | --YES TO LAST DOWNLOADED GAME" 0 0
34 | fi
35 |
36 | if [ -f "/usr/local/bin/confirm" ]; then
37 | confirm=0
38 | else
39 | confirm=1
40 | fi
41 |
42 | function Translations-Menu() {
43 | if [ $confirm = 1 ]; then
44 | dialog --sleep 1 --title "Devils Box ERROR !! " --msgbox "
45 | PLEASE Install/Update Devils Box" 0 0
46 | else
47 | while true; do
48 | local choice
49 | choice=$(dialog --backtitle "$BACKTITLE" --title " TRANSLATIONS DOWNLOAD MENU" \
50 | --ok-label Download --cancel-label Back \
51 | --menu "PRESS A/ENTER TO DOWNLOAD PACK" 30 70 50 \
52 | + "<->CONSOLE NAME<-------------------># OF GAMES" \
53 | 1 "3DO TRANSLATIONS 2 GAMES" \
54 | 2 "Dreamcast TRANSLATIONS 5 GAMES" \
55 | 3 "Gameboy Color TRANSLATIONS 20 GAMES" \
56 | 4 "Gameboy TRANSLATIONS 59 GAMES" \
57 | 5 "Gamegear TRANSLATIONS 15 GAMES" \
58 | 6 "NDS TRANSLATIONS 1 GAMES" \
59 | 7 "Playstation TRNASLATIONS 7 GAMES" \
60 | 8 "Saturn TRANSLATIONS 1 GAMES" \
61 | 9 "Super Famicon TRANSLATIONS 232 GAMES" \
62 | + "<---------->LAST UPDATED 6/28/23<----------->" \
63 | + "<-->Credits to Official Rom Hack Database<-->" \
64 | 2>&1 >/dev/tty)
65 |
66 | case "$choice" in
67 | 1) translation-packs "3do" "3DO-Translations" ;;
68 | 2) translation-packs "dreamcast" "Dreamcast-Translations" ;;
69 | 3) translation-packs "gbc" "Gameboy-Color-Translations" ;;
70 | 4) translation-packs "gb" "Gameboy-Translations" ;;
71 | 5) translation-packs "gamegear" "Gamegear-Translations" ;;
72 | 6) translation-packs "nds" "NDS-Translations" ;;
73 | 7) translation-packs "psx" "Playstation-Translations" ;;
74 | 8) translation-packs "saturn" "Saturn-Translations" ;;
75 | 9) translation-packs "sfc" "Super-Famicon-Translations" ;;
76 | +) none ;;
77 | *) break ;;
78 | esac
79 | done
80 | fi
81 | }
82 |
83 | function translation-packs() {
84 | if [ ! -d "$HOME/RetroPie/roms/"${1}"/" ]; then choice=$(dialog --backtitle "$BACKTITLE" --title " EMU IS MISSING " \
85 | --ok-label Download --cancel-label Skip \
86 | --menu "DO YOU WANT TO INSTALL "${3}"?" 30 70 50 \
87 | 1 "YES" \
88 | 2 "NO" \
89 | 2<&1 >/dev/tty)
90 | case "$choice" in
91 | 1) cd $HOME/RetroPie-Setup && sudo ./retropie_packages.sh "$3" ;;
92 | 2) Homebrew-Menu ;;
93 | *) return ;;
94 | esac
95 | else
96 | clear
97 | wget -m -r -np -nH -nd -R "index.html" "${HOST10}"/"${2}"/ -P "$HOME"/RetroPie/roms/"${1}"/Translations -erobots=off
98 | rm -f "$HOME"/RetroPie/roms/"${1}"/index.html.tmp
99 | fi
100 | }
101 |
102 | Translations-Menu
103 |
--------------------------------------------------------------------------------
/scripts/Remove.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | clear
3 |
4 | function Remove-Menu() {
5 | local choice
6 |
7 | while true; do
8 | choice=$(dialog --backtitle "$BACKTITLE" --title " REMOVE PACKS MENU" \
9 | --ok-label Remove --cancel-label "Game Tools" \
10 | --menu "PRESS A/ENTER TO REMOVE PACK" 30 70 50 \
11 | 1 "Remove Amiga" \
12 | 2 "Remove AmigaCD32" \
13 | 3 "Remove Amstrad CPC" \
14 | 4 "Remove Arcade" \
15 | 5 "Remove Arcadia" \
16 | 6 "Remove Astrocade" \
17 | 7 "Remove Atari800" \
18 | 8 "Remove Atari2600" \
19 | 9 "Remove Atari5200" \
20 | 10 "Remove Atari7800" \
21 | 11 "Remove AtariLynx" \
22 | 12 "Remove AtariST" \
23 | 13 "Remove Atomiswave" \
24 | 14 "Remove Commadore64" \
25 | 15 "Remove Colecovision" \
26 | 16 "Remove Dragon32" \
27 | 17 "Remove Dreamcast" \
28 | 18 "Remove Electron" \
29 | 19 "Remove Famicon" \
30 | 20 "Remove Famicom Disk" \
31 | 21 "Remove Game and Watch" \
32 | 22 "Remove Gameboy" \
33 | 23 "Remove Gameboy Advance" \
34 | 24 "Remove Gameboy Color" \
35 | 25 "Remove Gamegear" \
36 | 26 "Remove Intellivision" \
37 | 27 "Remove Lightgun" \
38 | 28 "Remove MarkIII" \
39 | 29 "Remove Mastersystem" \
40 | 30 "Remove Genesis/Megadrive" \
41 | 31 "Remove Genesis/Megadrive-Japan" \
42 | 32 "Remove MSX" \
43 | 33 "Remove MSX 2" \
44 | 34 "Remove Nintendo 64" \
45 | 35 "Remove Naomi" \
46 | 36 "Remove Nintendo DS" \
47 | 37 "Remove NeoGeo" \
48 | 38 "Remove Neo Geo Pocket Color" \
49 | 39 "Remove NES" \
50 | 40 "Remove Openbor" \
51 | 41 "Remove Oric" \
52 | 42 "Remove Pokemini" \
53 | 43 "Remove PlayStation 1" \
54 | 44 "Remove PSP" \
55 | 45 "Remove Sega Saturn" \
56 | 46 "Remove Sega Saturn Japan" \
57 | 47 "Remove ScummVM" \
58 | 48 "Remove Sega32x" \
59 | 49 "Remove SegaCD" \
60 | 50 "Remove Super Famicon" \
61 | 51 "Remove SG-1000" \
62 | 52 "Remove SNES" \
63 | 53 "Remove SNES MSU1" \
64 | 54 "Remove SuperGraffiix" \
65 | 55 "Remove Turbo Graffix 16" \
66 | 56 "Remove Vectrex" \
67 | 57 "Remove VideoPAC" \
68 | 58 "Remove Virtual Boy" \
69 | 59 "Remove Dreamcast" \
70 | 60 "Remove Wonderswan Color" \
71 | 61 "Remove Sharp X1" \
72 | 62 "Remove Sharp X68000" \
73 | 63 "Remove ZMachine" \
74 | 64 "Remove ZXSpectrum" \
75 | 2>&1 >/dev/tty)
76 |
77 | case "$choice" in
78 | 1) remove-packs "amiga" ;;
79 | 2) remove-packs "amigacd32" ;;
80 | 3) remove-packs "amstradcpc" ;;
81 | 4) remove-packs "arcade" ;;
82 | 5) remove-packs "arcadia" ;;
83 | 6) remove-packs "astrocade" ;;
84 | 7) remove-packs "atari800" ;;
85 | 8) remove-packs "atari2600" ;;
86 | 9) remove-packs "atari5200" ;;
87 | 10) remove-packs "atari7800" ;;
88 | 11) remove-packs "atarilynx" ;;
89 | 12) remove-packs "atarist" ;;
90 | 13) remove-packs "atomiswave" ;;
91 | 14) remove-packs "c64" ;;
92 | 15) remove-packs "coleco" ;;
93 | 16) remove-packs "dragon32" ;;
94 | 17) remove-packs "dreamcast" ;;
95 | 18) remove-packs "electron" ;;
96 | 19) remove-packs "famicon" ;;
97 | 20) remove-packs "fds" ;;
98 | 21) remove-packs "gameandwatch" ;;
99 | 22) remove-packs "gb" ;;
100 | 23) remove-packs "gba" ;;
101 | 24) remove-packs "gbc" ;;
102 | 25) remove-packs "gamegear" ;;
103 | 26) remove-packs "intellivision" ;;
104 | 27) remove-packs "lightgun" ;;
105 | 28) remove-packs "markiii" ;;
106 | 29) remove-packs "mastersystem" ;;
107 | 30) remove-packs "megadrive" ;;
108 | 31) remove-packs "megadrive-japan" ;;
109 | 32) remove-packs "msx" ;;
110 | 33) remove-packs "msx2" ;;
111 | 34) remove-packs "n64" ;;
112 | 35) remove-packs "naomi" ;;
113 | 36) remove-packs "nds" ;;
114 | 37) remove-packs "neogeo" ;;
115 | 38) remove-packs "ngpc" ;;
116 | 39) remove-packs "nes" ;;
117 | 40) remove-packs "openbor" ;;
118 | 41) remove-packs "oric" ;;
119 | 42) remove-packs "pokemini" ;;
120 | 43) remove-packs "psx" ;;
121 | 44) remove-packs "psp" ;;
122 | 45) remove-packs "saturn" ;;
123 | 46) remove-packs "saturn-japan" ;;
124 | 47) remove-packs "scummvm" ;;
125 | 48) remove-packs "sega32x" ;;
126 | 49) remove-packs "segacd" ;;
127 | 50) remove-packs "sfc" ;;
128 | 51) remove-packs "sg-1000" ;;
129 | 52) remove-packs "snes" ;;
130 | 53) remove-packs "snes-msu1" ;;
131 | 54) remove-packs "supergrafx" ;;
132 | 55) remove-packs "tg16" ;;
133 | 56) remove-packs "vectrex" ;;
134 | 57) remove-packs "videopac" ;;
135 | 58) remove-packs "virtualboy" ;;
136 | 59) remove-packs "vmu" ;;
137 | 60) remove-packs "wonderswancolor" ;;
138 | 61) remove-packs "x1" ;;
139 | 62) remove-packs "x68000" ;;
140 | 63) remove-packs "zmachine" ;;
141 | 64) remove-packs "zxspectrum" ;;
142 | *) break ;;
143 | esac
144 | done
145 | }
146 |
147 | function remove-packs() {
148 | if [ ! -d "$HOME/RetroPie/roms/${1}/" ];
149 | then dialog --sleep 1 --title "${1} FOLDER MISSING!" --msgbox "NO GAMES PRESENT " 6 40;
150 | else
151 | clear
152 | sudo rm -R "$HOME"/RetroPie/roms/"${1}"
153 | mkdir "$HOME"/RetroPie/roms/"${1}"
154 | fi
155 | }
156 |
157 | Remove-Menu
158 |
--------------------------------------------------------------------------------
/scripts/Server-Check.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | #---MAIN SERVERS---#
4 |
5 | wget -q --spider https://archive.org/download/the-devils-box-alt
6 | if [ $? -eq 0 ]; then
7 | dialog --sleep 1 --title "MAIN SERVER CHECK" --msgbox "
8 | ---MAIN SERVERS ARE UP AND RUNNING---" 0 0
9 | else
10 | dialog --sleep 1 --title "MAIN SERVER CHECK" --msgbox "
11 | ---MAIN SERVERS ARE DOWN---" 0 0
12 | fi
13 | sleep 1
14 |
15 | #---HACKS SERVERS---#
16 | wget -q --spider https://archive.org/download/the-devils-box-alt
17 | if [ $? -eq 0 ]; then
18 | dialog --sleep 1 --title "HACKS SERVER CHECK" --msgbox "
19 | ---HACKS SERVERS ARE UP AND RUNNING---" 0 0
20 | else
21 | dialog --sleep 1 --title "HACKS SERVER CHECK" --msgbox "
22 | ---HACKS SERVERS ARE DOWN----" 0 0
23 | fi
24 | sleep 1
25 |
26 | #---PICK & CHOOSE SERVERS---#
27 | wget -q --spider https://archive.org/download/the-devils-box-alt
28 | if [ $? -eq 0 ]; then
29 | dialog --sleep 1 --title "PICK & CHOOSE SERVER CHECK" --msgbox "
30 | ---PICK CHOOSE SERVERS ARE UP AND RUNNING---" 0 0
31 | else
32 | dialog --sleep 1 --title "PICK CHOOSE SERVER CHECK" --msgbox "
33 | ---PICK CHOOSE SERVERS ARE DOWN---" 0 0
34 | fi
35 | sleep 1
36 |
37 | #---PSP SERVERS---#
38 | wget -q --spider https://archive.org/download/PSP_US_Arquivista
39 | if [ $? -eq 0 ]; then
40 | dialog --sleep 1 --title "PSP SERVER CHECK" --msgbox "
41 | ---PSP SERVERS ARE UP AND RUNNING---" 0 0
42 | else
43 | dialog --sleep 1 --title "PSP SERVER CHECK" --msgbox "
44 | ---PSP SERVERS ARE DOWN---" 0 0
45 | fi
46 | sleep 1
47 |
48 | wget -q --spider https://archive.org/download/the-devils-box-alt/model3
49 | if [ $? -eq 0 ]; then
50 | dialog --sleep 1 --title "MODEL 3 SERVER CHECK" --msgbox "
51 | ---MODEL 3 SERVERS ARE UP AND RUNNING---" 0 0
52 | else
53 | dialog --sleep 1 --title "PSP SERVER CHECK" --msgbox "
54 | ---MODEL 3 SERVERS ARE DOWN---" 0 0
55 | fi
56 | sleep 1
57 |
58 | #---MSU1 SERVERS---#
59 | wget -q --spider https://archive.org/download/secretofmanausamsu1hackbydarkshockv1.0
60 | if [ $? -eq 0 ]; then
61 | dialog --sleep 1 --title "MSU1 SERVER CHECK" --msgbox "
62 | ---MSU1 SERVERS ARE UP AND RUNNING---" 0 0
63 | else
64 | dialog --sleep 1 --title "MSU1 SERVER CHECK" --msgbox "
65 | ---MSU1 SERVERS ARE DOWN----" 0 0
66 | fi
67 | sleep 1
68 |
69 | #---LIGHTGUN PACKS SERVERS---#
70 | wget -q --spider https://archive.org/download/sinden_barebones_rompack
71 | if [ $? -eq 0 ]; then
72 | dialog --sleep 1 --title "LIGHTGUN PACKS SERVER CHECK" --msgbox "
73 | ---LIGHTGUN PACKS SERVER IS UP AND RUNNING---" 0 0
74 | else
75 | dialog --sleep 1 --title "MSU1 SERVER CHECK" --msgbox "
76 | ---LIGHTGUN PACKS SERVERS IS DOWN----" 0 0
77 | fi
78 | sleep 1
79 |
80 |
81 | dialog --sleep 1 --title "CHECK COMPLETE" --msgbox "
82 | ---------------------------------
83 | ----- SERVER CHECK COMPLETE -----
84 | ---------------------------------
85 | --REPORT DOWN SERVERS TO DEVILS--
86 | ---------------------------------
87 | ---THANKS FOR USING DEVILS BOX---
88 | ---------------------------------" 0 0
89 |
90 |
91 |
92 |
--------------------------------------------------------------------------------
/scripts/Special-Packs.sh:
--------------------------------------------------------------------------------
1 |
2 | #!/bin/bash
3 | ##-------------------------##
4 | ## HOST SITES ##
5 | ##-------------------------##
6 | HOST1="https://archive.org/download/devils-wine-packs"
7 | HOST2="https://archive.org/download/thing-box"
8 |
9 |
10 | function Special-Packs() {
11 | while true; do
12 | local choice
13 | choice=$(dialog --backtitle "$BACKTITLE" --title " CONSOLES DOWNLOAD MENU" \
14 | --ok-label Download --cancel-label Main-Menu \
15 | --menu "PRESS A/ENTER SUBMENU" 30 70 50 \
16 | 1 "Christmas Hack Packs " \
17 | 2 "COMING SOON" \
18 | 3 "COMING SOON" \
19 | 4 "COMING SOON" \
20 | 5 "COMING SOON" \
21 | 2>&1 >/dev/tty)
22 |
23 | case "$choice" in
24 | 1) christmas-hacks ;;
25 | 2) no ;;
26 | 3) no ;;
27 | 4) no ;;
28 | 5) no ;;
29 | +) none ;;
30 | *) break ;;
31 | esac
32 | done
33 | }
34 |
35 | function christmas-hacks() {
36 | while true; do
37 | local choice
38 | choice=$(dialog --backtitle "$BACKTITLE" --title " CHRISTMAS PACKS DOWNLOAD MENU" \
39 | --ok-label Download --cancel-label Main-Menu \
40 | --menu "PRESS A/ENTER DOWNLOAD PACK" 30 70 50 \
41 | 1 "NES-- GAME PACK " \
42 | 2 "N64-- GAME PACK" \
43 | 3 "SNES--GAME PACK" \
44 | 4 "WINE--Merry Gear Solid Pack" \
45 | 2>&1 >/dev/tty)
46 |
47 | case "$choice" in
48 | 1) xmas-nes-pack "nes" "xmas22-nes.zip" ;;
49 | 2) xmas-n64-pack "n64" "xmas22-n64.zip" ;;
50 | 3) xmas-snes-pack "snes" "xmas22-snes-zip" ;;
51 | 4) wine-xmas-pack "Merry-Gear-Pack.zip" ;;
52 | +) none ;;
53 | *) break ;;
54 | esac
55 | done
56 | }
57 |
58 | ######---------------------------------XMAS HACKS-----------------------#####
59 |
60 | function xmas-nes-pack() {
61 | if [ ! -d "$HOME/RetroPie/roms/nes/" ]; then dialog --sleep 1 --title "NES FOLDER MISSING!" --msgbox "Please Install EMU First" 6 40;
62 | else
63 | clear
64 | wget -m -r -np -nH -nd -R "index.html" ${HOST2}/xmas22-nes.zip -P "$HOME"/RetroPie/roms/nes -erobots=off
65 | unzip -o "$HOME"/RetroPie/roms/nes/xmas22-nes.zip -d "$HOME"/RetroPie/roms/nes/
66 | sudo rm "$HOME"/RetroPie/roms/nes/xmas22-nes.zip
67 | fi
68 | }
69 |
70 | function xmas-snes-pack() {
71 | if [ ! -d "$HOME/RetroPie/roms/snes/" ]; then dialog --sleep 1 --title "SNES FOLDER MISSING!" --msgbox "Please Install EMU First" 6 40;
72 | else
73 | clear
74 | wget -m -r -np -nH -nd -R "index.html" ${HOST2}/xmas22-snes.zip -P "$HOME"/RetroPie/roms/snes -erobots=off
75 | unzip -o "$HOME"/RetroPie/roms/snes/xmas22-snes.zip -d "$HOME"/RetroPie/roms/snes/
76 | sudo rm "$HOME"/RetroPie/roms/nes/xmas22-snes.zip
77 | fi
78 | }
79 |
80 | function xmas-n64-pack() {
81 | if [ ! -d "$HOME/RetroPie/roms/n64/" ]; then dialog --sleep 1 --title "N64 FOLDER MISSING!" --msgbox "Please Install EMU First" 6 40;
82 | else
83 | clear
84 | wget -m -r -np -nH -nd -R "index.html" ${HOST2}/xmas22-n64.zip -P "$HOME"/RetroPie/roms/n64 -erobots=off
85 | unzip -o "$HOME"/RetroPie/roms/n64/xmas22-n64.zip -d "$HOME"/RetroPie/roms/n64/
86 | sudo rm "$HOME"/RetroPie/roms/nes/xmas22-n64.zip
87 | fi
88 | }
89 |
90 |
91 | function wine-xmas-pack() {
92 | if [ ! -d "$HOME/RetroPie/roms/wine/" ]; then dialog --sleep 1 --title ""${1}" FOLDER MISSING!" --msgbox "Please Install Wine First" 6 40;
93 | else
94 | clear
95 | wget -m -r -np -nH -nd -R "index.html" ${HOST1}/"${1}" -P "$HOME"/RetroPie/roms/wine -erobots=off
96 | unzip -o "$HOME"/RetroPie/roms/wine/"${1}" -d "$HOME"/RetroPie/roms/wine/
97 | chmod 755 "$HOME"/RetroPie/roms/wine/*.sh
98 | sudo rm "$HOME"/RetroPie/roms/wine/"${1}"
99 | fi
100 | }
101 |
102 | ######---------------------------------HALLOWEEN HACKS-----------------------#####
103 |
104 |
105 |
106 | ######---------------------------------XMAS PACKS-----------------------#####
107 |
108 |
109 | Special-Packs
110 |
--------------------------------------------------------------------------------
/scripts/System-Tools.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | export NCURSES_NO_UTF8_ACS=1
3 | BACKTITLE="My name is... Shake-Zula. The mic-rula, The old schoolah, Ya wanna trip? I'll bring it to ya"
4 | DB_SETTINGS="$HOME/.devilsbox/db_settings.ini"
5 |
6 | #-----------COLORS----------#
7 | rst="$(tput sgr0)"
8 | fgred="${rst}$(tput setaf 1)"
9 | bld="$(tput bold)"
10 | bfgred="${bld}$(tput setaf 1)"
11 |
12 | #-----------INTRO VIDEO-----------#
13 | clear
14 | if grep 'intro_splash_flag=1' "$DB_SETTINGS" > /dev/null 2>&1; then
15 | omxplayer "$HOME"/Devils-Box/files/videos/system-tools.mp4 > /dev/null 2>&1
16 | fi
17 |
18 | function system-tools() {
19 | while true; do
20 | local choice
21 | choice=$(dialog --backtitle "$BACKTITLE" --title " SYSTEM TOOLS " \
22 | --ok-label Select --cancel-label Back \
23 | --menu "SELECT Tool AND PRESS A " 20 50 30 \
24 | 1 "Reboot System" \
25 | 2 "Restart EmuStation" \
26 | 3 "Show System Info" \
27 | 4 "Expand System Memory" \
28 | 2>&1 >/dev/tty)
29 |
30 | case "$choice" in
31 | 1) system_reboot ;;
32 | 2) restart_es ;;
33 | 3) show_sysinfo ;;
34 | 4) expand_mem ;;
35 | *) break ;;
36 | esac
37 | done
38 | }
39 |
40 |
41 |
42 | #------SHOW DISK SPACE FUNCTION------#
43 | function show_sysinfo() {
44 | clear
45 | cpuTempC=""
46 | cpuTempF=""
47 | gpuTempC=""
48 | gpuTempF=""
49 | if [[ -f "/sys/class/thermal/thermal_zone0/temp" ]]; then cpuTempC=$(($(cat /sys/class/thermal/thermal_zone0/temp)/1000)) && cpuTempF=$((cpuTempC*9/5+32)); fi
50 | if [[ -f "/opt/vc/bin/vcgencmd" ]]; then
51 | if gpuTempC=$(/opt/vc/bin/vcgencmd measure_temp); then
52 | gpuTempC=${gpuTempC:5:2}
53 | gpuTempF=$((gpuTempC*9/5+32))
54 | else
55 | gpuTempC=""
56 | fi
57 | fi
58 | let upSeconds="$(/usr/bin/cut -d. -f1 /proc/uptime)"
59 | let secs=$((${upSeconds}%60))
60 | let mins=$((${upSeconds}/60%60))
61 | let hours=$((${upSeconds}/3600%24))
62 | let days=$((${upSeconds}/86400))
63 | UPTIME=`printf "%d days, %02dh%02dm%02ds" "$days" "$hours" "$mins" "$secs"`
64 |
65 | echo "$(tput setaf 7)
66 | ........OS INFO.......:
67 | $(tput setaf 2)`uname -srmo`
68 | `lsb_release -ds`
69 | `date +"%A, %e %B %Y, %r"`
70 | Uptime......: ${UPTIME}
71 | Last Login..: `exec -- last | head -1`
72 | $(tput setaf 7)......SYSTEM INFO.....:
73 | $(tput setaf 1)CPU Temperature.......: ${cpuTempC} C/${cpuTempF} F
74 | GPU Temperature.......: ${gpuTempC} C/${gpuTempF} F
75 | $(tput setaf 3)CPU Model.............: `lscpu | grep "Model name"`
76 | CPU Max Speed.........: `lscpu | grep max`
77 | GPU Version...........: `exec -- /opt/vc/bin/vcgencmd version`
78 | $(tput setaf 7) Size Used Avail Used%
79 | $(tput setaf 3)Boot Partition........: `df -h | grep '/dev/sda1' | awk '{print $2," "$3," "$4," "$5}'`
80 | Root Partition........: `df -h | grep '/dev/root' | awk '{print $2," "$3," "$4," "$5}'`
81 | $(tput setaf 6)Memory................: `cat /proc/meminfo | grep MemFree | awk '{printf( "%.2f\n", $2 / 1024 )}'`MB (Free) / `cat /proc/meminfo | grep MemTotal | awk '{printf( "%.2f\n", $2 / 1024 )}'`MB (Total)
82 | Running Processes.....: `ps ax | wc -l | tr -d " "`
83 | LAN IP Address........: `ip -4 route get 8.8.8.8 2>/dev/null | awk '{print $(NF-2); exit}'`
84 | WAN IP Address........: `curl -4 icanhazip.com 2>/dev/null | awk '{print $NF; exit}'`$(tput sgr0)"
85 | echo
86 | read -n 1 -s -r -p "Press any key to continue"
87 | }
88 |
89 | #------REBOOT FUNCTION------#
90 | function system_reboot() {
91 | clear
92 | read -n 1 -s -r -p "Press any key to Reboot"
93 | sudo reboot
94 | }
95 |
96 | #------EXPAND MEM.------#
97 | function expand_mem() {
98 | echo "This will Expand Memory and Reboot"
99 | read -n 1 -s -r -p "Press any key to Continue"
100 | sudo raspi-config --expand-rootfs
101 | sudo reboot
102 | }
103 |
104 | #-----------Restart ES--------#
105 | function restart_es() {
106 | echo "ES Restart Selected"
107 | sleep 3
108 | echo "Emulationstation Will Restart In"
109 | sleep 2
110 | echo "3"
111 | sleep 1
112 | echo "2"
113 | sleep 1
114 | echo "Restarting Now"
115 | killall emulationstation
116 | sudo openvt -c 1 -s -f emulationstation 2>&1
117 | }
118 |
119 | system-tools
120 |
--------------------------------------------------------------------------------
/scripts/Tester-Menu.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | IFS=';'
3 |
4 | function correct() {
5 | local choice
6 |
7 | while true; do
8 | choice=$(dialog --backtitle "$BACKTITLE" --title "TESTERS & DEVILS MENU " \
9 | --ok-button Select --cancel-button Back \
10 | --menu " TEST SOMETHING " 30 70 50 \
11 | + "--FINISHED OR CLOSE TO IT--" \
12 | + "--UNFINISHED/NOT WORKING--" \
13 | 1 "Collections Helper " \
14 | 2 "Icon Helper " \
15 | + "--------------- " \
16 | 3 "Update Testers Menu" \
17 | 2>&1 >/dev/tty)
18 |
19 | case "$choice" in
20 | +) none ;;
21 | 1) bash "$HOME"/Devils-Box/helpers/emulationstation/Collections.sh ;;
22 | 2) bash "$HOME"/Devils-Box/helpers/emulationstation/Icon-Helper.sh ;;
23 | +) none ;;
24 | +) no ;;
25 | 3) update-test ;;
26 | *) break ;;
27 | esac
28 | done
29 | }
30 |
31 | function update-test() {
32 | sudo rm "$HOME"/Devils-Box/scripts/Tester-Menu.sh
33 | wget https://raw.githubusercontent.com/Retro-Devils/Devils-Box/main/scripts/Tester-Menu.sh -P "$HOME"/Devils-Box/scripts/
34 | }
35 |
36 | echo
37 | read -p "PLEASE ENTER CODE " useranswer
38 | echo
39 | echo "YOU ENTERED ${useranswer} ..PROCESSING.. "
40 | sleep 2
41 | if [ $useranswer = "420" ]; then correct; else omxplayer "$HOME"/Devils-Box/files/videos/droids.mp4; fi
42 |
--------------------------------------------------------------------------------