| 59 | } |
| 60 | |
| 61 | char* ConsoleValue::convertToBuffer() const |
| 62 | { |
| 63 | char* buffer = static_cast<char*>(sConversionAllocator.alloc(32)); |
| 64 | |
| 65 | if (type == ConsoleValueType::cvFloat) |
| 66 | dSprintf(buffer, 32, "%.9g", f); |
| 67 | else |
| 68 | dSprintf(buffer, 32, "%lld", i); |
| 69 | |
| 70 | return buffer; |
| 71 | } |
| 72 | |
| 73 | const char* ConsoleValue::getConsoleData() const |
| 74 | { |