Advertisement
lm6678

Untitled

Apr 18th, 2019
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.85 KB | None | 0 0
  1. if (game_explorer == 1)
  2. {
  3. if (get == 1)
  4. {
  5.  
  6. //sceAppInstUtilAppGetSiz
  7. a = a + 8;
  8. b = b + 8;
  9. c = c + 8;
  10. d = d + 8;
  11. e = e + 8;
  12. klog("----------------------\n");
  13. f = f + 8;
  14. g = g + 8;
  15. h = h + 8;
  16. o = o + 8;
  17. if (o > nSaved)
  18. {
  19. klog("Limited of saved entries exceeded o = %i, nsaved = %i\n", o, nSaved);
  20. if (x >= nSaved)
  21. {
  22. x = 0;
  23. o = 7;
  24. a = 0;
  25. b = 1;
  26. c = 2;
  27. d = 3;
  28. e = 4;
  29. klog("----------------------\n");
  30. f = 5;
  31. g = 6;
  32. h = 7;
  33. }
  34. }
  35. get = 0;
  36. }
  37. int y = 0;
  38. int ggg;
  39.  
  40. int xxx = 170;
  41. for (int y; x <= o; x++) {
  42. int rets = sceAppInstUtilGetTitleIdFromPkg(saved_paths[x], title_id, &ggg);
  43. if (rets) {
  44. klog("failed\n");
  45. }
  46.  
  47. klog("x = %i\n", x);
  48. klog("o = %i\n", o);
  49. klog("title id = %s\n", title_id);
  50. sprintf(buff, "/user/appmeta/%s/icon0.png", title_id);
  51.  
  52. xxx = xxx + 240;
  53.  
  54. klog("xxx = %i\n", xxx);
  55.  
  56.  
  57. c2 = 0x8FFFFFFF;
  58. c1 = 0x8FFFFFFF;
  59. update_gradient(&c1, &c2);
  60.  
  61. if (x == a)
  62. {
  63.  
  64.  
  65.  
  66. if (ffff == 1)
  67. {
  68.  
  69. xxx = xxx - 240;
  70. print_text(xxx, 220, title_id);
  71. menu7 = orbis2dLoadPngFromSandBox(buff);
  72. ffff = 0;
  73. }
  74. else
  75. {
  76. menu0 = orbis2dLoadPngFromSandBox(buff);
  77. print_text(170, 220, title_id);
  78. }
  79. memset(buff, 0, sizeof(buff));
  80. }
  81. if (x == b)
  82. {
  83. if (ffff == 1)
  84. {
  85. xxx = xxx - 240;
  86. print_text(xxx, 220, title_id);
  87.  
  88. menu0 = orbis2dLoadPngFromSandBox(buff);
  89. ffff = 0;
  90. }
  91. else
  92. {
  93. print_text(xxx, 220, title_id);
  94. menu1 = orbis2dLoadPngFromSandBox(buff);
  95. }
  96.  
  97.  
  98. memset(buff, 0, sizeof(buff));
  99. }
  100. if (x == c)
  101. {
  102. if (ffff == 1)
  103. {
  104. xxx = xxx - 240;
  105. print_text(xxx, 220, title_id);
  106. menu1 = orbis2dLoadPngFromSandBox(buff);
  107. ffff = 0;
  108. }
  109. else
  110. {
  111. print_text(xxx, 220, title_id);
  112. menu2 = orbis2dLoadPngFromSandBox(buff);
  113. }
  114.  
  115. memset(buff, 0, sizeof(buff));
  116. }
  117. if (x == d)
  118. {
  119.  
  120. if (ffff == 1)
  121. {
  122. xxx = xxx - 240;
  123. print_text(xxx, 220, title_id);
  124.  
  125. menu2 = orbis2dLoadPngFromSandBox(buff);
  126. ffff = 0;
  127. }
  128. else
  129. {
  130. print_text(xxx, 220, title_id);
  131. menu3 = orbis2dLoadPngFromSandBox(buff);
  132. }
  133.  
  134. memset(buff, 0, sizeof(buff));
  135. }
  136. if (x == e)
  137. {
  138.  
  139. if (ffff == 1)
  140. {
  141. xxx = xxx - 240;
  142. print_text(xxx, 220, title_id);
  143.  
  144. menu3 = orbis2dLoadPngFromSandBox(buff);
  145. ffff = 0;
  146. }
  147. else
  148. {
  149. menu4 = orbis2dLoadPngFromSandBox(buff);
  150. print_text(xxx, 460, title_id);
  151. }
  152.  
  153. memset(buff, 0, sizeof(buff));
  154. }
  155. if (x == f)
  156. {
  157.  
  158.  
  159. if (ffff == 1)
  160. {
  161. xxx = xxx - 240;
  162. print_text(xxx, 220, title_id);
  163. menu4 = orbis2dLoadPngFromSandBox(buff);
  164. ffff = 0;
  165. }
  166. else
  167. {
  168. menu5 = orbis2dLoadPngFromSandBox(buff);
  169. print_text(xxx, 460, title_id);
  170. }
  171.  
  172. memset(buff, 0, sizeof(buff));
  173. }
  174. if (x == g)
  175. {
  176.  
  177. if (ffff == 1)
  178. {
  179. xxx = xxx - 240;
  180. print_text(xxx, 220, title_id);
  181.  
  182. menu5 = orbis2dLoadPngFromSandBox(buff);
  183. ffff = 0;
  184. }
  185. else
  186. {
  187. menu6 = orbis2dLoadPngFromSandBox(buff);
  188. print_text(xxx, 460, title_id);
  189. }
  190.  
  191. memset(buff, 0, sizeof(buff));
  192. }
  193. if (x == h)
  194. {
  195.  
  196. if (ffff == 1)
  197. {
  198. xxx = xxx - 240;
  199. print_text(xxx, 220, title_id);
  200. menu6 = orbis2dLoadPngFromSandBox(buff);
  201. ffff = 0;
  202. }
  203. else
  204. {
  205. menu7 = orbis2dLoadPngFromSandBox(buff);
  206. print_text(xxx, 460, title_id);
  207. }
  208.  
  209. memset(buff, 0, sizeof(buff));
  210. }
  211.  
  212. }
  213.  
  214.  
  215.  
  216. if (menu0) orbis2dDrawnadResizeTexture(menu0, 190, 80); // uses alpha
  217.  
  218.  
  219. if (menu1) orbis2dDrawnadResizeTexture(menu1, 430, 80); // uses alpha
  220.  
  221.  
  222. if (menu2) orbis2dDrawnadResizeTexture(menu2, 670, 80); // uses alp
  223.  
  224.  
  225. if (menu3) orbis2dDrawnadResizeTexture(menu3, 910, 80); // uses alpha
  226.  
  227.  
  228. if (menu4) orbis2dDrawnadResizeTexture(menu4, 190, 320); // uses alpha
  229.  
  230.  
  231. if (menu5) orbis2dDrawnadResizeTexture(menu5, 430, 320); // uses alpha
  232.  
  233.  
  234. if (menu6) orbis2dDrawnadResizeTexture(menu6, 670, 320); // uses alpha
  235.  
  236. if (menu7) orbis2dDrawnadResizeTexture(menu7, 910, 320); // uses alpha
  237.  
  238.  
  239.  
  240. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement