mirror of
https://github.com/moparisthebest/Simba
synced 2024-11-21 08:45:06 -05:00
RUTIS define for Wizzup...
This commit is contained in:
parent
40f6b542c6
commit
b45dfce1ac
@ -23,6 +23,7 @@
|
||||
unit SimbaUnit;
|
||||
|
||||
{$undef EditButtons}
|
||||
{$define USE_RUTIS}
|
||||
{$Undef ProcessMessages} //Define this for processmessages in ThreadSafeCall
|
||||
{$mode objfpc}{$H+}
|
||||
|
||||
@ -1469,7 +1470,7 @@ begin
|
||||
try
|
||||
case Interpreter of
|
||||
interp_PS : Thread := TPSThread.Create(true,@CurrentSyncInfo,PluginPath);
|
||||
interp_RT : Thread := TRTThread.Create(true,@CurrentSyncInfo,PluginPath);
|
||||
interp_RT : {$IFDEF USE_RUTIS}Thread := TRTThread.Create(true,@CurrentSyncInfo,PluginPath){$ELSE}formWriteln('RUTIS NOT SUPPORTED') {$ENDIF};
|
||||
interp_CP : Thread := TCPThread.Create(true,@CurrentSyncInfo,PluginPath);
|
||||
end;
|
||||
except
|
||||
|
@ -33,7 +33,10 @@ uses
|
||||
Classes, SysUtils, client, uPSComponent,uPSCompiler,
|
||||
uPSRuntime,stdCtrls, uPSPreProcessor,MufasaTypes,MufasaBase, web,
|
||||
bitmaps, plugins, libloader, dynlibs,internets,scriptproperties,
|
||||
settings,settingssandbox, Rutis_Engine,Rutis_Defs,lcltype, dialogs;
|
||||
settings,settingssandbox, lcltype, dialogs
|
||||
{$IFDEF USE_RUTIS}
|
||||
,Rutis_Engine,Rutis_Defs
|
||||
{$ENDIF};
|
||||
|
||||
const
|
||||
m_Status = 0; //Data = PChar to new status
|
||||
@ -207,7 +210,7 @@ type
|
||||
end;
|
||||
|
||||
{ TRTThread }
|
||||
|
||||
{$IFDEF USE_RUTIS}
|
||||
TRTThread = class(TMThread)
|
||||
private
|
||||
procedure RTOnWrite(s : String);
|
||||
@ -220,6 +223,7 @@ type
|
||||
procedure Execute; override;
|
||||
procedure Terminate; override;
|
||||
end;
|
||||
{$ENDIF}
|
||||
|
||||
|
||||
threadvar
|
||||
@ -1012,7 +1016,7 @@ begin
|
||||
end;
|
||||
|
||||
{ TRTThread }
|
||||
|
||||
{$IFDEF USE_RUTIS}
|
||||
procedure TRTThread.RTOnWrite(s: String);
|
||||
begin
|
||||
psWriteln(s);
|
||||
@ -1116,6 +1120,7 @@ procedure TRTThread.Terminate;
|
||||
begin
|
||||
RUTIS.Stop;
|
||||
end;
|
||||
{$ENDIF}
|
||||
|
||||
initialization
|
||||
PluginsGlob := TMPlugins.Create;
|
||||
|
Loading…
Reference in New Issue
Block a user