quote:
Originally posted by Matty
Why not just save settings to the HKEY_CURRENT_USER\Software\Company\Program section of the registry wouldn't that make the most sense?
indeed.... That is what that place is made for...
But that is for registry settings...
------------
I know what n0n4m3 means though. I too hate it when each plugin (or program for that matter) starts saving stuff in places I don't like (doesn't matter where it is, it should always be customizable!).
But CyBeRDuDe also has a point: most programs save their files in the program folder.
At least, most older programs do this; newer programs also indeed tend to use Documents and Settings\<username>\Application Data\<program folder>. The thing with that is: if they do, not all are customizable, which is a bi**h.
But we are talking plugins here. Plugins aren't programs! And all plugin developpers know that all the plugins are stored in the same directory. So, IMO, no, it doesn't make sense that plugins save their data to the plugins folder (especially not when it isn't customizable); imagine that every plugin does this, you'll soon end up with a big mess in your plugins folder, not to mention possible file name conflicts...
IMO, Plugins, if they absolutely need to save a file, need to save this, by default, in a
subdirectory of the plugins folder. Or in
%appdir%\<program folder>. But mostly, it must be customizable by the user! This is the most logical and user friendly way to go... IMHO.
-----
PS:
quote:
Originally posted by (CyBeRDuDe)
But then again, we would then have to make extra code to be backwards compatible with the older windows, since they don't have the same kinds of Application Data folder...
No you don't, you simply need to call the appropiate Window API's. There is an "application directory" in every Windows version.
Besides, even if there were no such API's, isn't making a plugin backward compatible and compatible with all possible Windows versions (which Plus! also can run on) the right thing todo anyways?
quote:
Originally posted by Tobiaz
quote:
Why not just save settings to the HKEY_CURRENT_USER\Software\Company\Program section of the registry wouldn't that make the most sense?
Yes... but can you save pictures and other files in the Registry...?
Yes, you actually can though (to some extent). You need to store them as binary data, which is rather easy to do... But I wouldn't recommend it though as the registry is loaded entirly each time you start Windows. This also means if you store many data files and stuff like 20MB of pictures, you'll soon see that your startup time (and maybe even Windows in general) is becomming extremely slow...