Skip to content

Commit

Permalink
fix: Rename IsLoggedIn pattern name to follow rest of patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
cyperdark committed Feb 19, 2024
1 parent 804c0a7 commit 680d2b0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/tosu/src/entities/UserProfile/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class UserProfile extends AbstractEntity {
);

const isLoginned = process.readPointer(
patterns.getPattern('IsLoggedIn')
patterns.getPattern('isLoggedPtr')
);

this.rawLoginStatus = isLoginned;
Expand Down
2 changes: 1 addition & 1 deletion packages/tosu/src/objects/instanceManager/osuInstance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const SCAN_PATTERNS: {
pattern: 'A1 ?? ?? ?? ?? 89 85 ?? ?? ?? ?? 6A 00 6A 00 8D 8D',
offset: 0x1
},
IsLoggedIn: {
isLoggedPtr: {
pattern: 'B8 0B 00 00 8B 35',
offset: -0xb
}
Expand Down
4 changes: 2 additions & 2 deletions packages/tosu/src/objects/memoryPatterns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export interface PatternData {
menuModsPtr: number;
getAudioLengthPtr: number;
userProfilePtr: number;
IsLoggedIn: number;
isLoggedPtr: number;
}

export class MemoryPatterns {
Expand All @@ -34,7 +34,7 @@ export class MemoryPatterns {
menuModsPtr: 0,
getAudioLengthPtr: 0,
userProfilePtr: 0,
IsLoggedIn: 0
isLoggedPtr: 0
};

if (process.platform !== 'win32') {
Expand Down

0 comments on commit 680d2b0

Please sign in to comment.