| 820 | } |
| 821 | |
| 822 | bool CVarInputString(const char* label, const char* cvarName, const InputOptions& options) { |
| 823 | bool dirty = false; |
| 824 | std::string value = CVarGetString(cvarName, options.defaultValue.c_str()); |
| 825 | if (InputString(label, &value, options)) { |
| 826 | CVarSetString(cvarName, value.c_str()); |
| 827 | Ship::Context::GetInstance()->GetWindow()->GetGui()->SaveConsoleVariablesNextFrame(); |
| 828 | ShipInit::Init(cvarName); |
| 829 | dirty = true; |
| 830 | } |
| 831 | return dirty; |
| 832 | } |
| 833 | |
| 834 | bool InputInt(const char* label, int32_t* value, const InputOptions& options) { |
| 835 | bool dirty = false; |
nothing calls this directly
no test coverage detected