Jump to content

Tweak .xm error picture of error link


Go to solution Solved by castix,

23 posts in this topic

Recommended Posts

Posted (edited)

So I fixed the other error where I kept getting a Xcode command error. So now my new error is my tweak.xm it is saying the first argument must be greater than 0


Here is my tweak.xm. Also tell me if I'm missing anything if I have to add anything

#include <substrate.h>

%hook PMListeningPersistence
-(double) skipDelayAfterTrackStart {
return 0;
}
%end

%hook PMListeningPersistence
-(BOOL) listenTimeoutEnabled {
return FALSE;
}
%end

%hook PMBaseSettings
-(BOOL) ignoreSkipLimit {
return TRUE;
}
%end

%hook PMRadioConfig
-(BOOL) discardAudioAds {
return TRUE;
}
%end

%hook TrackDescriptor
-(BOOL) allowVisualAds {
return FALSE;
}
%end

%hook PMAppPersistence
-(int) cellAudioQuality {
return 200000000;
}
%end

%hook AudioFileTypes
+(double) cellHighQualityBitrate {
return 200000000;
}
%end

%hook AudioFileTypes
+(double) cellLowQualityBitrate {
return 200000000;
}
%end

%hook StationDescriptor
-(BOOL) suppressVideoAds {
return TRUE;
}
%end

%hook PMRadio
-(BOOL) userReceivesVisualAds {
return FALSE;
}
%end

%hook PMRadioConfig
-(BOOL) enableBannerAds {
return FALSE;
}
%end

%hook StationPlayer
-(BOOL) skipsAudioAds {
return TRUE;
}
%end

Updated by Taylor Meyer
Posted

Not getting mad at anyone here but now I'm getting ****ing pissed now I tried moving stuff around in my tweak.xm of course ****ing didn't work screw the ****ing project I'm about to have someone I trust that can compile it

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines