The first time I tried to compile, there were tons of errors. This was with the debug build setting. For the cases where it was trying to use ansi functions (like LoadLibraryA), changing the project settings in MSVC to "Use Unicode Character Set" for Character Set under Configuration Properties > General fixed most of them, so that it would for example in that case use LoadLibraryW. The release configuration has the character set setting already set to Multi-Byte, I had to change this to Unicode.
With that aside next there were 3 errors left.
In IAttributeExchangingObject.h:
Code: Select all
//! struct holding data describing options
struct SAttributeReadWriteOptions
{
//! Constructor
SAttributeReadWriteOptions()
: Flags(0), Filename(0)
{
}
//! Combination of E_ATTRIBUTE_READ_WRITE_FLAGS or other, custom ones
s32 Flags;
//! Optional filename
const c8* Filename;
};
And in CFileSystem.cpp
in path CFileSystem::getRelativeFilename(const path& filename, const path& directory) const:
These two lines were causing a problem
Code: Select all
path.split(list1, "/\\", 2);
path2.split(list2, "/\\", 2);
Code: Select all
#ifndef _IRR_WCHAR_FILESYSTEM
path.split(list1, "/\\", 2);
path2.split(list2, "/\\", 2);
#else
path.split(list1, L"/\\", 2);
path2.split(list2, L"/\\", 2);
#endif
edit: forgot to mention, I am using svn revision 3767.
edit 2: actually it was the Unicode setting that worked, not Multi-Byte