1
0
mirror of https://github.com/ncblakely/GiantsTools synced 2024-11-05 14:55:38 +01:00
GiantsTools/Plugins/imp_gbs/ImporterFactory.cpp

19 lines
459 B
C++
Raw Normal View History

2022-09-17 02:54:10 +02:00
#include "ImporterFactory.h"
#include "GbsImporter.h"
#include "Gb2Importer.h"
void ImporterFactory::ImportFile(const MCHAR* Name, ImpInterface* EI, Interface* I, BOOL SupressPrompts)
{
M_STD_STRING strName = Name;
if (strName.rfind(L".gbs") != -1)
{
GbsImporter importer;
importer.ImportFile(Name, EI, I, SupressPrompts);
}
else if (strName.rfind(L".gb2") != -1)
{
Gb2Importer importer;
importer.ImportFile(Name, EI, I, SupressPrompts);
}
}