Sign in to follow this  
chad_420

get directory my game is in?

Recommended Posts

Quote:
Original post by JD
GetCurrentDirectory() also works. It'll return the absolute path to your exe.
not if your current working path changes subsequent to Win32 API usage
such as common file open/save dialogs.

Share this post


Link to post
Share on other sites
Quote:
Original post by silvermace
not if your current working path changes subsequent to Win32 API usage
such as common file open/save dialogs.


Or if you have a shortcut to the exe file that has the "start in" entry set to another directory than the exe is in.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this