// Token: 0x0600004B RID: 75 RVA: 0x0000B0A0 File Offset: 0x000092A0
 public static void StartupRetroEngine()
 {
     if (!EngineCallbacks.engineInit)
     {
         GlobalAppDefinitions.CalculateTrigAngles();
         GraphicsSystem.GenerateBlendLookupTable();
         if (FileIO.CheckRSDKFile())
         {
             GlobalAppDefinitions.LoadGameConfig("Data/Game/GameConfig.bin".ToCharArray());
         }
         AudioPlayback.InitAudioPlayback();
         StageSystem.InitFirstStage();
         ObjectSystem.ClearScriptData();
         EngineCallbacks.engineInit = true;
         return;
     }
     RenderDevice.UpdateHardwareTextures();
 }
        // Token: 0x0600004C RID: 76 RVA: 0x0000B0F0 File Offset: 0x000092F0
        public static void ProcessMainLoop()
        {
            switch (GlobalAppDefinitions.gameMode)
            {
            case 0:
                GraphicsSystem.gfxIndexSize        = 0;
                GraphicsSystem.gfxVertexSize       = 0;
                GraphicsSystem.gfxIndexSizeOpaque  = 0;
                GraphicsSystem.gfxVertexSizeOpaque = 0;
                StageSystem.ProcessStageSelectMenu();
                return;

            case 1:
                GraphicsSystem.gfxIndexSize        = 0;
                GraphicsSystem.gfxVertexSize       = 0;
                GraphicsSystem.gfxIndexSizeOpaque  = 0;
                GraphicsSystem.gfxVertexSizeOpaque = 0;
                GraphicsSystem.vertexSize3D        = 0;
                GraphicsSystem.indexSize3D         = 0;
                GraphicsSystem.render3DEnabled     = false;
                StageSystem.ProcessStage();
                if (EngineCallbacks.prevMessage == GlobalAppDefinitions.gameMessage)
                {
                    GlobalAppDefinitions.gameMessage = 0;
                    EngineCallbacks.prevMessage      = 0;
                    return;
                }
                EngineCallbacks.prevMessage = GlobalAppDefinitions.gameMessage;
                return;

            case 2:
                GlobalAppDefinitions.LoadGameConfig("Data/Game/GameConfig.bin".ToCharArray());
                StageSystem.InitFirstStage();
                FileIO.ResetCurrentStageFolder();
                return;

            case 3:
            case 7:
                break;

            case 4:
                GlobalAppDefinitions.LoadGameConfig("Data/Game/GameConfig.bin".ToCharArray());
                StageSystem.InitErrorMessage();
                FileIO.ResetCurrentStageFolder();
                return;

            case 5:
                GlobalAppDefinitions.gameMode = 1;
                RenderDevice.highResMode      = 1;
                return;

            case 6:
                GlobalAppDefinitions.gameMode = 1;
                RenderDevice.highResMode      = 0;
                return;

            case 8:
                if (EngineCallbacks.waitValue < 8)
                {
                    EngineCallbacks.waitValue++;
                    return;
                }
                GlobalAppDefinitions.gameMode = 1;
                return;

            case 9:
                if (EngineCallbacks.waitValue < 60)
                {
                    EngineCallbacks.waitValue++;
                    return;
                }
                GlobalAppDefinitions.gameMode = 1;
                break;

            default:
                return;
            }
        }