Handmade Hero » Forums » Code » Day 37 - loading bitmaps - path errors if I do like Casey
current_mood
Anders
10 posts

Professional (non-game)developer living in Stockholm, Sweden. Born '84. Gamer since five years of age, computer nerd since six.

#16001 Day 37 - loading bitmaps - path errors if I do like Casey
4 months ago Edited by Anders on Aug. 12, 2018, 3:49 p.m. Reason: Initial post

So, my CreateFileA call in win32_handmade.cpp fails to find the path specified (When I put them in handmade\data\test). I noticed that if I moved all the images to a place relative to my built .exe instead, everything loaded fine.

I have a vague memory of Casey showing us very early in this project how we change the default data directory for where it looks for resources, a VS solution technical thing iirc.

Could that be it, that I have lost that setting? If so, if anyone feels helpful enough to point me to the episode where he sets it, or just tell me how I should set it, I'd be happy!

Until then I'll just have my resources at the default relative location. :)
William
5 posts
#16002 Day 37 - loading bitmaps - path errors if I do like Casey
4 months ago

https://guide.handmadehero.org/code/day001/#2920

Right click project in the solution explorer -> properties -> working directory
current_mood
Anders
10 posts

Professional (non-game)developer living in Stockholm, Sweden. Born '84. Gamer since five years of age, computer nerd since six.

#16003 Day 37 - loading bitmaps - path errors if I do like Casey
4 months ago

Thanks alot man! :)