-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 6604e13
Showing
1 changed file
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
state("Tag", "IGF Professional 2008") { | ||
int NextLevelNumber : 0x16C088, 0x40; | ||
int StartGame : 0x16C094, 0x14; | ||
byte Loading : 0x16C05C, 0x5C; | ||
} | ||
|
||
state("Tag", "v1.1") { | ||
int NextLevelNumber : 0x16D0E8, 0x40; | ||
int StartGame : 0x16D0F4, 0x14; | ||
byte Loading : 0x16D0BC, 0x5C; | ||
} | ||
|
||
init { | ||
int Size = modules.First().ModuleMemorySize; | ||
switch (Size) { | ||
case 1511424: | ||
version = "IGF Professional 2008"; | ||
print("TAG Autosplitter: Detected version IGF Professional 2008"); | ||
break; | ||
case 1515520: | ||
version = "v1.1"; | ||
print("TAG Autosplitter: Detected version 1.1"); | ||
break; | ||
default: | ||
print("TAG Autosplitter: Unknown module size " + Size.ToString()); | ||
MessageBox.Show( | ||
timer.Form, | ||
"TAG Autosplitter Error:\n\n" + | ||
"Game version not recognized.\n" + | ||
"Please report bugs at TAG speedrunning Discord.\n\n" + | ||
"Module size: " + Size.ToString(), | ||
"TAG Autosplitter Error", | ||
MessageBoxButtons.OK, | ||
MessageBoxIcon.Error | ||
); | ||
break; | ||
} | ||
} | ||
|
||
reset { | ||
return current.StartGame == 0; | ||
} | ||
|
||
start { | ||
return old.StartGame == 0 && current.StartGame != 0; | ||
} | ||
|
||
split { | ||
return current.NextLevelNumber != 0 && old.NextLevelNumber != current.NextLevelNumber; | ||
} | ||
|
||
isLoading { | ||
return current.Loading == 1; | ||
} |