mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
* [DeckLoader] Extract LoadedDeck struct * update usages * Move enum to separate namespace * format * format * format
9 lines
No EOL
229 B
C++
9 lines
No EOL
229 B
C++
#include "deck_file_format.h"
|
|
|
|
DeckFileFormat::Format DeckFileFormat::getFormatFromName(const QString &fileName)
|
|
{
|
|
if (fileName.endsWith(".cod", Qt::CaseInsensitive)) {
|
|
return Cockatrice;
|
|
}
|
|
return PlainText;
|
|
} |