1
0
mirror of https://github.com/ncblakely/GiantsTools synced 2024-11-21 21:55:38 +01:00
GiantsTools/Plugins/imp_gbs/ImporterFactory.cpp
2022-09-16 17:57:19 -07:00

19 lines
459 B
C++

#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);
}
}