Hi I'm making a simple piece of software, that can load models, and textures, I have a default models that can be loaded and then I have models and textures that can be loaded by the user. Whenever a user loads a new model or texture, it switches the file path meaning the default models cannot be loaded.
Before a model and texture gets loaded in by the user, the default file path is simply media/file
Then when a user loads the file then the file directory becomes whatever the user selects.
The only way around this is hardcoding all the file paths instead of media/file it becomes C:/Folder/Folder/media/file
This works fine but if I would ship the software, the files won't be able to open on other computers.
What is a solution to this problem and how do developers avoid this issue?
Thanks