public static RESULT Initialize(DEBUG_FLAGS flags, DEBUG_MODE mode, DEBUG_CALLBACK callback, string filename)
 {
     using (StringHelper.ThreadSafeEncoding threadSafeEncoding = StringHelper.GetFreeHelper())
     {
         return(FMOD5_Debug_Initialize(flags, mode, callback, threadSafeEncoding.byteFromStringUTF8(filename)));
     }
 }
Пример #2
0
        /// <summary>
        /// Print system information at startup
        /// </summary>
        private static void Initialize_Log_System()
        {
            // Godot OS options : https://docs.godotengine.org/en/stable/classes/class_os.html
            Info($"Game Name : { ProjectSettings.GetSetting("application/config/name") } ({_gameShortName})");
            Info($"Debug Build Internal : { DEBUG_MODE.ToString().ToUpper() } / Godot : { OS.IsDebugBuild().ToString().ToUpper() }");
            Info($"Id Unique : { _uniqueId }");
            Info($"Time : { OS.GetTime(true) } UTC / { OS.GetTime(false) } Local");

            Info($"System : { OS.GetName() }");
            Info($"CPU Number of cores : { OS.GetProcessorCount()/2 } / Memory : { (OS.GetStaticMemoryUsage() / 1024).ToString() } Go");
#if GODOT_WINDOWS || GODOT_X11 || GODOT_OSX || GODOT_ANDROID || GODOT_IOS || GODOT_SERVER
            Info($"Power Type : { OS.GetPowerState() } / Left : { OS.GetPowerSecondsLeft() }");
#endif

            Info($"Video Driver : { OS.GetCurrentVideoDriver() } / Screen size { OS.GetScreenSize() } / Game screen size { OS.GetRealWindowSize() }");

            Info($"Mobile Model : { OS.GetModelName() }");
            Info("---------------------------------------------------------------------------------------------", pWriteToDBLog: false);
        }
Пример #3
0
        /// <summary>
        /// Debugs the specified level.
        /// </summary>
        /// <param name="level">The level.</param>
        /// <param name="dMode">The d mode.</param>
        /// <param name="dString">The d string.</param>
        public void debug(DEBUG_LEVEL level, DEBUG_MODE dMode, string dString)
        {
            if (level != debugLevel && debugLevel != DEBUG_LEVEL.ALL)
            {
                // return;
            }

            switch (dMode)
            {
            default:
            case DEBUG_MODE.DISABLED:
                break;

            case DEBUG_MODE.CONSOLE:
                System.Console.WriteLine(dString);
                break;

            case DEBUG_MODE.FILE:
                writeIntoFile(dString);
                break;
            }
        }
Пример #4
0
 private static extern RESULT FMOD_Debug_Initialize(DEBUG_FLAGS flags, DEBUG_MODE mode, DEBUG_CALLBACK callback, string filename);
Пример #5
0
 public static RESULT Initialize(DEBUG_FLAGS flags, DEBUG_MODE mode, DEBUG_CALLBACK callback, string filename)
 {
     return FMOD_Debug_Initialize(flags, mode, callback, filename);
 }
Пример #6
0
 public static RESULT Initialize(DEBUG_FLAGS flags, DEBUG_MODE mode, DEBUG_CALLBACK callback, string filename)
 {
     return(Debug.FMOD5_Debug_Initialize(flags, mode, callback, filename));
 }
Пример #7
0
 private static extern RESULT FMOD5_Debug_Initialize(DEBUG_FLAGS flags, DEBUG_MODE mode, DEBUG_CALLBACK callback, string filename);
Пример #8
0
 /// <summary>
 /// Debugs the specified d string.
 /// </summary>
 /// <param name="dString">The d string.</param>
 public void debug(DEBUG_MODE dMode, string dString)
 {
     debug(DEBUG_LEVEL.INFO, dMode, dString);
 }
Пример #9
0
 /// <summary>
 /// Sets the debug enabled.
 /// </summary>
 /// <param name="enabled">if set to <c>true</c> [enabled].</param>
 public void setDebugEnabled(bool enabled)
 {
     debugMode = enabled == true ? DEBUG_MODE.CONSOLE : DEBUG_MODE.DISABLED;
 }
Пример #10
0
 /// <summary>
 /// Enables the debug.
 /// </summary>
 /// <param name="enable">if set to <c>true</c> [enable].</param>
 public void enableDebug(bool enable)
 {
     debugMode = enable == true ? DEBUG_MODE.CONSOLE : DEBUG_MODE.DISABLED;
 }
Пример #11
0
        public MainWindow()
        {
            DebugFactory.getInstance().DebugLevel = DEBUG_LEVEL.ALL;
            debugMode = DEBUG_MODE.CONSOLE;

            initUserContext();

            InitializeComponent();

            this.Visible = true;

            traceElementList = new List <TraceElement>();

            // ----------------------------------------------------------------

            traceListBox     = new TraceGuiListBox();
            traceBindingList = new BindingList <TraceGuiListItem>();

            tableLayoutPanel1.Controls.Add(traceListBox, 0, 0);

            traceListBox.Dock = System.Windows.Forms.DockStyle.Fill;
            traceListBox.FormattingEnabled = true;
            traceListBox.Location          = new System.Drawing.Point(3, 3);
            traceListBox.Size                  = new System.Drawing.Size(656, 389);
            traceListBox.TabIndex              = 0;
            traceListBox.SelectedIndexChanged += new EventHandler(onTraceListBoxSelectedIndexChanged);

            traceListBox.HorizontalScrollbar = true;
            traceListBox.DataSource          = traceBindingList;

            // ------------------------------------------------------

            traceFileContentListBox = new TracerGuiFileContentListBox();
            fileContentBindingList  = new BindingList <TraceFileContentElement>();

            /*
             * this.tableLayoutPanel1.Controls.Add(this.traceFileContentListBox, 1, 0);
             */
            this.traceFileContentListBox.Dock     = System.Windows.Forms.DockStyle.Fill;
            this.traceFileContentListBox.Location = new System.Drawing.Point(339, 3);
            this.traceFileContentListBox.Size     = new System.Drawing.Size(320, 409);
            this.traceFileContentListBox.TabIndex = 0;
            this.traceFileContentListBox.Text     = "";

            traceFileContentListBox.HorizontalScrollbar = true;
            traceFileContentListBox.DataSource          = fileContentBindingList;

            // ------------------------------------------------------


            // ------------------------------------------------------

            TracerFactory.getInstance().getInterface().init();
            TracerFactory.getInstance().getInterface().setConnectionInterface(SerialIOFactory.getInstance().getSerialConnection());
            TracerFactory.getInstance().getInterface().getUpdateHandler().Event_UpdateNotification += new TracerUpdateNotification.UpdateNotificationHandler(onTraceEvent);

            this.traceListBox.KeyDown += new KeyEventHandler(onKeyDown);
            this.KeyDown += new KeyEventHandler(onKeyDown);
            this.traceFileContentListBox.KeyDown += new KeyEventHandler(onKeyDown);
            this.traceFileContentTextBox.KeyDown += new KeyEventHandler(onKeyDown);

            progressTraceWindow = new TraceInProgressWindow();
            progressTraceWindow.Event_UpdateNotification += new CommonWindow.UpdateNotificationHandler(onWindowEvent);

            comportWindow = new ComportSelectionWindow();
            comportWindow.prepare();
            comportWindow.StartPosition             = FormStartPosition.CenterParent;
            comportWindow.Event_UpdateNotification += new CommonWindow.UpdateNotificationHandler(onWindowEvent);
            comportWindow.ShowDialog(this);
        }