Referencing Subdirectories

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Guest

Referencing Subdirectories

Post by Guest »

I can't seem to load textures from a subdirectory in the directory where the executable is located.

Ex:
game.exe is the main executable, and there's a subdirectory called "media" how can I reference that directory when loading textures?

I tried "media/file.bmp", "./media/file.bmp" and doesn't seem to work. a bug?
Guest

Post by Guest »

oops, ignore my question :)

It seems that Visual studio is setting the working directory to something else.
Post Reply