mirror of
https://github.com/Ragora/T2-CPP.git
synced 2026-07-12 18:54:32 +00:00
GIT forgot the Watchdog code
This commit is contained in:
parent
a7c9fc2f6e
commit
0bf33a7190
11 changed files with 266 additions and 0 deletions
47
Mod Sources/Watchdog/TSExtension/script/tsExtension.cs
Normal file
47
Mod Sources/Watchdog/TSExtension/script/tsExtension.cs
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
function tsExtensionLoop()
|
||||
{
|
||||
if (!$TSExtension::isActive)
|
||||
{
|
||||
error("TSExtension.cs - Unable to run loop! Is the DLL installed?");
|
||||
return;
|
||||
}
|
||||
|
||||
if (isEventPending($TSExtension::LastUpdateHandle))
|
||||
cancel($TSExtension::LastUpdateHandle);
|
||||
|
||||
tsExtensionUpdate();
|
||||
|
||||
$TSExtension::LastUpdateHandle = schedule(32,0,"tsExtensionLoop");
|
||||
}
|
||||
|
||||
package TSExtension
|
||||
{
|
||||
function LoginDlg::onWake(%this)
|
||||
{
|
||||
parent::onWake(%this);
|
||||
|
||||
if (!$TSExtension::isActive)
|
||||
{
|
||||
loadMod("TSExtension");
|
||||
schedule(2000,0,"tsExtensionLoop");
|
||||
}
|
||||
}
|
||||
|
||||
function GameGUI::onWake(%this)
|
||||
{
|
||||
parent::onWake(%this);
|
||||
|
||||
if (!$TSExtension::isActive)
|
||||
{
|
||||
//loadMod("TSExtension");
|
||||
//schedule(2000,0,"tsExtensionLoop");
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
if (!isActivePackage(TSExtension))
|
||||
activatePackage(TSExtension);
|
||||
|
||||
memPatch("005BD190","C3");
|
||||
memPatch("005BD1F0","C3");
|
||||
memPatch("005BD210","C3");
|
||||
Loading…
Add table
Add a link
Reference in a new issue