(ultimate version)
registry key
ini file ?
Where Saves Xplorer² The Color Tag Folder Locations?
Moderators: fgagnon, nikos, Site Mods
-
pearliner
- Member

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

- Posts: 54
- Joined: 2016 Nov 24, 22:07
Re: Where Saves Xplorer² The Color Tag Folder Locations?
ok i found it.
-
nikos
- Site Admin

- Posts: 16401
- Joined: 2002 Feb 07, 15:57
- Location: UK
Re: Where Saves Xplorer² The Color Tag Folder Locations?
%APPDATA%\zabkat
-
pearliner
- Member

- Posts: 54
- Joined: 2016 Nov 24, 22:07
Re: Where Saves Xplorer² The Color Tag Folder Locations?
sometimes all the tags are deleted ,bug or design?
> tagdb.bin
> tagdb.bin
-
infimum
- Member

- Posts: 9
- Joined: 2007 Dec 31, 01:45
Re: Where Saves Xplorer² The Color Tag Folder Locations?
For portable users, is there any way this folder can be stored in %X2DIR%?
-
nikos
- Site Admin

- Posts: 16401
- Joined: 2002 Feb 07, 15:57
- Location: UK
Re: Where Saves Xplorer² The Color Tag Folder Locations?
no
paths are bound to change on different PCs so portable use is of little utility
paths are bound to change on different PCs so portable use is of little utility
-
Kilmatead
- Platinum Member

- Posts: 4879
- Joined: 2008 Sep 30, 06:52
- Location: Baile Átha Cliath
Re: Where Saves Xplorer² The Color Tag Folder Locations?
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?
Edit: Too late
Code: Select all
void __stdcall ContentSetDefaultParams([[maybe_unused]] ContentDefaultParamStruct *dps) {
wprintf(L"Source: %s", dps -> DefaultIniName);
}
Code: Select all
Source: C:\Users\Kilmatead\AppData\Roaming\zabkat\tcplugins.ini-
nikos
- Site Admin

- Posts: 16401
- Joined: 2002 Feb 07, 15:57
- Location: UK
Re: Where Saves Xplorer² The Color Tag Folder Locations?
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

- Posts: 4879
- Joined: 2008 Sep 30, 06:52
- Location: Baile Átha Cliath
Re: Where Saves Xplorer² The Color Tag Folder Locations?
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?
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?
And if it finds (it's own INI) there, does it auto-relocate the other references?Also for portable use it first checks if the INI file is in the installation folder (x2)
-
nikos
- Site Admin

- Posts: 16401
- Joined: 2002 Feb 07, 15:57
- Location: UK
Re: Where Saves Xplorer² The Color Tag Folder Locations?
only the tc-related references (COMMANDER_INI)
-
Kilmatead
- Platinum Member

- Posts: 4879
- Joined: 2008 Sep 30, 06:52
- Location: Baile Átha Cliath
Re: Where Saves Xplorer² The Color Tag Folder Locations?
In that case, "I'll get you yet, my pretty! And your little ini's too!"

