View previous topic :: View next topic |
Author |
Message |
Varreon Advanced Cheater
Reputation: 0
Joined: 13 Jun 2007 Posts: 80
|
Posted: Sat Jun 30, 2007 7:21 am Post subject: Registry vs Ini |
|
|
I recently noticed that CE puts simple info in the registry, and it bugs me. I looked at ini files and they seem to have the same methods as the registry class(or whatever you call it in delphi) Is there any reason I cant have the info placed in an ini file rather than the registry?
|
|
Back to top |
|
 |
compactwater I post too much
Reputation: 8
Joined: 02 Aug 2006 Posts: 3923
|
Posted: Sat Jun 30, 2007 7:58 am Post subject: |
|
|
I think appalsap said this:
The registry is Microsoft's crappy solution to .inis.
Something like that... The major difference is that an ini only hold information for 1 copy of the program, whereas the registry can be accessed from anywhere on the computer...
Not sure if you understand what I mean, though.
|
|
Back to top |
|
 |
Varreon Advanced Cheater
Reputation: 0
Joined: 13 Jun 2007 Posts: 80
|
Posted: Sat Jun 30, 2007 8:20 am Post subject: |
|
|
Yeah... the registry is a global setting. I would rather have CE go off an ini file, is there any problem with me changing this?
*Edit: Problem as in, CE needs global settings to hook something.(Just making up posible reasons *
|
|
Back to top |
|
 |
compactwater I post too much
Reputation: 8
Joined: 02 Aug 2006 Posts: 3923
|
Posted: Sat Jun 30, 2007 9:10 am Post subject: |
|
|
No, it should be fine in an INI file. Actually, I'd have to say an INI would be better, because you can have everything pre-set if you were to release it to the public.
But a down side is things that are OS-dependent, it wouldn't work the same on another computer, so it would be better if the user himself did the settings.
|
|
Back to top |
|
 |
Varreon Advanced Cheater
Reputation: 0
Joined: 13 Jun 2007 Posts: 80
|
Posted: Sat Jun 30, 2007 9:30 am Post subject: |
|
|
CE would only be used on windows anyway... right? Is INI compatible on all windows variants?
|
|
Back to top |
|
 |
compactwater I post too much
Reputation: 8
Joined: 02 Aug 2006 Posts: 3923
|
Posted: Sat Jun 30, 2007 9:33 am Post subject: |
|
|
By OS-dependent I mean between Windows 2000, XP, Vista and etc.
The settings would have to be made on that OS by the user himself, or there maybe errors while trying to use some of CE's functions.
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25788 Location: The netherlands
|
Posted: Sat Jun 30, 2007 9:44 am Post subject: |
|
|
the registry ce uses is user specific. So a different user uses different settings.
Infile don't have that
and .ini is deprecated since win95
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
 |
appalsap Moderator
Reputation: 0
Joined: 27 Apr 2006 Posts: 6753 Location: Pakistan
|
Posted: Sat Jun 30, 2007 10:37 am Post subject: |
|
|
Dark Byte wrote: | the registry ce uses is user specific. So a different user uses different settings.
Infile don't have that |
The settings would be user specific if CE stored its settings in local %appdata%. If it did this with all the files it creates (like scan tempfiles) Vista wouldn't need to virtualize it.
|
|
Back to top |
|
 |
Varreon Advanced Cheater
Reputation: 0
Joined: 13 Jun 2007 Posts: 80
|
Posted: Sat Jun 30, 2007 1:56 pm Post subject: |
|
|
If I were to change settings to an ini file, couldn't I just make a section for each user? The ini would be in the same directory as ce, and Im sure there's a way to retrieve the current user's name in delphi / windows api.
|
|
Back to top |
|
 |
appalsap Moderator
Reputation: 0
Joined: 27 Apr 2006 Posts: 6753 Location: Pakistan
|
Posted: Sat Jun 30, 2007 2:15 pm Post subject: |
|
|
Varreon wrote: | If I were to change settings to an ini file, couldn't I just make a section for each user? |
Yes, but the proper (and least complicated) way to do this would be to store the settings in the local application data folder, this is what you're supposed to do and that's what the folder was designed for, so Windows handles the different users for you.
Varreon wrote: | The ini would be in the same directory as ce |
THIS IS BAD PRACTICE, PROGRAM FILES IS A RESTRICTED AREA ONLY FOR ADMINISTRATORS
|
|
Back to top |
|
 |
Varreon Advanced Cheater
Reputation: 0
Joined: 13 Jun 2007 Posts: 80
|
Posted: Sat Jun 30, 2007 5:03 pm Post subject: |
|
|
Converting from registry to ini seems too complicated for me at this point, so I'll leave it as is. Thanks for all the advice though, in-case I change it once I know more.
|
|
Back to top |
|
 |
Jani Grandmaster Cheater
Reputation: 2
Joined: 29 Dec 2006 Posts: 804
|
Posted: Tue Jul 03, 2007 6:09 am Post subject: |
|
|
Dark Byte wrote: | the registry ce uses is user specific. So a different user uses different settings.
Infile don't have that | %APPDATA%/Cheat Engine/ (on 2k/XP/Vista.)
|
|
Back to top |
|
 |
|