Storing files in a dll, or somewhere like that...
-
I have a game here, and it has about 30 music files, as well as 20 or so data files, and another 30 images, there all in their folders all nice and neat. But i was wondering if there was a quick and easy way to store the files another way. And at the moment, its perfectly possible for a user to just delete some files, making the game useless, or changing the files, making the game... wierd...
-
I have a game here, and it has about 30 music files, as well as 20 or so data files, and another 30 images, there all in their folders all nice and neat. But i was wondering if there was a quick and easy way to store the files another way. And at the moment, its perfectly possible for a user to just delete some files, making the game useless, or changing the files, making the game... wierd...
You could indeed store all those the files in a dll and extract them either as-needed or extract them all upon app startup to a temp dir then delete the temp dir on app exit. The typical way to store data (eg: a file) in a dll is to put it in the dll's resource table.