mirror of
https://github.com/minetest/irrlicht.git
synced 2025-07-06 10:10:25 +02:00
Reduce needless use of wchar / stringw
This commit is contained in:
@ -159,9 +159,9 @@ COGLES2Driver::~COGLES2Driver()
|
||||
io::IReadFile* vsFile = FileSystem->createAndOpenFile(vsPath);
|
||||
if ( !vsFile )
|
||||
{
|
||||
core::stringw warning(L"Warning: Missing shader files needed to simulate fixed function materials:\n");
|
||||
warning += core::stringw(vsPath) + L"\n";
|
||||
warning += L"Shaderpath can be changed in SIrrCreationParamters::OGLES2ShaderPath";
|
||||
std::string warning("Warning: Missing shader files needed to simulate fixed function materials:\n");
|
||||
warning.append(vsPath.c_str()).append("\n");
|
||||
warning += "The path can be changed in SIrrCreationParamters::OGLES2ShaderPath";
|
||||
os::Printer::log(warning.c_str(), ELL_WARNING);
|
||||
return;
|
||||
}
|
||||
@ -169,9 +169,9 @@ COGLES2Driver::~COGLES2Driver()
|
||||
io::IReadFile* fsFile = FileSystem->createAndOpenFile(fsPath);
|
||||
if ( !fsFile )
|
||||
{
|
||||
core::stringw warning(L"Warning: Missing shader files needed to simulate fixed function materials:\n");
|
||||
warning += core::stringw(fsPath) + L"\n";
|
||||
warning += L"Shaderpath can be changed in SIrrCreationParamters::OGLES2ShaderPath";
|
||||
std::string warning("Warning: Missing shader files needed to simulate fixed function materials:\n");
|
||||
warning.append(fsPath.c_str()).append("\n");
|
||||
warning += "The path can be changed in SIrrCreationParamters::OGLES2ShaderPath";
|
||||
os::Printer::log(warning.c_str(), ELL_WARNING);
|
||||
return;
|
||||
}
|
||||
@ -1858,7 +1858,7 @@ COGLES2Driver::~COGLES2Driver()
|
||||
|
||||
|
||||
//! \return Returns the name of the video driver.
|
||||
const wchar_t* COGLES2Driver::getName() const
|
||||
const char* COGLES2Driver::getName() const
|
||||
{
|
||||
return Name.c_str();
|
||||
}
|
||||
|
Reference in New Issue
Block a user