Override c library file functions?
I am working on a game, and one of the requirements per the licence
agreement of the sound assets I am using is that they be distributed in a
way that makes them inaccessible to the end user. So, I am thinking about
aggregating them into a flat file, encrypting them, or some such. The
problem is that the sound library I am using (Hekkus Sound System) only
accepts a 'char*' file path and handles file reading internally. So, if I
am to continue to use it, I will have to override the c stdio file
functions to handle encryption or whatever I decide to do. This seems
doable, but it worries me. Looking on the web I am seeing people running
into strange frustrating problems doing this on platforms I am concerned
with(Android and iOS).
Does there happen to be a cross-platform library out there that takes care
of this? Is there a better approach entirely you would recommend?
No comments:
Post a Comment