Hi,
I'm currently working on replacing my resource manager that uses strings as identifiers to one that uses integers. I'm using a hash function to convert the file names to 32 bit integers at compile time. This is all works well but I have no idea how to continue from this point.
Since I have no copy of the actual filename at runtime, I can't use that to load the file from disk. One option would be to have a map that I can use to lookup the filename if I have to. Option two is passing the string alongside the id when I want to load the asset. Both seem a bit messy to me.
If you are using resource ids in your engine, how do you solve this issue?