// // GameLevelManager::removeDelimiterChars from 0x1000b4e2c to 0x1000b4f50 (292 bytes) // // 13 xrefs: // > sub_1000B4294 @ 0x1000b4464 // > sub_1000B4294 @ 0x1000b44a8 // > sub_1000B4294 @ 0x1000b44f0 // > sub_1000B6A6C @ 0x1000b6bc8 // > sub_1000B6A6C @ 0x1000b6c0c // > sub_1000B6A6C @ 0x1000b6c50 // > sub_1000B79EC @ 0x1000b7adc // > sub_1000B79EC @ 0x1000b7b20 // > GameLevelManager::updateUserScore @ 0x1000bc1bc // > sub_1000C150C @ 0x1000c171c // > sub_1000C150C @ 0x1000c1760 // > sub_1000CB51C @ 0x1000cb604 // > GJMultiplayerManager::uploadComment @ 0x1002676e0 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 10:58:40 +0000 // 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_1000CDED0(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_1000CDED0(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