Ejemplo n.º 1
0
 public HSStudioNEOAddon()
 {
     //super(HSStudioNEOAddon, self).__init__("HSStudioNEOAddon") #can't get it to work
     ExtPlugin.@__init__(this, "HSStudioNEOAddon");
     if (this.isDetected)
     {
         this.vmdMgr = BaseMgr[HSVMDAnimationMgr].Instance;
     }
 }
Ejemplo n.º 2
0
 // init flags
 public void initFlag()
 {
     //plgdir = os.path.join(os.getcwd(), "Plugins/")
     if (ExtPlugin.exists(this.name))
     {
         this.isDetected = true;
         clr.AddReference(this.name);
         //print self.name + ".dll detected."
     }
     else
     {
         this.isDetected = false;
         Console.WriteLine(this.name + ".dll not found.");
     }
 }
Ejemplo n.º 3
0
        public static int exists(object name)
        {
            // usually check IPA folder
            // plgdir = os.path.join(os.getcwd(), "Plugins/")
            //
            // if get_engine_id() == "charastudio":
            //     # in CharaStudio check BepInEx folder
            //     plgdir = os.path.join(os.getcwd(), "BepInEx/")
            //
            // if get_engine_id() == "neov2":
            //     # in StudioNeoV2 check BepInEx/plugins folder
            //     plgdir = os.path.join(os.getcwd(), "BepInEx/Plugins/")
            var plgdir = ExtPlugin.calc_plugin_dir();

            return(os.path.isfile(plgdir + "/" + name + ".dll"));
        }
Ejemplo n.º 4
0
 public static object has_plugin(object pluginname)
 {
     return(ExtPlugin.exists(pluginname));
 }
Ejemplo n.º 5
0
 public KKPE()
 {
     //super(HSStudioNEOAddon, self).__init__("HSStudioNEOAddon") #can't get it to work
     ExtPlugin.@__init__(this, "KKPE");
 }
Ejemplo n.º 6
0
 public HSStudioNEOExtSave()
 {
     //super(HSStudioNEOExtSave, self).__init__("HSStudioNEOExtSave") #can't get it to work
     ExtPlugin.@__init__(this, "HSStudioNEOExtSave");
 }