Cog/Plugins/libvgmPlayer/libvgmPropertiesReader.mm
Christopher Snowhill 0b39b57f61 Chore: Update copyright dates somewhat
Signed-off-by: Christopher Snowhill <kode54@gmail.com>
2025-01-01 01:30:48 -08:00

40 lines
741 B
Text

//
// libvgmPropertiesReader.m
// libvgmPlayer
//
// Created by Christopher Snowhill on 01/02/22.
// Copyright 2022-2025 __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