Reputation: 125
I am creating a game with winforms C#.
The game contains some images that are shown during the game.
I would like to forbid the players to open the game directory and open the image files because seeing them would ruin the gameplay.
For example, in C&C, the players can't just enter the game library and watch the mamoth tank sprites, or view the movies.
Is there a way to forbid players to see those images?
Upvotes: 1
Views: 174
Reputation:
Linked resources are stored as files within the project; during compilation the resource data is taken from the files and placed into the manifest for the application. The application's resource file (.resx) stores only a relative path or link to the file on disk.
With embedded resources, the resource data is stored directly in the .resx file in a text representation of the binary data. In either case, the resource data is compiled into the executable file.
To change a resource from linked to embedded
Upvotes: 1