コード例 #1
0
        protected void RetroLogDlgt(RETRO_LOG_LEVEL level, string message)
        {
            string format = "LibRetro: {0}";

            switch (level)
            {
            case RETRO_LOG_LEVEL.INFO:
                Logger.Info(format, message);
                break;

            case RETRO_LOG_LEVEL.DEBUG:
                Logger.Debug(format, message);
                break;

            case RETRO_LOG_LEVEL.WARN:
                Logger.Warn(format, message);
                break;

            case RETRO_LOG_LEVEL.ERROR:
                Logger.Error(format, message);
                break;

            default:
                Logger.Debug(format, message);
                break;
            }
        }
コード例 #2
0
 protected void RetroLogPrintf(RETRO_LOG_LEVEL level, string fmt, IntPtr a0, IntPtr a1, IntPtr a2, IntPtr a3, IntPtr a4, IntPtr a5, IntPtr a6, IntPtr a7, IntPtr a8, IntPtr a9, IntPtr a10, IntPtr a11, IntPtr a12, IntPtr a13, IntPtr a14, IntPtr a15)
 {
     if (_logDelegate == null)
         return; }