phy1um / ps2-homebrew-livestreams

Repo for code written during my Playstation 2 Homebrew livestreams
MIT License
47 stars 6 forks source link

Dynamic Base Path Handling #14

Closed phy1um closed 2 years ago

phy1um commented 2 years ago

The current strategy for handling argv is simplistic. I have observed a few different behaviors for argv depending on how the ELF is launched:

  1. PCSX2 launching the ELF passes the absolute path from the filesystem as argv[0] eg. host:/home/tom/ps2-game/test.elf
  2. ps2link over the network passes nothing to argv regardless of commandline arguments
  3. uLaunchElf passes the path in to argv[0] eg mass:/...
phy1um commented 2 years ago

This is also complicated by ISO loading, where paths are totally different again eg mkisofs does not seem to like nested folders, and ISO 9660 has strict filename lengths!