Recalbox Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • recalbox.com
    • Gitlab repository
    • Documentation
    • Discord

    Solved How to specify BIOS when running PS1 game?

    Community projects
    specify bios running ps1 game?
    2
    2
    381
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • neekin
      neekin last edited by

      Hey guys, I'm playing some special PS1 games that require some special BIOS to run, so I wrote an event script for that. When the game is running, copying a special BIOS to replace a normal BIOS still has no effect. Did I overlook something?

      # /Volumes/share/userscripts/runpsxgame[rungame](sync).sh
      param=""
      destination="/recalbox/share/bios/scph7001.bin"
      original_destination="/recalbox/share/bios/psx/scph7001.bin"
      while [[ $# -gt 0 ]]; do
          case $1 in
              -param)
                  if [[ -n $2 ]]; then
                      param="$2"
                      shift 2
                  else
                      exit 1
                  fi
                  ;;
              *)
                  shift
                  ;;
          esac
      done
      
      if [[ "$param" == *"roms/psx"* ]]; then
          game_name="${param#*roms/psx/}"
          game_name="${game_name%.*}"
          bios_file="${param%/*}/$game_name.bios"
      
          if [[ -f "$bios_file" ]]; then
              cp "$bios_file" "$destination"
          else
              cp "$original_destination" "$destination"
          fi
      fi
      
      neekin 1 Reply Last reply Reply Quote 0
      • Topic has been marked as a question  neekin neekin 
      • Topic has been marked as solved  neekin neekin 
      • neekin
        neekin @neekin last edited by neekin

        @neekin

        Actually, different bios need to be used according to different simulators, and pcsx_rearmed is used by default
        So the priority recommendation for BIOS is scph101.bin. I opened two scripts and used a special BIOS when entering the game, and restored the BIOS when exiting the game

        // psxrungame[rungame](sync).sh
        
        param=""
        destination="/recalbox/share/bios/scph101.bin"
        while [[ $# -gt 0 ]]; do
            case $1 in
                -param)
                    if [[ -n $2 ]]; then
                        param="$2"
                        shift 2
                    else
                        exit 1
                    fi
                    ;;
                *)
                    shift
                    ;;
            esac
        done
        
        if [[ "$param" == *"roms/psx"* ]]; then
            game_name="${param#*roms/psx/}"
            game_name="${game_name%.*}"
            bios_file="${param%/*}/$game_name.bios"
        
            if [[ -f "$bios_file" ]]; then
                cp "$bios_file" "$destination"
            fi
        fi
        
        
        // psxexitgame[endgame](sync).sh
        param=""
        destination="/recalbox/share/bios/scph101.bin"
        original_destination="/recalbox/share/bios/psx/scph101.bin"
        while [[ $# -gt 0 ]]; do
            case $1 in
                -param)
                    if [[ -n $2 ]]; then
                        param="$2"
                        shift 2
                    else
                        exit 1
                    fi
                    ;;
                *)
                    shift
                    ;;
            esac
        done
        
        if [[ "$param" == *"roms/psx"* ]]; then
            game_name="${param#*roms/psx/}"
            game_name="${game_name%.*}"
            bios_file="${param%/*}/$game_name.bios"
        
            if [[ -f "$bios_file" ]]; then
                cp "$original_destination" "$destination"
            fi
        fi
        
        
        1 Reply Last reply Reply Quote 0
        • First post
          Last post

        Want to support us ?

        49
        Online

        98.6k
        Users

        28.1k
        Topics

        187.0k
        Posts

        Copyright © 2021 recalbox.com