Changes
From Vita Development Wiki
513 bytes added
, 12:10, 12 March 2020
Line 32: |
Line 32: |
| // more ... | | // more ... |
| } SceShellSvcTable; | | } SceShellSvcTable; |
| + | |
| + | </source> |
| + | |
| + | == common == |
| + | |
| + | how to play shutter sound on SceShellSvc only |
| + | |
| + | <source lang="C"> |
| + | |
| + | int sceShellSvcShutterSoundPlay(void){ |
| + | |
| + | void *(* SceShellSvc_B31E7F1C)(void); |
| + | void *ptr; |
| + | |
| + | int arg_a3 = 0, arg_a5[2]; |
| + | |
| + | arg_a5[0] = 0; |
| + | arg_a5[1] = 0; // sound type? |
| + | |
| + | taiGetModuleExportFunc("SceShellSvc", 0xFFFFFFFF, 0xB31E7F1C, (uintptr_t *)&SceShellSvc_B31E7F1C); |
| + | |
| + | ptr = SceShellSvc_B31E7F1C(); |
| + | |
| + | ((SceShellSvcTable *)(*(uint32_t *)ptr))->sceShutterSoundPlay(ptr, 0x140000, &arg_a3, 1, arg_a5, 0, 0); |
| + | |
| + | return 0; |
| + | } |
| | | |
| </source> | | </source> |