MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / LogUnsafeSettingsToConsole

Method LogUnsafeSettingsToConsole

pcsx2/VMManager.cpp:3187–3205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3185}
3186
3187void VMManager::LogUnsafeSettingsToConsole(const std::string& messages)
3188{
3189 // a not-great way of getting rid of the icons for the console message
3190 std::string console_messages(messages);
3191 for (;;)
3192 {
3193 const std::string::size_type pos = console_messages.find("\xef");
3194 if (pos != std::string::npos)
3195 {
3196 console_messages.erase(pos, pos + 3);
3197 console_messages.insert(pos, "[Unsafe Settings]");
3198 }
3199 else
3200 {
3201 break;
3202 }
3203 }
3204 Console.Warning(console_messages);
3205}
3206
3207void VMManager::WarnAboutUnsafeSettings()
3208{

Callers

nothing calls this directly

Calls 4

findMethod · 0.45
eraseMethod · 0.45
insertMethod · 0.45
WarningMethod · 0.45

Tested by

no test coverage detected