Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- char __cdecl tryPlaySoundRandom(int a1)
- {
- char result; // al@1
- int v2; // eax@6
- char v3; // [sp+4h] [bp-218h]@6
- char v4; // [sp+8h] [bp-214h]@6
- int v5; // [sp+218h] [bp-4h]@6
- result = canPlaySound(a1);
- if ( result )
- {
- result = sub_41BDF0(&unk_191B770);
- if ( result )
- result = sub_40F360(&unk_191B770, 1065353216);
- if ( a1 )
- {
- if ( *(_BYTE *)a1 )
- {
- v2 = playSoundFile__(&v3, a1, 0);
- v5 = 0;
- sub_41BD90(v2);
- v5 = -1;
- result = TemporaryCrcString___TemporaryCrcString(&v4);
- }
- }
- byte_191B558 = 1;
- }
- return result;
- }
- char __cdecl tryPlaySoundWithIndex(int a1)
- {
- char result; // al@1
- int v2; // eax@6
- char v3; // [sp+4h] [bp-218h]@6
- char v4; // [sp+8h] [bp-214h]@6
- int v5; // [sp+218h] [bp-4h]@6
- result = canPlaySound(a1);
- if ( result )
- {
- result = sub_41BDF0(&unk_191B980);
- if ( result )
- result = sub_40F360(&unk_191B980, 1065353216);
- if ( a1 )
- {
- if ( *(_BYTE *)a1 )
- {
- v2 = playSoundFile__(&v3, a1, 0);
- v5 = 0;
- sub_41BD90(v2);
- v5 = -1;
- result = TemporaryCrcString___TemporaryCrcString(&v4);
- }
- }
- }
- return result;
- }
Add Comment
Please, Sign In to add comment