Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Add Emulators.
#1
Hi, AlexKidd.
Some weeks ago i asked about the beta of zx81 and plus4 emulators. You give me a link about how create scripts to add..
Now this thread is deleted (i think was an old changelog of 4.0).
Can you give me again the link i have some free time this week and i want to try.
Reply
#2
I deleted it by mistake, sorry.
Just refer to this page and follow the pattern to make a new one or edit existing scripts
https://github.com/retr0rangepi/RetroPie.../emulators

Send us the changes or push them to github (y)
Reply
#3
(01-02-2018, 10:26 PM)alexkidd Wrote: I deleted it by mistake, sorry.
Just refer to this page and follow the pattern to make a new one or edit existing scripts
https://github.com/retr0rangepi/RetroPie.../emulators

Send us the changes or push them to github (y)

I made some test for adding yapesdl for plus4 and sz81 for zx81.
Some things are not clear:
1) Not sure about the part of function configure_nameoftheemulator()
where i can find some info?
2) The pictures of the emulator. Once i create a new folder for an emulator i need that the theme supports this emulator to have a picture for him? Correct.
Here my scripts...
They compile, create the folder but once i copy files in the folder and reboot i have no the emulator.
I suppose that is a problem about point 1.
here my code for plus4:

Code:
#!/usr/bin/env bash

# This file is part of The RetroPie Project
#
# The RetroPie Project is the legal property of its developers, whose names are
# too numerous to list here. Please refer to the COPYRIGHT.md file distributed with this source.
#
# See the LICENSE.md file at the top-level directory of this distribution and
# at https://raw.githubusercontent.com/RetroPie/RetroPie-Setup/master/LICENSE.md
#

rp_module_id="yapesdl"
rp_module_desc="Multiplatform Commodore 64 and 264 family"
rp_module_help="ROM Extensions: .crt .d64 .g64 .prg .t64 .tap .x64 .zip .vsf .CRT .D64 .G64 .PRG .T64 .TAP .X64 .ZIP .VSF\n\nCopy your plus4 games to $romdir/plus4."
rp_module_licence="GPL2 https://raw.githubusercontent.com/simonowen/simcoupe/master/License.txt"
rp_module_section="opt"
rp_module_flags=""

function depends_yapesdl() {
   getDepends libsdl1.2-dev
}

function sources_yapesdl() {
   gitPullOrClone "$md_build" https://github.com/calmopyrin/yapesdl.git
}

function build_yapesdl() {    
   make clean
    make
}

function install_yapesdl() {
   md_ret_files=(
       'yapesdl'
       'README.SDL'
   )
}

function configure_yapesdl() {
   mkRomDir "plus4"
   moveConfigDir "$home/.yapesdl" "$md_conf_root/$md_id"
   addEmulator 0 "$md_id" "plus4" "$md_inst/yapesdl %ROM%"
   addSystem "plus4"
}

 and for sz81:
Code:
#!/usr/bin/env bash

# This file is part of The RetroPie Project
#
# The RetroPie Project is the legal property of its developers, whose names are
# too numerous to list here. Please refer to the COPYRIGHT.md file distributed with this source.
#
# See the LICENSE.md file at the top-level directory of this distribution and
# at https://raw.githubusercontent.com/RetroPie/RetroPie-Setup/master/LICENSE.md
#

rp_module_id="sz81"
rp_module_desc="sz81 is a Sinclair ZX80/ZX81 emulator"
rp_module_help="ROM Extensions: .o .p .80 .81\n\nCopy your zx81 games to $romdir/zx81."
rp_module_licence="http://www.gnu.org/licenses/gpl-2.0.txt"
rp_module_section="opt"
rp_module_flags=""

function depends_sz81() {
   getDepends subversion
}

function sources_sz81() {
   svn checkout svn://svn.code.sf.net/p/sz81/code/sz81/ "$md_build"
}

function build_sz81() {
   
   make clean
   make
}

function install_sz81() {
   md_ret_files=(
       'data'
        'sz81'
   )
}

function configure_sz81() {
   mkRomDir "zx81"
   moveConfigDir "$home/.sz81" "$md_conf_root/$md_id"
   addEmulator 0 "$md_id" "zx81" "$md_inst/sz81 %ROM%"
   addSystem "zx81"
}
Reply
#4
i will give them a test and report.

the configure section:
mkRomDir = creates the rom folder
moveConfigDir = move the config dir from source default to /opt/retropie/configs/<system>
addEmulator = will generate the executable command for the emulator + rom in /opt/retropie/configs/<system>/emulators.cfg
addSystem = IIRC, will add system to emulationstation systems configuration

so, if the system is named plus4, EmulationStation theme must contains a folder named plus4 (very few theme support it, so consider this a bummer).
still have to check if plus4 needs to be added to ~/RetroPie-Setup/platforms.cfg (source: https://github.com/RetroPie/RetroPie-Set...tforms.cfg)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)