rpcs3 icon indicating copy to clipboard operation
rpcs3 copied to clipboard

MacOS: RPCS3 saves application files on system drive even if the software is located on an external drive

Open mavethee opened this issue 2 years ago • 11 comments

Quick summary

RPCS3 partially relies on files located on system drive after setting custom path in VFS.

Details

It gets quite confusing when I wanna store all my configs RPCS3 related, dumped games and logs just as on Windows in one place.

Attach a log file

RPCS3.log

System configuration

  • SYS: RPCS3 v0.0.26-14636-3202cc70 Alpha | master
  • SYS: VirtualApple @ 2.50GHz | 8 Threads | 16.00 GiB RAM | TSC: 1.000GHz
  • SYS: Operating system: macOS, Version: 13.2.0
  • SYS: Current Time: 2023-01-29T11:34:08
  • RSX: Found vulkan-compatible GPU: 'Apple M1' running on driver 0.2.986
  • SYS: Firmware version: 4.89

mavethee avatar Jan 29 '23 10:01 mavethee

The VFS only affects emulation. There's no reason to add a VFS for the software itself

Megamouse avatar Jan 29 '23 10:01 Megamouse

Well, I probably named the issue wrong way, the case is i want to store GUI settings, logs and cache in the same place as whole emulator on external drive, even setting up custom path for $EmulatorDir makes still create and use cache on main drive not external where RPCS3 is located.

mavethee avatar Jan 29 '23 10:01 mavethee

oh. it's an apple issue. i don't care then :)

Megamouse avatar Jan 29 '23 10:01 Megamouse

it has nothing to do with vfs then

Megamouse avatar Jan 29 '23 10:01 Megamouse

the title is misleading

Megamouse avatar Jan 29 '23 10:01 Megamouse

oh. it's an apple issue. i don't care then :)

Respect, just pointing it out, maybe someone will care at some point :)

mavethee avatar Jan 29 '23 10:01 mavethee

On mac these locations are determined by the HOME environment variable.

https://github.com/RPCS3/rpcs3/blob/c471120a80ec6f12cd4489e1a9be073d7d9c96f2/Utilities/File.cpp#L1798-L1799

Maybe it's possible to set up a script or something that redirects this env var only for rpcs3 and not for other applications.

MSuih avatar Jan 29 '23 11:01 MSuih

Okay so easiest workaround for now seems to be just a symlink, or setting up custom home env, which I use for most but in this case have a blackout or something in my mind, but yeah would be cool to see if someone will implement that.

mavethee avatar Jun 21 '23 10:06 mavethee

setting the HOME env var will let you place your files on an external drive.

HOME=/Volumes/HDD/rpcs3 open /Volumes/HDD/rpcs3/RPCS3.app

This will create the Application Support and Caches folders on the external drive.

qurious-pixel avatar Jun 21 '23 12:06 qurious-pixel

It's the same on Linux. Since you can't really store user data in the .appimage on Linux, and you shouldn't store it in the .app bundle on macOS, it is stored in the standard folder for each OS i.e. .config/rpcs3 on Linux and Application Support on macOS. The Windows version is distributed as a "portable" version, but if it were installable , user data would likely be stored in %appdata%.

nastys avatar Jun 21 '23 15:06 nastys

setting the HOME env var will let you place your files on an external drive.

HOME=/Volumes/HDD/rpcs3 open /Volumes/HDD/rpcs3/RPCS3.app

This will create the Application Support and Caches folders on the external drive.

Doesn't work unfortunately, when opening RPCS3, it simply just recreates the folder without the symlink and proceeds by ignoring the symlink which was created.

githubuserpop avatar Jun 15 '24 00:06 githubuserpop