X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=ApplicationController.m;h=2b122b6298755bb11dc87bf90c77ad1452efdbcc;hp=09be1c04d6811747fc928e7ab18fb42fd2e43ba6;hb=4ce3f2876a51400f7e3baa213bd23ecd0101398a;hpb=19eadf9e688d8c087b47f83f8634593fddd641ac diff --git a/ApplicationController.m b/ApplicationController.m index 09be1c0..2b122b6 100644 --- a/ApplicationController.m +++ b/ApplicationController.m @@ -5,6 +5,13 @@ // Created by Sam McCall on 4/05/09. // +#import "ApplicationController.h" + +#import "Config.h" +#import "ConfigsController.h" +#import "JoystickController.h" +#import "TargetController.h" + @implementation ApplicationController { BOOL active; } @@ -32,9 +39,7 @@ } - (void)applicationWillTerminate:(NSNotification *)aNotification { - // TODO: Save immediately / shortly after changing and then enable - // sudden termination support. - [configsController save]; + [[NSUserDefaults standardUserDefaults] synchronize]; [[NSWorkspace sharedWorkspace].notificationCenter removeObserver:self name:NSWorkspaceDidActivateApplicationNotification