Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // NoEUVolumeRestrictions
- // Stefan Wittwer
- //
- %hook SBVolumeHUDView
- + (float)volumeStepUpForCurrentVolume:(float)volume euVolumeLimit:(float)euVolumeLimit {
- return %orig(volume,1.2);
- }
- + (bool)wouldShowAtLeastAYellowBlockForVolume:(float)volume euVolumeLimit:(float)euVolumeLimit {
- return %orig(volume,1.2);
- }
- - (float)EUVolumeLimit {
- return 1.2;
- }
- - (void)setEUVolumeLimit:(float)volume {
- // Do nothing
- }
- %end
- %hook VolumeControl
- - (void)initializeEUVolumeLimits {
- // Do nothing
- }
- - (_Bool)turnOnScreenIfNecessaryForEULimit:(_Bool)arg1 {
- return NO;
- }
- - (void)sendEUVolumeLimitAcknowledgementIfNecessary {
- // Do even less
- }
- - (void)EUVolumeEnforcementChanged {
- // Still nothing
- }
- - (void)EUVolumeLimitChanged {
- // Does - you guessed it – nothing
- }
- %end
- %hook AVSystemController
- - (bool)allowUserToExceedEUVolumeLimit {
- return YES;
- }
- %end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement