Use virtual classes instead of templates for file interfaces

For convenience.
This commit is contained in:
zhupengfei
2020-08-01 09:47:44 +08:00
parent e861d84b72
commit 1f91cbdaec
11 changed files with 111 additions and 212 deletions
+1 -3
View File
@@ -87,8 +87,6 @@ struct Config {
constexpr int CurrentDumperVersion = 1;
class SDMCFile;
template <typename File>
class NCCHContainer;
class SDMCImporter {
@@ -174,7 +172,7 @@ private:
std::unique_ptr<SDMCDecryptor> decryptor;
// The NCCH used to dump CXIs.
std::unique_ptr<NCCHContainer<SDMCFile>> dump_cxi_ncch;
std::unique_ptr<NCCHContainer> dump_cxi_ncch;
};
/**