Cog/Plugins/libvgmPlayer/libvgmPropertiesReader.mm
Christopher Snowhill 5743652879
Update copyright year in various places
Update these things a bit for the next release.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
2023-02-05 16:46:56 -08:00

40 lines
741 B
Text

//
// libvgmPropertiesReader.m
// libvgmPlayer
//
// Created by Christopher Snowhill on 01/02/22.
// Copyright 2022-2023 __LoSnoCo__. All rights reserved.
//
#import "libvgmPropertiesReader.h"
#import "libvgmDecoder.h"
@implementation libvgmPropertiesReader
+ (NSArray *)fileTypes {
return [libvgmDecoder fileTypes];
}
+ (NSArray *)mimeTypes {
return [libvgmDecoder mimeTypes];
}
+ (float)priority {
return [libvgmDecoder priority];
}
+ (NSDictionary *)propertiesForSource:(id<CogSource>)source {
libvgmDecoder *decoder = [[libvgmDecoder alloc] init];
NSDictionary *properties = [NSDictionary dictionary];
if([decoder open:source]) {
properties = [decoder properties];
[decoder close];
}
return properties;
}
@end