Personal share directory wrong in Catapult

By Pedrete

Expert (125)

Pedrete's picture

25-01-2015, 21:45

Hi!

I have a problem with Catapult. The personal share dir is automatically created by Catapult, but it is in the wrong place. I have 2 hard disks with 4 partitions. My "My Documents" directory is in the disk D:, but Catapult creates the share directory in the last one, the disk F:

I am running the last version of Catapult and OpenMSX (0.11) under Windows 8.

Can I change the personal share dir? How?

Thanks!

Login or register to post comments

By Manuel

Ascended (18162)

Manuel's picture

25-01-2015, 22:12

It's not created by Catapult, but by openMSX itself, based on the user's home directory path.

We use a Windows call to get the "My Documents" home dir using the Windows API call SHGetSpecialFolderPathW(nullptr, bufW, CSIDL_PERSONAL, TRUE). I have no idea why Windows itself gives the 'wrong' answer in your case (which is quite non-default!).

Anyway, the location of the user data dir can be overridden with an environment variable. So, instead of [home dir]/[openMSX dir]/share you can also define a (full) path with setting the environment variable OPENMSX_USER_DATA.

I hope that helps.