예제 #1
0
        public virtual RCOState execute(UmdVideoPlayer umdVideoPlayer, string resourceName)
        {
            RCOState state = null;

            if (pVSMXTable != RCO_NULL_PTR)
            {
                state             = new RCOState();
                state.interpreter = new VSMXInterpreter();
                state.controller  = Controller.create(state.interpreter, umdVideoPlayer, resourceName);
                state             = execute(state, umdVideoPlayer, resourceName);

                state.controller.Object.callCallback(state.interpreter, "onAutoPlay", null);
            }

            return(state);
        }
예제 #2
0
        public virtual RCOState execute(RCOState state, UmdVideoPlayer umdVideoPlayer, string resourceName)
        {
            if (pVSMXTable != RCO_NULL_PTR)
            {
                StringBuilder vsmxName = new StringBuilder();
                VSMX          vsmx     = new VSMX(readVSMX(pVSMXTable, vsmxName), vsmxName.ToString());
                state.interpreter.VSMX = vsmx;
                state.globalVariables  = GlobalVariables.create(state.interpreter);
                state.globalVariables.setPropertyValue(Controller.objectName, state.controller);
                state.globalVariables.setPropertyValue(MoviePlayer.objectName, MoviePlayer.create(state.interpreter, umdVideoPlayer, state.controller));
                state.globalVariables.setPropertyValue(Resource.objectName, Resource.create(state.interpreter, umdVideoPlayer.RCODisplay, state.controller, mainTable));
                state.globalVariables.setPropertyValue(pspsharp.format.rco.vsmx.objects.Math.objectName, pspsharp.format.rco.vsmx.objects.Math.create(state.interpreter));
                state.interpreter.run(state.globalVariables);
            }

            return(state);
        }