mirror of
https://github.com/YuzuZensai/iOS-DiscordPresence.git
synced 2026-01-30 12:32:48 +00:00
Changed package id
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
<key>CFBundleExecutable</key>
|
<key>CFBundleExecutable</key>
|
||||||
<string>iOSDiscordPresencePreferences</string>
|
<string>iOSDiscordPresencePreferences</string>
|
||||||
<key>CFBundleIdentifier</key>
|
<key>CFBundleIdentifier</key>
|
||||||
<string>pink.kirameki.yuzu.iosdiscordpresencepreferences</string>
|
<string>cafe.kirameki.iosdiscordpresencepreferences</string>
|
||||||
<key>CFBundleInfoDictionaryVersion</key>
|
<key>CFBundleInfoDictionaryVersion</key>
|
||||||
<string>6.0</string>
|
<string>6.0</string>
|
||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
|
|||||||
@@ -26,19 +26,19 @@
|
|||||||
<key>default</key>
|
<key>default</key>
|
||||||
<false/>
|
<false/>
|
||||||
<key>defaults</key>
|
<key>defaults</key>
|
||||||
<string>pink.kirameki.yuzu.iosdiscordpresencepreferences</string>
|
<string>cafe.kirameki.iosdiscordpresencepreferences</string>
|
||||||
<key>key</key>
|
<key>key</key>
|
||||||
<string>isEnabled</string>
|
<string>isEnabled</string>
|
||||||
<key>label</key>
|
<key>label</key>
|
||||||
<string>Enabled</string>
|
<string>Enabled</string>
|
||||||
<key>PostNotification</key>
|
<key>PostNotification</key>
|
||||||
<string>pink.kirameki.yuzu.iosdiscordpresencepreferences/PreferencesChanged</string>
|
<string>cafe.kirameki.iosdiscordpresencepreferences/PreferencesChanged</string>
|
||||||
</dict>
|
</dict>
|
||||||
<dict>
|
<dict>
|
||||||
<key>cell</key>
|
<key>cell</key>
|
||||||
<string>PSSecureEditTextCell</string>
|
<string>PSSecureEditTextCell</string>
|
||||||
<key>defaults</key>
|
<key>defaults</key>
|
||||||
<string>pink.kirameki.yuzu.iosdiscordpresencepreferences</string>
|
<string>cafe.kirameki.iosdiscordpresencepreferences</string>
|
||||||
<key>key</key>
|
<key>key</key>
|
||||||
<string>discordToken</string>
|
<string>discordToken</string>
|
||||||
<key>label</key>
|
<key>label</key>
|
||||||
@@ -46,7 +46,7 @@
|
|||||||
<key>placeholder</key>
|
<key>placeholder</key>
|
||||||
<string>Put your discord token here</string>
|
<string>Put your discord token here</string>
|
||||||
<key>PostNotification</key>
|
<key>PostNotification</key>
|
||||||
<string>pink.kirameki.yuzu.iosdiscordpresencepreferences/PreferencesChanged</string>
|
<string>cafe.kirameki.iosdiscordpresencepreferences/PreferencesChanged</string>
|
||||||
</dict>
|
</dict>
|
||||||
<dict>
|
<dict>
|
||||||
<key>cell</key>
|
<key>cell</key>
|
||||||
|
|||||||
@@ -273,7 +273,7 @@ static void stopDiscordUpdatePresenceTimer() {
|
|||||||
|
|
||||||
static void loadPreferences()
|
static void loadPreferences()
|
||||||
{
|
{
|
||||||
NSString *preferencesPath = @"/var/mobile/Library/Preferences/pink.kirameki.yuzu.iosdiscordpresencepreferences.plist";
|
NSString *preferencesPath = @"/var/mobile/Library/Preferences/cafe.kirameki.iosdiscordpresencepreferences.plist";
|
||||||
NSMutableDictionary *preferences = [[NSMutableDictionary alloc] initWithContentsOfFile: preferencesPath];
|
NSMutableDictionary *preferences = [[NSMutableDictionary alloc] initWithContentsOfFile: preferencesPath];
|
||||||
if(preferences)
|
if(preferences)
|
||||||
{
|
{
|
||||||
@@ -288,7 +288,7 @@ static void loadPreferences()
|
|||||||
{
|
{
|
||||||
requestAllowance = requestRate;
|
requestAllowance = requestRate;
|
||||||
requestLastCheck = CACurrentMediaTime();
|
requestLastCheck = CACurrentMediaTime();
|
||||||
CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(), NULL, (CFNotificationCallback)loadPreferences, CFSTR("pink.kirameki.yuzu.iosdiscordpresencepreferences/PreferencesChanged"), NULL, CFNotificationSuspensionBehaviorCoalesce);
|
CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(), NULL, (CFNotificationCallback)loadPreferences, CFSTR("cafe.kirameki.iosdiscordpresencepreferences/PreferencesChanged"), NULL, CFNotificationSuspensionBehaviorCoalesce);
|
||||||
loadPreferences();
|
loadPreferences();
|
||||||
initDiscordUpdatePresenceTimer();
|
initDiscordUpdatePresenceTimer();
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user