Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- state("Hades"){
- string16 IGT : "SDL2.dll", 0x013FE38, 0x11b0, 0x138, 0x3f0, 0x1a8, 0x40;
- }
- update
- {
- //IGT is in format MM:ss.mm
- print("IGT: " + current.IGT.ToString());
- vars.min = Convert.ToInt32(current.IGT.ToString().Substring(0, 2));
- vars.sec = Convert.ToInt32(current.IGT.ToString().Substring(3, 2));
- vars.ms = Convert.ToInt32(current.IGT.ToString().Substring(6, 2));
- // ms*10 changes .78 to 780 ms
- vars.totalMs = (vars.min*60 + vars.sec)*1000 + vars.ms*10;
- print("MS: " + vars.totalMs);
- return true;
- }
- gameTime
- {
- return TimeSpan.FromMilliseconds(vars.totalMs);
- }
- isLoading
- {
- return true;
- }
- start {
- if (vars.totalMs > 0) {
- return true;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement