Advertisement
feos

AppendResolution

Aug 18th, 2014
381
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 5.64 KB | None | 0 0
  1. Index: gpu/gpu_record.cpp
  2. ===================================================================
  3. --- gpu/gpu_record.cpp  (revision 726)
  4. +++ gpu/gpu_record.cpp  (working copy)
  5. @@ -76,7 +76,7 @@
  6.     RECORD_TOTAL_BYTES = 0;
  7.     if (RECORD_RECORDING_MODE==0)
  8.     {
  9. -       sprintf(&filename[0],"%s%s%03d_%s.avi",Movie.AviDrive,Movie.AviDirectory,Movie.AviCount,Movie.AviFnameShort);
  10. +       sprintf(&filename[0],"%s%s%s_%03d.avi",Movie.AviDrive,Movie.AviDirectory,Movie.AviFnameShort,Movie.AviCount);
  11.         RECORD_BI.biWidth = Config.CurWinX;
  12.         RECORD_BI.biHeight = Config.CurWinY;
  13.     }
  14. @@ -83,7 +83,10 @@
  15.     else
  16.     {
  17.         Config.SplitAVI = true;
  18. -       sprintf(&filename[0],"%s%s%03d_%s-%dx%d.avi",Movie.AviDrive,Movie.AviDirectory,Movie.AviCount,Movie.AviFnameShort,Config.CurWinX, Config.CurWinY);
  19. +       if (Config.AppendRes)
  20. +           sprintf(&filename[0],"%s%s%s_%03d-%dx%d.avi",Movie.AviDrive,Movie.AviDirectory,Movie.AviFnameShort,Movie.AviCount,Config.CurWinX, Config.CurWinY);
  21. +       else
  22. +           sprintf(&filename[0],"%s%s%s_%03d.avi",Movie.AviDrive,Movie.AviDirectory,Movie.AviFnameShort,Movie.AviCount);
  23.         RECORD_BI.biWidth = Config.CurWinX;
  24.         RECORD_BI.biHeight = Config.CurWinY;
  25.     }
  26. Index: PsxCommon.h
  27. ===================================================================
  28. --- PsxCommon.h (revision 726)
  29. +++ PsxCommon.h (working copy)
  30. @@ -169,6 +169,7 @@
  31.     bool GetAutoHold;
  32.     bool GetAutoFire;
  33.     bool AutoFireFrame;
  34. +   bool AppendRes;
  35.     unsigned short Pad1AutoHold;
  36.     unsigned short Pad2AutoHold;
  37.     unsigned short Pad1AutoFire;
  38. Index: spu/record.cpp
  39. ===================================================================
  40. --- spu/record.cpp  (revision 726)
  41. +++ spu/record.cpp  (working copy)
  42. @@ -68,7 +68,7 @@
  43.     pcmwf.wBitsPerSample  = 16;
  44.  
  45.     // create file
  46. -    sprintf(&szRecFileName[0],"%s%s%03d_%s.wav",Movie.AviDrive,Movie.AviDirectory,Movie.AviCount,Movie.AviFnameShort);
  47. +    sprintf(&szRecFileName[0],"%s%s%s_%03d.wav",Movie.AviDrive,Movie.AviDirectory,Movie.AviFnameShort,Movie.AviCount);
  48.     hWaveFile=mmioOpen(szRecFileName,NULL,MMIO_CREATE|MMIO_WRITE|MMIO_EXCLUSIVE | MMIO_ALLOCBUF);
  49.     if (!hWaveFile) return;
  50.  
  51. Index: Win32/ConfigurePlugins.cpp
  52. ===================================================================
  53. --- Win32/ConfigurePlugins.cpp  (revision 726)
  54. +++ Win32/ConfigurePlugins.cpp  (working copy)
  55. @@ -53,6 +53,8 @@
  56.     WritePrivateProfileString("Plugins", "Cdda", Str_Tmp, Conf_File);
  57.     wsprintf(Str_Tmp, "%d", Config.PauseAfterPlayback);
  58.     WritePrivateProfileString("Plugins", "PauseAfterPlayback", Str_Tmp, Conf_File);
  59. +   wsprintf(Str_Tmp, "%d", Config.AppendRes);
  60. +   WritePrivateProfileString("Plugins", "AppendResolution", Str_Tmp, Conf_File);
  61.     wsprintf(Str_Tmp, "%d", Config.PsxOut);
  62.     WritePrivateProfileString("Plugins", "PsxOut", Str_Tmp, Conf_File);
  63.     wsprintf(Str_Tmp, "%d", Config.RCntFix);
  64. @@ -87,6 +89,7 @@
  65.     Config.QKeys = GetPrivateProfileInt("Plugins", "QKeys", 0, Conf_File);
  66.     Config.Cdda = GetPrivateProfileInt("Plugins", "Cdda", 0, Conf_File);
  67.     Config.PauseAfterPlayback = GetPrivateProfileInt("Plugins", "PauseAfterPlayback", 0, Conf_File);
  68. +   Config.AppendRes = GetPrivateProfileInt("Plugins", "AppendResolution", 1, Conf_File);
  69.     Config.PsxOut = GetPrivateProfileInt("Plugins", "PsxOut", 0, Conf_File);
  70.     Config.RCntFix = GetPrivateProfileInt("Plugins", "RCntFix", 0, Conf_File);
  71.     Config.VSyncWA = GetPrivateProfileInt("Plugins", "VSyncWA", 0, Conf_File);
  72.  
  73. Index: Win32/psxjin.rc
  74. ===================================================================
  75. --- Win32/psxjin.rc (revision 726)
  76. +++ Win32/psxjin.rc (working copy)
  77. @@ -669,6 +659,7 @@
  78.  BEGIN
  79.      GROUPBOX        "Movie",IDC_STATIC,5,5,220,25
  80.      CONTROL         "Pause After Playback",IDC_PAUSE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,15,15,83,10
  81. +    CONTROL         "Append Resolution to AVI name",IDC_APPEND,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,104,15,113,10
  82.      GROUPBOX        "Misc",IDC_STATIC1,5,35,220,38
  83.      CONTROL         "Enable Console Output",IDC_PSXOUT,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,15,45,91,10
  84.      CONTROL         "Black && White Movies",IDC_MDEC,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,15,58,85,10
  85.  
  86. Index: Win32/resource.h
  87. ===================================================================
  88. --- Win32/resource.h    (revision 726)
  89. +++ Win32/resource.h    (working copy)
  90. @@ -424,6 +424,7 @@
  91.  #define IDC_DIGITALSELECT               1338
  92.  #define IDC_RADIO2                      1339
  93.  #define IDC_ANALOGSELECT                1339
  94. +#define IDC_APPEND                      1340
  95.  #define IDC_C_WATCH_SEPARATE            1999
  96.  #define IDC_ER1                         8030
  97.  #define IDC_L3                          8031
  98. Index: Win32/WndMain.cpp
  99. ===================================================================
  100. --- Win32/WndMain.cpp   (revision 726)
  101. +++ Win32/WndMain.cpp   (working copy)
  102. @@ -1878,6 +1878,7 @@
  103.             Button_SetCheck(GetDlgItem(hW,IDC_PSXAUTO), Config.PsxAuto);
  104.             //Button_SetCheck(GetDlgItem(hW,IDC_CPU),     Config.Cpu);
  105.             Button_SetCheck(GetDlgItem(hW,IDC_PAUSE),   Config.PauseAfterPlayback);
  106. +           Button_SetCheck(GetDlgItem(hW,IDC_APPEND),  Config.AppendRes);
  107.             Button_SetCheck(GetDlgItem(hW,IDC_PSXOUT),  Config.PsxOut);
  108.             Button_SetCheck(GetDlgItem(hW,IDC_RCNTFIX), Config.RCntFix);
  109.             Button_SetCheck(GetDlgItem(hW,IDC_VSYNCWA), Config.VSyncWA);
  110. @@ -1900,6 +1901,7 @@
  111.                     Config.Cdda    = Button_GetCheck(GetDlgItem(hW,IDC_CDDA));
  112.                     Config.PsxAuto = Button_GetCheck(GetDlgItem(hW,IDC_PSXAUTO));
  113.                     Config.PauseAfterPlayback = Button_GetCheck(GetDlgItem(hW,IDC_PAUSE));
  114. +                   Config.AppendRes = Button_GetCheck(GetDlgItem(hW,IDC_APPEND));
  115.                     /*tmp = Config.Cpu;
  116.                     Config.Cpu     = Button_GetCheck(GetDlgItem(hW,IDC_CPU));
  117.                     if (tmp != Config.Cpu) {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement