When I call my executable file from another folder, such as:
"c:\example\file.exe"
When I am in c:, the program looks for files in c:. It never used to do this until I installed some new software (MS WiX, to be exact).
I think it's a bug on my computer, not irrlicht. It's the same when I compile in both g++ and MSVS.
Am I right, or is it irrlicht?
if it is irrlicht, is there a work around?
Irrlicht working from called folder, not application folder
JP: Ah, so it's not my computer? and yes, I'm trying to create a simple msi installer so other people can play it
I'm using relative "files\", not absolute paths "c:\game\files\" so that's not the problem.
A solution would simply be to set changeWorkingDirectoryTo() to the folder where the .exe exists. getWorkingDirectory() returns the folder where the exe was called from
Is there a way to get the folder where the .exe lies?
I'm using relative "files\", not absolute paths "c:\game\files\" so that's not the problem.
A solution would simply be to set changeWorkingDirectoryTo() to the folder where the .exe exists. getWorkingDirectory() returns the folder where the exe was called from
Is there a way to get the folder where the .exe lies?
*slaps forehead* I feel like an idiot now, I had no idea shortcuts did that.
Thanks hybrid, you truly are a legend.
I have switched to Inno (fantastic program, highly recommend it) because it was more flexible than the windows counterpart. The solution to adding base directories is in their wiki, and now my installer works great.
Now the only thing left is to spit shine my game then other people can enjoy it
Thanks hybrid, you truly are a legend.
I have switched to Inno (fantastic program, highly recommend it) because it was more flexible than the windows counterpart. The solution to adding base directories is in their wiki, and now my installer works great.
Now the only thing left is to spit shine my game then other people can enjoy it