Healix/Gw2Launcher

Import accounts: dat_path & gfx_path copied, not reused?

AndrewBourgeois opened this issue · 4 comments

When importing account, I noticed that using this in the XML:

<dat_path>C:\Users\andre\AppData\Roaming\Gw2Launcher\data\Local-Alts.dat</dat_path>
<gfx_path>C:\Users\andre\AppData\Roaming\Gw2Launcher\data\Graphics-Alts.xml</gfx_path>

will result in the account being added to gw2launcher with:
DAT: C:\Users\andre\AppData\Local\Temp\tmp6A36.tmp
GFX: C:\Users\andre\AppData\Local\Temp\tmp6A37.tmp

And after launching the account for the first time, the paths will become:

<dat_path>C:\Users\andre\AppData\Roaming\Gw2Launcher\data\2.dat</dat_path>
<gfx_path>C:\Users\andre\AppData\Roaming\Gw2Launcher\data\3.xml</gfx_path>

And 3.dat + 4.xml for the next account etc.
Why does it not use what was in the XML?

Build: 7254

I realized that you can "Edit (multiple)" > "Local.dat" > "..." > "Share with" to then select 1 account's "Local.dat" file (same for the Graphics XML).
Still... it would be a bit nicer if the import were to respect the chosen file.

Healix commented

The files used when importing are only a suggestion. If it's not an existing path used by Gw2Launcher, it's copied and made into one of Gw2Launcher's files.

I could make it use the exact path you specify, but that's not really intended and doing that is only possible via importing.

I see. I'll try adding an existing path when importing the remaining accounts.

It doesn't look like gw2launcher detects that the DAT and GFX XML files are already used in other accounts because it asks me if I want to copy or move the files when importing accounts:
image
I'll just remove these from the XML and edit the accounts after importing.