mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-24 07:33:54 -07:00
Card Database converter (#3694)
* Database converter * Fix win compilation and NSIS installer * Maybe fix windows again * Re-fix windows
This commit is contained in:
parent
8682367b52
commit
ada13f6578
8 changed files with 301 additions and 1 deletions
20
dbconverter/src/main.h
Normal file
20
dbconverter/src/main.h
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#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
|
||||
Loading…
Add table
Add a link
Reference in a new issue