I need to load and save an ini that is invisible (But first I need to figure out how to make it invisible), please help!
Printable View
I need to load and save an ini that is invisible (But first I need to figure out how to make it invisible), please help!
You can't. At best, you could place it somewhere unexpected on the users' pc, but that is not a good idea and people don't like that.
See my blog posts about viruses, that has NTFS file hiding.
You could compress and encrypt your file instead of hiding it. then decompress and decrypt the file (into a edit box, string, parser...) on load then parse it for your values. That way the only file that is stored on disk is the compressed encrypted version. It'll put off most people from even trying to edit it.
Use file object. It allows to change file permissions like only readable or hidden. But that can be change from windows level in file properties anyway. But that's suggestion for dynamically created INI. Still it is supported only under Windows.
OK, now how do I set up the file object to make the file invisible?
(I'm going with Fanotherpg's suggestion)
Slightly off topic, but can you ever write to the exe?
AFAIR no, but you can attach Binary files to it from MMF...
OK, now how do I set up the file object to make the file invisible?
(I'm going with Fanotherpg's suggestion)
Sorry mate it was Power System Object not File Object!
Something you can do instead is change the file type. Like name it file.jpeg. It will still act as an INI file when you tell MMF to edit it, and your players might not necessarily think that a jpeg file is the save file for their game and try to tamper with it, if that's what your worried about.
Long shot, but you could write (and read) your ini to (and from) the ID3v2 of an Mp3 somehow maybe?
It might not be game data he is encrypting. It could be bank account information, details of drug dealing, co-ordinates of dead bodies. Things you don't want people seeing.
Shouldn't use INI for that crap. Shouldn't use MMF for that crap.
Marv