SFML community forums

Help => General => Topic started by: Power on April 09, 2020, 02:33:26 pm

Title: Hide the files of your "game" or "app"
Post by: Power on April 09, 2020, 02:33:26 pm
Hello,
I am very excited for learning SFML, and still have many questions,
On a video tutorial, i saw how a compiled programme through "release" option, could be generated and be distributed, the tutorial mentionned not to forget any data files (font/image/texture/musics).

And i tried it, i could send a programme.exe + the files + the .dll files all in one package, the receiver extracted all and was able to test my programme.

Now is there a way to hide all the files/data from the user of the programme?
Title: Re: Hide the files of your "game" or "app"
Post by: Laurent on April 09, 2020, 07:02:33 pm
Yes, you can compile the resources directly into the executable. For DLLs, the solution (when possible) is to link the corresponding library statically to your executable.

But is there any good reason to do so?
Title: Re: Hide the files of your "game" or "app"
Post by: Power on April 09, 2020, 09:00:14 pm
Yes, let's say i made a game with "secrets" and suprises.
I don't want players to discover all the images and sounds and musics that the game has to offer.
Do you know how can that be done? I am using CodeBlocks.
Title: Re: Hide the files of your "game" or "app"
Post by: eXpl0it3r on April 09, 2020, 09:21:13 pm
Google has quite a few results when you look for resource compiler and similar keywords. ;)

Don't forget that a simple resource hack tool, will reveal all the images and sounds anyways, so if that's the only reason, it's not really worth it. The ones that want to look at the resource files will find a way regardless - all the AAA games are being reverse engineered to some extend.
Title: Re: Hide the files of your "game" or "app"
Post by: Power on April 09, 2020, 11:12:43 pm
Google has quite a few results when you look for resource compiler and similar keywords. ;)

Don't forget that a simple resource hack tool, will reveal all the images and sounds anyways, so if that's the only reason, it's not really worth it. The ones that want to look at the resource files will find a way regardless - all the AAA games are being reverse engineered to some extend.
True indeed.
I guess it wanted to hide them from random close contacts who would alpha test my game/app.
Okay i will try to search and find how to do it.thx