Skip to content

Commit 9ead24c

Browse files
committed
Save library after creating save states.
1 parent 8d096d6 commit 9ead24c

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

OpenEmu/OEGameDocument.m

+2
Original file line numberDiff line numberDiff line change
@@ -1128,6 +1128,8 @@ - (void)OE_saveStateWithName:(NSString *)stateName completionHandler:(void(^)(vo
11281128
[state writeInfoPlist];
11291129
}
11301130

1131+
[[state libraryDatabase] save:nil];
1132+
11311133
NSData *TIFFData = [[[self gameViewController] takeNativeScreenshot] TIFFRepresentation];
11321134
NSBitmapImageRep *bitmapImageRep = [NSBitmapImageRep imageRepWithData:TIFFData];
11331135
NSData *PNGData = [bitmapImageRep representationUsingType:NSPNGFileType properties:nil];

OpenEmu/OpenEmu.xcodeproj/project.pbxproj

-8
Original file line numberDiff line numberDiff line change
@@ -3636,7 +3636,6 @@
36363636
832D293E1451A68700BDF950 /* OEMainWindowController.h */,
36373637
832D293F1451A68700BDF950 /* OEMainWindowController.m */,
36383638
832D29441451B0CA00BDF950 /* MainWindow: Library */,
3639-
832D29451451B0E700BDF950 /* MainWindow: GameView */,
36403639
832D29461451B0F200BDF950 /* MainWindow: Setup Assistant */,
36413640
53439AE813B92E72005C0CC8 /* Controls */,
36423641
);
@@ -4433,13 +4432,6 @@
44334432
name = "MainWindow: Library";
44344433
sourceTree = "<group>";
44354434
};
4436-
832D29451451B0E700BDF950 /* MainWindow: GameView */ = {
4437-
isa = PBXGroup;
4438-
children = (
4439-
);
4440-
name = "MainWindow: GameView";
4441-
sourceTree = "<group>";
4442-
};
44434435
832D29461451B0F200BDF950 /* MainWindow: Setup Assistant */ = {
44444436
isa = PBXGroup;
44454437
children = (

0 commit comments

Comments
 (0)