rejetto forum

Software => HFS ~ HTTP File Server => Bug reports => Topic started by: click-click on April 24, 2017, 11:58:21 PM

Title: Where are the Settings kept?
Post by: click-click on April 24, 2017, 11:58:21 PM
I ran the latest HFS (2.3k) on a new system and the app created context menu reg entries, but I'm curious where the other settings are being stored.  I know there's a save options menu, but I'm wondering where the current settings are being kept since changes are not lost after closing hfs. Under Debug, I can see the customized options so they must reside somewhere.
Title: Re: Where are the Settings kept?
Post by: Mars on April 25, 2017, 12:53:14 AM
look at  MENU>Save options > ..... (bold selection)
Title: Re: Where are the Settings kept?
Post by: click-click on April 25, 2017, 02:33:31 PM
As I mentioned in my post, I know about menu -> Save options, but I don't want to save anything. I'm just curios where the settings are being kept for use  by hfs. The settings  are still present somewhere when none have been saved. Maybe rejetto can answer this.
Title: Re: Where are the Settings kept?
Post by: bmartino1 on April 25, 2017, 03:24:41 PM
there is a hidden hfs ini file inside the executable along with the default template.

it is saved and stored in the exe path upon launch/ and with in the exe file itself.
Title: Re: Where are the Settings kept?
Post by: rejetto on April 25, 2017, 05:58:06 PM
you've missed the "bold selection" that mars specified.
He meant that that indicates the current location.
Title: Re: Where are the Settings kept?
Post by: click-click on April 25, 2017, 06:23:41 PM
The bold selection says (save)  to registry (current user), but  nothing is placed in the registry until you use this option. The answer from bmartino1 makes sense as to why I cannot find any of the settings until I actually save them using the save options menu.

"there is a hidden hfs ini file inside the executable along with the default template."

Edit: I see now why I was mislead about where the settings are kept. When I checked the registry all I saw was a single entry with a name of Default. What I did not realize was that the settings are written to the registry as one big single string. I went under the assumption that the individual settings would show as separate entries and thought there were no settings there  :-[
Title: Re: Where are the Settings kept?
Post by: rejetto on April 26, 2017, 02:14:52 PM
by default HFS saves settings to the registry.

The INI hidden in the exe file is the default settings, not YOUR settings.
Title: Re: Where are the Settings kept?
Post by: bmartino1 on April 26, 2017, 07:34:23 PM
yes, click-click, i;m refering to the ini file at first launch. at that point you can save them to a ini file in teh same path more info on rejeto wiki here:
http://www.rejetto.com/wiki/index.php?title=HFS:_Command_line_parameters
Title: Re: Where are the Settings kept?
Post by: Fysack on September 30, 2017, 11:04:33 PM
god damn it rejetto, you are a natural born killer 2.0