How do I create my own file extension?
Help please. In short: I need to create my own file extension, for example levelData.ldat, and so that only the program can access this file (read and modify it), but not the user in any case
12 Replies
well you just save it in with that extension
If your program can access it, the user can access it
Even if it's by reading bytes directly from RAM
:((
Okay, thanks
You can make it hard, but never impossible
@Kirieshka why do you want to restrict user access anyhow?
You mean registrate the association of that extension to your program right?
@Kirieshka bump
Anti cheat maybe?
sure but you can't play with users and permissions on other people's pc
the only way is encrypting
On locally installed software and files encrypting is just a matter of user laziness or ignorance really to get around for the most part.
At least as an isolated island
If you've got an API to call to decrypt data you might as well just ship bytes instead for area files.
i don't think so
it would keep away a good part of the people trying
because it wouldn't be a low effort process
It's a divergence of audience problem, those interested in trying are also the ones with the abilities to do so.