* Database converter * Fix win compilation and NSIS installer * Maybe fix windows again * Re-fix windows
20 lines
456 B
C++
20 lines
456 B
C++
#ifndef MAIN_H
|
|
#define MAIN_H
|
|
|
|
#include "../../cockatrice/src/carddatabase.h"
|
|
#include "../../cockatrice/src/carddbparser/cockatricexml4.h"
|
|
|
|
class CardDatabaseConverter : public CardDatabase
|
|
{
|
|
public:
|
|
LoadStatus loadCardDatabase(const QString &path) {
|
|
return CardDatabase::loadCardDatabase(path);
|
|
}
|
|
|
|
bool saveCardDatabase(const QString &fileName) {
|
|
CockatriceXml4Parser parser;
|
|
return parser.saveToFile(sets, cards, fileName);
|
|
}
|
|
};
|
|
|
|
#endif
|