Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Use relative paths instead of absolute paths
#1
I usually install many programs and games to my USB flashdrive, cause I never know which work computer I'll be using.

Most games work just fine this way, but some won't remember settings as they are stored to user folders or registry keys.

This program is great, but whenever I get to a new computer and run it, it wants to find roms and bioses in the default paths again (reading these from registry?) and I have to set it to my flash drive again, E:\games\PCSX2 in this case. But on the other computer it's I:\ drive letter, but the relative path will never change.

Would it be possible to modify the program/installer to use relative paths instead and store settings locally in the PCSX2 folder?

So my path would be "..\games\PCSX2" and it wouldn't matter what drive letter a computer assigned my flash drive.
Reply

Sponsored links

#2
Create a file named portable and with ini extension
Inside it type RunWizard=0

My games are in a folder called games inside the pcsx2 folder and by looking at the pcsx2_ui.ini,the paths are relative,not absolute
Reply
#3
Awesome, loving this forum so far, amazing members. If this was in the FAQ sorry if I missed it, but I did look it over.
Reply
#4
That's how the portable version of pcsx2 work...you probably used the installer version and copied the installed files to your flash drive
Reply
#5
That is exactly what I did, I did not see an installer for portable version. Smile
Reply
#6
The portable version is just an archive which you extract where ever you want
Official
http://forums.pcsx2.net/Thread-PCSX2-1-2...ows-Binary
Beta
http://buildbot.orphis.net/pcsx2/
Reply
#7
The portable version tries to use relative paths as much as it can, as follows:
- If it's within the pcsx2 dir then it's relative to the pcsx2 dir (e.g. "games\ico.iso").
- Else if it's at the same drive-letter as the pcsx2 folder, then it's relative to the drive root (e.g. "\games\ico.iso").
- Else it's absolute (e.g. "d:\games\ico.iso").

The middle "rule" allows to have few portable dirs on a thumbdrive and then an ISO dir which is someplace on that drive, and it will still work even if you move the thumbdrive between systems and it gets a different drive letter on each system - even when the ISOs dir is not inside the pcsx2 dir.
[i7-3630qm/gt650m-2G/Win-7] [i7-4500u/R.HD8850m/Win-8.1] [2010-MBA/OSX-10.9.x]. Scroll smoothly with SmoothWheel for Firefox.
Reply




Users browsing this thread: 1 Guest(s)