Skip to content

Embedding resources to compiled executable #19

Answered by 0xc0de
brightening-eyes asked this question in Q&A
Discussion options

You must be logged in to vote

cmrc is a resource compiler which can embed resources in the compiled executable, while preserving the filesystem structure. it would be cool if hork's resource manager adds support for it. this would add the ability of resource protection in the game at least a little bit. also, it makes the destribution easier as well.

Embedding resources is already available in Hork. Just put the required resource in the "Embedded" folder.

To open a resource, start the file path with the /Embedded/ prefix. For example:
resourceManager->CreateResourceFromFile ("/Embedded/path/to/file");

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by brightening-eyes
Comment options

You must be logged in to vote
1 reply
@0xc0de
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #13 on August 21, 2024 16:45.