mirror of
https://github.com/Ragora/T2-BoL.git
synced 2026-04-23 02:55:03 +00:00
Brought up to date with the newest T2BoL I've located
This commit is contained in:
parent
8c96cba3e1
commit
accd31895e
287 changed files with 108557 additions and 107608 deletions
|
|
@ -1,53 +1,53 @@
|
|||
// #autoload
|
||||
// #name = Safe Mode
|
||||
// #version = 1.0
|
||||
// #date = Tuesday, January 12, 2010
|
||||
// #author = Dark Dragon DX
|
||||
// #warrior = DarkDragonDX
|
||||
// #email = DarkDragonDX@Hotmail.com
|
||||
// #web = http://www.the-Construct.net
|
||||
// #description = Adds a new command-line to Tribes 2 for shortcuts: -safeMode
|
||||
// #status = Release
|
||||
|
||||
package SafeModeOverrides
|
||||
{
|
||||
function TCPObject::onLine(){ return true;}
|
||||
function TCPObject::connect(){ return true; }
|
||||
function TCPObject::disconnect(){ return true; }
|
||||
function TCPObject::listen(){ return true; }
|
||||
function TCPObject::send(){ return true; }
|
||||
|
||||
function HTTPObject::onLine(){ return true; }
|
||||
function HTTPObject::connect(){ return true; }
|
||||
function HTTPObject::disconnect(){ return true; }
|
||||
function HTTPObject::listen(){ return true; }
|
||||
function HTTPObject::send(){ return true;}
|
||||
function HTTPObject::post(){ return true; }
|
||||
|
||||
function SecureHTTPObject::onLine(){ return true; }
|
||||
function SecureHTTPObject::connect(){ return true; }
|
||||
function SecureHTTPObject::disconnect(){ return true; }
|
||||
function SecureHTTPObject::listen(){ return true; }
|
||||
function SecureHTTPObject::send(){ return true; }
|
||||
function SecureHTTPObject::post(){ return true; }
|
||||
};
|
||||
|
||||
package SafeMode
|
||||
{
|
||||
function DispatchLaunchMode()
|
||||
{
|
||||
parent::DispatchLaunchMode();
|
||||
|
||||
// check T2 command line arguments
|
||||
for(%i = 1; %i < $Game::argc ; %i++)
|
||||
{
|
||||
%arg = $Game::argv[%i];
|
||||
%nextArg = $Game::argv[%i+1];
|
||||
%hasNextArg = $Game::argc - %i > 1;
|
||||
|
||||
if( !stricmp(%arg, "-Safemode")) //If enabled, cuts off all TCP & HTTP object connections, preventing UE's when running T2 without internet
|
||||
activatePackage(SafeModeOverrides);
|
||||
}
|
||||
}
|
||||
};
|
||||
// #autoload
|
||||
// #name = Safe Mode
|
||||
// #version = 1.0
|
||||
// #date = Tuesday, January 12, 2010
|
||||
// #author = Dark Dragon DX
|
||||
// #warrior = DarkDragonDX
|
||||
// #email = DarkDragonDX@Hotmail.com
|
||||
// #web = http://www.the-Construct.net
|
||||
// #description = Adds a new command-line to Tribes 2 for shortcuts: -safeMode
|
||||
// #status = Release
|
||||
|
||||
package SafeModeOverrides
|
||||
{
|
||||
function TCPObject::onLine(){ return true;}
|
||||
function TCPObject::connect(){ return true; }
|
||||
function TCPObject::disconnect(){ return true; }
|
||||
function TCPObject::listen(){ return true; }
|
||||
function TCPObject::send(){ return true; }
|
||||
|
||||
function HTTPObject::onLine(){ return true; }
|
||||
function HTTPObject::connect(){ return true; }
|
||||
function HTTPObject::disconnect(){ return true; }
|
||||
function HTTPObject::listen(){ return true; }
|
||||
function HTTPObject::send(){ return true;}
|
||||
function HTTPObject::post(){ return true; }
|
||||
|
||||
function SecureHTTPObject::onLine(){ return true; }
|
||||
function SecureHTTPObject::connect(){ return true; }
|
||||
function SecureHTTPObject::disconnect(){ return true; }
|
||||
function SecureHTTPObject::listen(){ return true; }
|
||||
function SecureHTTPObject::send(){ return true; }
|
||||
function SecureHTTPObject::post(){ return true; }
|
||||
};
|
||||
|
||||
package SafeMode
|
||||
{
|
||||
function DispatchLaunchMode()
|
||||
{
|
||||
parent::DispatchLaunchMode();
|
||||
|
||||
// check T2 command line arguments
|
||||
for(%i = 1; %i < $Game::argc ; %i++)
|
||||
{
|
||||
%arg = $Game::argv[%i];
|
||||
%nextArg = $Game::argv[%i+1];
|
||||
%hasNextArg = $Game::argc - %i > 1;
|
||||
|
||||
if( !stricmp(%arg, "-Safemode")) //If enabled, cuts off all TCP & HTTP object connections, preventing UE's when running T2 without internet
|
||||
activatePackage(SafeModeOverrides);
|
||||
}
|
||||
}
|
||||
};
|
||||
activatePackage(SafeMode);
|
||||
Loading…
Add table
Add a link
Reference in a new issue