| 591 | } |
| 592 | |
| 593 | static void lua_save_data_write_key(StringStream &sjson, lua_State *L, int i) |
| 594 | { |
| 595 | if (lua_type(L, i) != LUA_TSTRING) |
| 596 | luaL_error(L, "Unsupported save data key type"); |
| 597 | |
| 598 | size_t len = 0; |
| 599 | const char *str = lua_tolstring(L, i, &len); |
| 600 | CE_ENSURE(str != NULL); |
| 601 | lua_save_data_write_string(sjson, str, (u32)len); |
| 602 | } |
| 603 | |
| 604 | static void lua_save_data_write_vector3(StringStream &sjson, const char *type, const Vector3 &v) |
| 605 | { |
no test coverage detected