cog/Plugins/AdPlug/AdPlug/fileprovider.h

37 lines
688 B
C
Raw Normal View History

2018-01-27 23:08:06 +00:00
//
// fileprovider.h
// AdPlug
//
// Created by Christopher Snowhill on 1/27/18.
2022-01-03 07:34:29 +00:00
// Copyright © 2018-2022 Christopher Snowhill. All rights reserved.
2018-01-27 23:08:06 +00:00
//
#ifndef fileprovider_h
#define fileprovider_h
#import <Cocoa/Cocoa.h>
#import "Plugin.h"
#include <binio.h>
2018-06-28 10:59:59 +00:00
#include <libAdPlug/fprovide.h>
#include <string>
class CProvider_cog : public CFileProvider {
id<CogSource> m_file_hint;
std::string m_file_path;
public:
virtual binistream *open(std::string filename) const;
virtual void close(binistream *f) const;
CProvider_cog() {
}
2018-01-27 23:08:06 +00:00
CProvider_cog(std::string filename, id<CogSource> file)
: m_file_path(filename), m_file_hint(file) {
}
2018-01-27 23:08:06 +00:00
};
#endif /* fileprovider_h */