| 3185 | } |
| 3186 | |
| 3187 | void 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 | |
| 3207 | void VMManager::WarnAboutUnsafeSettings() |
| 3208 | { |