Last active
December 3, 2023 18:27
-
-
Save chipacoxyz/1d304cab190849864dba563517719685 to your computer and use it in GitHub Desktop.
cpctelera and rvm setup on wsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Aclaration: cpctelera only works for the bash shell. | |
Install ubuntu deps: | |
sudo apt install build-essential bison flex mono-complete libboost-dev libfreeimage-dev | |
I've got this problem with the mono package "https://github.com/microsoft/WSL/issues/5466". | |
This command fixes it: | |
sudo update-binfmts --disable cli | |
consider adding it to your shell autostart | |
git clone https://github.com/lronaldo/cpctelera | |
cd cpctelera | |
git checkout development | |
./setup.sh | |
source .bashrc | |
delete this chuck of code of the ~/cpctelera/cpctelera/tools/scripts/cpct_rvm file. | |
&> /dev/null | |
It's located at the bottom of the cpct_rvm file | |
your code should look like this: | |
# Launch RVM with appropriate path for DSK/SNA file | |
if $BACKGROUND; then | |
"${RVM[@]}" "$SHADER" -b="$MACHINE" "$FILEMOD" "$FILEPATH" "$WARPMODE" "$AUTOPLAY" "$EXECUTEFILE" | |
else | |
"${RVM[@]}" "$SHADER" -b="$MACHINE" "$FILEMOD" "$FILEPATH" "$WARPMODE" "$AUTOPLAY" "$EXECUTEFILE" | |
fi | |
You can download rvm from https://retrovirtualmachine.org/download/, The version I downloaded is 2.0 Beta-1 R7 for windows x64. | |
Extract it and ualá. | |
all right, you can type cpct_rvm on your bash shell and answer this | |
You have it installed? Y | |
Dir path where your windows rvm executable file is (you'll need to download it manually) ex: /mnt/c/rvm/RetroVirtualMachine.exe | |
If you have mistyped the rvm location or something, you can rm the ~/cpctelera/cpctelera/tools/scripts/.cpct_rvm.conf and the script will ask you one more time for the executable location. | |
All right, when you have all this, your cpct_rvm command should open the emulator without any throuble. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm really considering to use winape, I have tryied it an it's far more faster than rvm... i have modified a little the cpct_winape script to make it works, I'll publish a good setup installation when I become less newbie 😑, currently these gists works as a memory helper.