Cog/Plugins/GME/GamePropertiesReader.m
Christopher Snowhill d89c9c852f Chore: Update copyright dates somewhat
Signed-off-by: Christopher Snowhill <kode54@gmail.com>
2025-01-01 01:31:10 -08:00

40 lines
719 B
Objective-C

//
// VGMPropertiesReader.m
// VGMStream
//
// Created by Christopher Snowhill on 10/18/19.
// Copyright 2019-2025 __LoSnoCo__. All rights reserved.
//
#import "GamePropertiesReader.h"
#import "GameDecoder.h"
@implementation GamePropertiesReader
+ (NSArray *)fileTypes {
return [GameDecoder fileTypes];
}
+ (NSArray *)mimeTypes {
return [GameDecoder mimeTypes];
}
+ (float)priority {
return [GameDecoder priority];
}
+ (NSDictionary *)propertiesForSource:(id<CogSource>)source {
GameDecoder *decoder = [[GameDecoder alloc] init];
NSDictionary *properties = [NSDictionary dictionary];
if([decoder open:source]) {
properties = [decoder properties];
[decoder close];
}
return properties;
}
@end