Where Saves Xplorer² The Color Tag Folder Locations?

Discussion & Support for xplorer² professional

Moderators: fgagnon, nikos, Site Mods

User avatar
pearliner
Member
Member
Posts: 54
Joined: 2016 Nov 24, 22:07

Where Saves Xplorer² The Color Tag Folder Locations?

Post by pearliner »

(ultimate version)

registry key
ini file ?
User avatar
pearliner
Member
Member
Posts: 54
Joined: 2016 Nov 24, 22:07

Re: Where Saves Xplorer² The Color Tag Folder Locations?

Post by pearliner »

ok i found it.
User avatar
nikos
Site Admin
Site Admin
Posts: 16401
Joined: 2002 Feb 07, 15:57
Location: UK

Re: Where Saves Xplorer² The Color Tag Folder Locations?

Post by nikos »

%APPDATA%\zabkat
User avatar
pearliner
Member
Member
Posts: 54
Joined: 2016 Nov 24, 22:07

Re: Where Saves Xplorer² The Color Tag Folder Locations?

Post by pearliner »

sometimes all the tags are deleted ,bug or design?


> tagdb.bin :P
infimum
Member
Member
Posts: 9
Joined: 2007 Dec 31, 01:45

Re: Where Saves Xplorer² The Color Tag Folder Locations?

Post by infimum »

For portable users, is there any way this folder can be stored in %X2DIR%?
User avatar
nikos
Site Admin
Site Admin
Posts: 16401
Joined: 2002 Feb 07, 15:57
Location: UK

Re: Where Saves Xplorer² The Color Tag Folder Locations?

Post by nikos »

no
paths are bound to change on different PCs so portable use is of little utility
Kilmatead
Platinum Member
Platinum Member
Posts: 4879
Joined: 2008 Sep 30, 06:52
Location: Baile Átha Cliath

Re: Where Saves Xplorer² The Color Tag Folder Locations?

Post by Kilmatead »

nikos wrote: 2026 Feb 20, 05:40 so portable use is of little utility
Except that the DefaultIniName member of the ContentDefaultParamStruct used in ContentSetDefaultParams() from the TC Plugins SDK defaults to %APPDATA%\zabkat for plugins which generate their own INI's, doesn't it?

My own plugins don't use that (they always generate within the same folder as the plugin file itself), but I think the rest of them do.

Should I spend the rest of my day proving this so I can just jam it down your throat later, or would you like to take my word for it? :twisted:

Edit: Too late

Code: Select all

void __stdcall ContentSetDefaultParams([[maybe_unused]] ContentDefaultParamStruct *dps) {
	wprintf(L"Source: %s", dps -> DefaultIniName);
}
Produces:

Code: Select all

Source: C:\Users\Kilmatead\AppData\Roaming\zabkat\tcplugins.ini
<Sigh> Sometimes I enjoy my job "stickin' it to da man", as they used to say. :wink: Attica! Attica!
User avatar
nikos
Site Admin
Site Admin
Posts: 16401
Joined: 2002 Feb 07, 15:57
Location: UK

Re: Where Saves Xplorer² The Color Tag Folder Locations?

Post by nikos »

x2 sets %COMMANDER_INI% to its appdata, unless you specify another location in szPluginINI. Also for portable use it first checks if the INI file is in the installation folder (x2)
Kilmatead
Platinum Member
Platinum Member
Posts: 4879
Joined: 2008 Sep 30, 06:52
Location: Baile Átha Cliath

Re: Where Saves Xplorer² The Color Tag Folder Locations?

Post by Kilmatead »

Then using %X2DIR% for portable instead makes sense (at least in this case - but it could be used for other things, too).

We wouldn't want x2 to wake up on a stranger's spooky old USB stick and feel all scared and alone, now would we? :roll:
Also for portable use it first checks if the INI file is in the installation folder (x2)
And if it finds (it's own INI) there, does it auto-relocate the other references?
User avatar
nikos
Site Admin
Site Admin
Posts: 16401
Joined: 2002 Feb 07, 15:57
Location: UK

Re: Where Saves Xplorer² The Color Tag Folder Locations?

Post by nikos »

only the tc-related references (COMMANDER_INI)
Kilmatead
Platinum Member
Platinum Member
Posts: 4879
Joined: 2008 Sep 30, 06:52
Location: Baile Átha Cliath

Re: Where Saves Xplorer² The Color Tag Folder Locations?

Post by Kilmatead »

In that case, "I'll get you yet, my pretty! And your little ini's too!"

Image