Skip to content

Commit

Permalink
Change to .IMG instead .VHD
Browse files Browse the repository at this point in the history
  • Loading branch information
atarimacosx committed Nov 8, 2020
1 parent cca8b98 commit 119c4e3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
10 changes: 7 additions & 3 deletions atari800-MacOSX/src/Atari800MacX/Atari800ImageView.m
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,11 @@ - (NSDragOperation)draggingEntered:(id <NSDraggingInfo>)sender {
[suffix isEqualToString:@"ROM"] ||
[suffix isEqualToString:@"bin"] ||
[suffix isEqualToString:@"BIN"] ||
(([suffix isEqualToString:@"vhd"] ||
[suffix isEqualToString:@"img"] ||
[suffix isEqualToString:@"IMG"] ||
[suffix isEqualToString:@"vhd"] ||
[suffix isEqualToString:@"VHD"] ) &&
(CARTRIDGE_main.type == CARTRIDGE_SIDE2))))
(CARTRIDGE_main.type == CARTRIDGE_SIDE2))
return NSDragOperationNone;
}
if (sourceDragMask & NSDragOperationMove)
Expand Down Expand Up @@ -210,7 +212,9 @@ - (BOOL)performDragOperation:(id <NSDraggingInfo>)sender
[[MediaManager sharedInstance] cassInsertFile:[files objectAtIndex:0]];
else if ([self tag] == 9) {
if ((CARTRIDGE_main.type == CARTRIDGE_SIDE2) &&
([suffix isEqualToString:@"vhd"] ||
([suffix isEqualToString:@"img"] ||
[suffix isEqualToString:@"IMG"] ||
[suffix isEqualToString:@"vhd"] ||
[suffix isEqualToString:@"VHD"])) {
[[MediaManager sharedInstance] side2AttachCFFile:[files objectAtIndex:0]];
} else {
Expand Down
2 changes: 1 addition & 1 deletion atari800-MacOSX/src/Atari800MacX/MediaManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -1239,7 +1239,7 @@ - (IBAction)createHardDisk:(id)sender;
if (type == 0)
fileType = @"raw";
else
fileType = @"vhd";
fileType = @"img";

filename = [self saveFileInDirectory:[NSString stringWithCString:atari_disk_dirs[0] encoding:NSUTF8StringEncoding]:fileType];
if (filename != nil) {
Expand Down
4 changes: 3 additions & 1 deletion atari800-MacOSX/src/Atari800MacX/SDLMain.m
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,9 @@ +(void)loadFile:(NSString *)filename
[[MediaManager sharedInstance] loadExeFileFile:filename];
else if ([suffix isEqualToString:@"set"] || [suffix isEqualToString:@"SET"])
[[MediaManager sharedInstance] diskSetLoadFile:filename];
else if (([suffix isEqualToString:@"vhd"] ||
else if (([suffix isEqualToString:@"img"] ||
[suffix isEqualToString:@"IMG"] ||
[suffix isEqualToString:@"vhd"] ||
[suffix isEqualToString:@"VHD"] ) &&
(CARTRIDGE_main.type == CARTRIDGE_SIDE2))
[[MediaManager sharedInstance] side2AttachCFFile:filename];}
Expand Down

0 comments on commit 119c4e3

Please sign in to comment.