mirror of https://github.com/axmolengine/axmol.git
commit
5a83d24b2f
|
@ -297,8 +297,7 @@ void UserDefault::setStringForKey(const char* pKey, const std::string & value)
|
||||||
if ((_realSize + obs.length() + sizeof(udflen_t)) < _curMapSize)
|
if ((_realSize + obs.length() + sizeof(udflen_t)) < _curMapSize)
|
||||||
{
|
{
|
||||||
// increase entities count
|
// increase entities count
|
||||||
auto count = yasio::endian::ntohv(*(udflen_t*)_rwmmap->data());
|
yasio::obstream::swrite_i(_rwmmap->data(), 1 + yasio::ibstream::sread_i<udflen_t>(_rwmmap->data()));
|
||||||
*(udflen_t*)_rwmmap->data() = yasio::endian::htonv(count + 1);
|
|
||||||
|
|
||||||
// append entity
|
// append entity
|
||||||
::memcpy(_rwmmap->data() + sizeof(udflen_t) + _realSize, obs.data(), obs.length());
|
::memcpy(_rwmmap->data() + sizeof(udflen_t) + _realSize, obs.data(), obs.length());
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"version": "v28",
|
"version": "v29",
|
||||||
"zip_file_size": "107642814",
|
"zip_file_size": "107642814",
|
||||||
"repo_name": "engine-v5-3rd",
|
"repo_name": "engine-v5-3rd",
|
||||||
"repo_parent": "https://github.com/c4games/",
|
"repo_parent": "https://github.com/c4games/",
|
||||||
|
|
Loading…
Reference in New Issue