Gear plugin confusion - plugin scripts and Gear are both C# !
mstram
Posts: 49
As a C# novice I find it very confusing that Gear itself is written in C#, and the plugin "scripts" are also in C#.
I've started to read the source code to try and understand which classes are used internally by Gear, and which are exposed and therefore useable
by the plugin "scripts".
Any hints / tips on this are appreciated !
E.g. I just tried to add :
The type or namespace name 'Propeller' does not exist in the namespace 'Gear' (are you missing an assembly reference)
But in AssemblyRegisters.cs the entry is there :
While the same plugin XML (Terminal.xml) has :
(namespace Gear.EmulationCore) is in PropellerCPU.cs)
I've started to read the source code to try and understand which classes are used internally by Gear, and which are exposed and therefore useable
by the plugin "scripts".
Any hints / tips on this are appreciated !
E.g. I just tried to add :
using Gear.Propeller;to a plugin, and the Gear/CheckCode says :
The type or namespace name 'Propeller' does not exist in the namespace 'Gear' (are you missing an assembly reference)
But in AssemblyRegisters.cs the entry is there :
namespace Gear.Propeller
While the same plugin XML (Terminal.xml) has :
using Gear.EmulationCore;, which is accepted by Gear/CheckCode.
(namespace Gear.EmulationCore) is in PropellerCPU.cs)
Comments
Well inside the hook of GEAR, there are a lot of (confusing at first) things! :-)
See the post in "SIDcog - The sound of the Commodore 64 ! (Now in the OBEX)" thread (http://forums.parallax.com/showthread.php/118285-SIDcog-The-sound-of-the-Commodore-64-!-%28Now-in-the-OBEX%29?p=1327988#post1327988) and "Improved GEAR Emulator" http://forums.parallax.com/showthread.php/156347-Improved-GEAR-Emulator thread.
If you post your questions on plugins in one thread could be easier to answer them. ;-)
Antonio