mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 21:30:53 +00:00
Use UTF-8 everywhere possible and only use wchar_t where required.
* This means that all APIs pass byte string types. ALL strings everywhere in the entire codebase must be assumed to be and treated as UTF-8 content not ASCII. * Gets rid of all the horrible %hs specifiers that caused warnings on linux! Hooray. * We convert to wide strings, or use wide characters, only when necessary to use the Win32 API. Some windows specific code will stay in wide chars just for convenience. * Files are already serialised as UTF-8 strings for linux/windows binary compatibility, so this change doesn't break backwards compatibility.
This commit is contained in:
@@ -42,15 +42,15 @@ void LibraryHooks::CreateHooks()
|
||||
HOOKS_BEGIN();
|
||||
for(auto it=m_Hooks.begin(); it!=m_Hooks.end(); ++it)
|
||||
{
|
||||
RDCDEBUG("Attempting to hook %hs", it->first);
|
||||
RDCDEBUG("Attempting to hook %s", it->first);
|
||||
|
||||
if(it->second->CreateHooks(it->first))
|
||||
{
|
||||
RDCLOG("Loaded and hooked into %hs, PID %d", it->first, Process::GetCurrentPID());
|
||||
RDCLOG("Loaded and hooked into %s, PID %d", it->first, Process::GetCurrentPID());
|
||||
}
|
||||
else
|
||||
{
|
||||
RDCWARN("Couldn't hook into %hs", it->first);
|
||||
RDCWARN("Couldn't hook into %s", it->first);
|
||||
}
|
||||
}
|
||||
HOOKS_END();
|
||||
@@ -58,7 +58,7 @@ void LibraryHooks::CreateHooks()
|
||||
|
||||
void LibraryHooks::EnableHooks(bool enable)
|
||||
{
|
||||
RDCDEBUG("%hs hooks!", enable ? "Enabling" : "Disabling");
|
||||
RDCDEBUG("%s hooks!", enable ? "Enabling" : "Disabling");
|
||||
|
||||
if(!enable)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user