Hello forum!
Quick disclaimer, I think this topic is language agnostic but whenever I refer to programming concepts (classes, objects, instantiating etc.), they will refer to C++.
How are you handling fixed file paths for your software/game? E.g., you want to load a texture, how do you tell your load-system where to find all textures?
I do not want to hardcode my paths, so I would be happy to hear some more flexible approaches. Especially moving them to a file that contains all of them. The actual issue is more on how to pass them around.
Do you instantiate one class at the very beginning and simply access your "file-path"-file? Do you pass this around? Did you consider working with globals for this? Or do you simply instantiate the object again and again wherever it is needed?
I'm not really sure if I want them to be part of the dependency injection, but that is after all just a weird feeling. It might be the only sane choice in the end.
Thanks for your time!