Advertisement
dcjoedog

How to make UNSELF.EXE to see the new key types?

Oct 21st, 2011
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.56 KB | None | 0 0
  1. /Original unself.exe source code
  2.  
  3. static struct keylist *self_load_keys(void)
  4. {
  5.     enum sce_key id;
  6.  
  7.     switch (app_type) {
  8.         case 1:
  9.             id = KEY_LV0;
  10.             break;
  11.         case 2:
  12.             id = KEY_LV1;
  13.             break;
  14.         case 3:
  15.             id = KEY_LV2;
  16.             break;
  17.         case 4:
  18.             id = KEY_APP;
  19.             break;
  20.         case 5:
  21.             id = KEY_ISO;
  22.             break;
  23.         case 6:
  24.             id = KEY_LDR;
  25.             break;
  26.         default:
  27.             fail("invalid type: %08x", app_type);  
  28.  
  29.  
  30. /And I would ADD atleast two more "cases" to the list like this
  31.  
  32.         case 7:
  33.             id = KEY_PKG;
  34.             break;
  35.         case 8:
  36.             id = KEY_DRM;
  37.             break;
  38.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement