Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Registry vs Ini

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Source
View previous topic :: View next topic  
Author Message
Varreon
Advanced Cheater
Reputation: 0

Joined: 13 Jun 2007
Posts: 80

PostPosted: Sat Jun 30, 2007 7:21 am    Post subject: Registry vs Ini Reply with quote

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
View user's profile Send private message
compactwater
I post too much
Reputation: 8

Joined: 02 Aug 2006
Posts: 3923

PostPosted: Sat Jun 30, 2007 7:58 am    Post subject: Reply with quote

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
View user's profile Send private message
Varreon
Advanced Cheater
Reputation: 0

Joined: 13 Jun 2007
Posts: 80

PostPosted: Sat Jun 30, 2007 8:20 am    Post subject: Reply with quote

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 Wink *
Back to top
View user's profile Send private message
compactwater
I post too much
Reputation: 8

Joined: 02 Aug 2006
Posts: 3923

PostPosted: Sat Jun 30, 2007 9:10 am    Post subject: Reply with quote

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
View user's profile Send private message
Varreon
Advanced Cheater
Reputation: 0

Joined: 13 Jun 2007
Posts: 80

PostPosted: Sat Jun 30, 2007 9:30 am    Post subject: Reply with quote

CE would only be used on windows anyway... right? Is INI compatible on all windows variants?
Back to top
View user's profile Send private message
compactwater
I post too much
Reputation: 8

Joined: 02 Aug 2006
Posts: 3923

PostPosted: Sat Jun 30, 2007 9:33 am    Post subject: Reply with quote

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
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25788
Location: The netherlands

PostPosted: Sat Jun 30, 2007 9:44 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Sat Jun 30, 2007 10:37 am    Post subject: Reply with quote

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
View user's profile Send private message
Varreon
Advanced Cheater
Reputation: 0

Joined: 13 Jun 2007
Posts: 80

PostPosted: Sat Jun 30, 2007 1:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Sat Jun 30, 2007 2:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
Varreon
Advanced Cheater
Reputation: 0

Joined: 13 Jun 2007
Posts: 80

PostPosted: Sat Jun 30, 2007 5:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
Jani
Grandmaster Cheater
Reputation: 2

Joined: 29 Dec 2006
Posts: 804

PostPosted: Tue Jul 03, 2007 6:09 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Source All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites