Guest User

Untitled

a guest
May 20th, 2018
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. char __cdecl tryPlaySoundRandom(int a1)
  2. {
  3. char result; // al@1
  4. int v2; // eax@6
  5. char v3; // [sp+4h] [bp-218h]@6
  6. char v4; // [sp+8h] [bp-214h]@6
  7. int v5; // [sp+218h] [bp-4h]@6
  8.  
  9. result = canPlaySound(a1);
  10. if ( result )
  11. {
  12. result = sub_41BDF0(&unk_191B770);
  13. if ( result )
  14. result = sub_40F360(&unk_191B770, 1065353216);
  15. if ( a1 )
  16. {
  17. if ( *(_BYTE *)a1 )
  18. {
  19. v2 = playSoundFile__(&v3, a1, 0);
  20. v5 = 0;
  21. sub_41BD90(v2);
  22. v5 = -1;
  23. result = TemporaryCrcString___TemporaryCrcString(&v4);
  24. }
  25. }
  26. byte_191B558 = 1;
  27. }
  28. return result;
  29. }
  30.  
  31.  
  32.  
  33. char __cdecl tryPlaySoundWithIndex(int a1)
  34. {
  35. char result; // al@1
  36. int v2; // eax@6
  37. char v3; // [sp+4h] [bp-218h]@6
  38. char v4; // [sp+8h] [bp-214h]@6
  39. int v5; // [sp+218h] [bp-4h]@6
  40.  
  41. result = canPlaySound(a1);
  42. if ( result )
  43. {
  44. result = sub_41BDF0(&unk_191B980);
  45. if ( result )
  46. result = sub_40F360(&unk_191B980, 1065353216);
  47. if ( a1 )
  48. {
  49. if ( *(_BYTE *)a1 )
  50. {
  51. v2 = playSoundFile__(&v3, a1, 0);
  52. v5 = 0;
  53. sub_41BD90(v2);
  54. v5 = -1;
  55. result = TemporaryCrcString___TemporaryCrcString(&v4);
  56. }
  57. }
  58. }
  59. return result;
  60. }
Add Comment
Please, Sign In to add comment