Al-Azif

Untitled

May 3rd, 2020
1,321
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.47 KB | None | 0 0
  1. int32_t sceScreenShotDisableNotification()
  2. {
  3.     // Don't do anything, to silence notifications
  4.     return 0;
  5. }
  6.  
  7. int32_t sceScreenShotEnableNotification()
  8. {
  9.     // Don't do anything, to silence notifications
  10.     return 0;
  11. }
  12.  
  13. int32_t sceScreenShotIsDisabled()
  14. {
  15.     // Always return false, so sceScreenShotEnable()/sceScreenShotDisable() effectively do nothing
  16.     return 0;
  17. }
  18.  
  19. int32_t sceScreenShotIsVshScreenCaptureDisabled()
  20. {
  21.     // Always return false, to enable screenshots on the PS4's menu
  22.     return 0;
  23. }
  24.  
  25. int32_t sceScreenShotSetOverlayImage(const char*filePath, int32_t offsetx, int32_t offsety)
  26. {
  27.     // Don't add overlay (May need to add a known transparent one if skipping does nothing)
  28.     return 0;
  29. }
  30.  
  31. int32_t sceVideoRecordingSetInfo(int32_t info, const void *pInfo, size_t infoLen)
  32. {
  33.     // TODO: Define real sceVideoRecordingSetInfo()
  34.  
  35.     // Make all permission level changes to zero
  36.     if (info == 0xA007)
  37.     {
  38.         uint32_t level = 0;
  39.         return sceVideoRecordingSetInfo(info, &level, sizeof(level));
  40.     }
  41.  
  42.     // Clear guards rather than create them
  43.     if (info == 0xA008)
  44.     {
  45.         return sceVideoRecordingSetInfo(info, nullptr, 0);
  46.     }
  47.  
  48.     // Make copyright info empty
  49.     if (info == 0x0A01)
  50.     {
  51.         char copyright[1] = "\0";
  52.         return sceVideoRecordingSetInfo(info, &copyright, sizeof(copyright));
  53.     }
  54.  
  55.     // Use real function
  56.     return sceVideoRecordingSetInfo(info, &pInfo, infoLen);
  57. }
Advertisement
Add Comment
Please, Sign In to add comment