I asked on IRC, no answers so I'm asking here. How to convert from wchar_t to irr::io:IReadFile? Or, if there isn't a way, how to get this work? I have loadMap(wchar_t mapName) function in which I load map, add camera and set up collision. I call it from main function like loadMap('map01.bsp'). I get error:
If you have "wchar_t mapName" it means you pass a single wchar_t character. You likely wanted "wchar_t* mapName" which can be used to pass a string. Or use "const irr::io::path& mapName" instead, then no conversions are needed.
Yeah, that works also, although using io::path would be better (as it's a path and not just any string - but no difference for you probably). And always better to use a const reference in such cases (to avoid extra string copying), like "const stringw& mapName".