// // GameLevelManager::removeDelimiterChars from 0x10009cd44 to 0x10009ce68 (292 bytes) // // 11 xrefs: // > GameLevelManager::uploadLevel @ 0x10009c440 // > GameLevelManager::uploadLevel @ 0x10009c484 // > GameLevelManager::uploadLevel @ 0x10009c4cc // > GameLevelManager::uploadLevelList @ 0x10009e35c // > GameLevelManager::uploadLevelList @ 0x10009e3a0 // > GameLevelManager::uploadLevelList @ 0x10009e3e4 // > GameLevelManager::updateUserScore @ 0x1000a1d58 // > GameLevelManager::uploadComment @ 0x1000a7418 // > GameLevelManager::uploadComment @ 0x1000a745c // > GameLevelManager::updateDescription @ 0x1000a9d10 // > GJMultiplayerManager::uploadComment @ 0x1001cf7b8 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // size_t __fastcall GameLevelManager::removeDelimiterChars(__int64 a1, std::string *a2, char a3) { __int64 v4; // x22 unsigned int v5; // w20 std::string::size_type size; // x8 std::string *v7; // x0 __int64 v8; // x0 __int64 v9; // x8 std::string::size_type v10; // x8 std::string *v11; // x9 size_t result; // x0 bool v13; // cc unsigned int v14; // w20 std::string::size_type v15; // x8 std::string *v16; // x0 __int64 v17; // x0 __int64 v18; // x8 std::string::size_type v19; // x8 std::string *v20; // x9 char __s[4]; // [xsp+8h] [xbp-28h] BYREF char v22[4]; // [xsp+Ch] [xbp-24h] BYREF v4 = 0; if ( (a3 & 1) != 0 ) { strcpy(__s, "~|#"); v5 = 1; do { size = SHIBYTE(a2->__r_.__value_.__r.__words[2]); if ( (size & 0x8000000000000000LL) != 0 ) { v7 = (std::string *)a2->__r_.__value_.__r.__words[0]; size = a2->__r_.__value_.__l.__size_; } else { v7 = a2; } v8 = sub_1000AC1C8(v7, (char *)v7 + size, &__s[v4]); v9 = SHIBYTE(a2->__r_.__value_.__r.__words[2]); if ( v9 < 0 ) { v11 = (std::string *)a2->__r_.__value_.__r.__words[0]; v10 = a2->__r_.__value_.__r.__words[0] + a2->__r_.__value_.__l.__size_; } else { v10 = (std::string::size_type)a2 + v9; v11 = a2; } std::string::erase(a2, v8 - (_QWORD)v11, v10 - v8); v4 = v5; result = strlen(__s); v13 = result > v5++; } while ( v13 ); } else { strcpy(v22, ":|#"); v14 = 1; do { v15 = SHIBYTE(a2->__r_.__value_.__r.__words[2]); if ( (v15 & 0x8000000000000000LL) != 0 ) { v16 = (std::string *)a2->__r_.__value_.__r.__words[0]; v15 = a2->__r_.__value_.__l.__size_; } else { v16 = a2; } v17 = sub_1000AC1C8(v16, (char *)v16 + v15, &v22[v4]); v18 = SHIBYTE(a2->__r_.__value_.__r.__words[2]); if ( v18 < 0 ) { v20 = (std::string *)a2->__r_.__value_.__r.__words[0]; v19 = a2->__r_.__value_.__r.__words[0] + a2->__r_.__value_.__l.__size_; } else { v19 = (std::string::size_type)a2 + v18; v20 = a2; } std::string::erase(a2, v17 - (_QWORD)v20, v19 - v17); v4 = v14; result = strlen(v22); v13 = result > v14++; } while ( v13 ); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source