2022-01-03 09:51:53 +00:00
|
|
|
//
|
|
|
|
// libvgmContainer.mm
|
|
|
|
// libvgmPlayer
|
|
|
|
//
|
|
|
|
// Created by Christopher Snowhill on 1/02/22.
|
|
|
|
// Copyright 2022 __LoSnoCo__. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import "libvgmContainer.h"
|
|
|
|
#import "libvgmDecoder.h"
|
|
|
|
|
|
|
|
#import "Logging.h"
|
|
|
|
|
|
|
|
@implementation libvgmContainer
|
|
|
|
|
|
|
|
+ (NSArray *)fileTypes
|
|
|
|
{
|
2022-01-19 02:12:57 +00:00
|
|
|
return @[@"s98", @"dro", @"gym",
|
|
|
|
@"vgm",@"vgz" // These are included so they can override AdPlug and VGMStream
|
|
|
|
];
|
2022-01-03 09:51:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
+ (NSArray *)mimeTypes
|
|
|
|
{
|
|
|
|
return nil;
|
|
|
|
}
|
|
|
|
|
|
|
|
+ (float)priority
|
|
|
|
{
|
|
|
|
return [libvgmDecoder priority];
|
|
|
|
}
|
|
|
|
|
|
|
|
//This really should be source...
|
|
|
|
+ (NSArray *)urlsForContainerURL:(NSURL *)url
|
|
|
|
{
|
|
|
|
if ([url fragment]) {
|
|
|
|
// input url already has fragment defined - no need to expand further
|
|
|
|
return [NSMutableArray arrayWithObject:url];
|
|
|
|
}
|
|
|
|
|
|
|
|
// None of the covered formats include subsongs, but dodge VGMStream and AdPlug
|
2022-01-19 02:12:57 +00:00
|
|
|
return @[[NSURL URLWithString:[[url absoluteString] stringByAppendingString:@"#0"]]];
|
2022-01-03 09:51:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@end
|