mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-13 14:02:15 -07:00
Move enum to separate namespace
This commit is contained in:
parent
3ef0f806b8
commit
6cbb438256
14 changed files with 182 additions and 154 deletions
|
|
@ -0,0 +1,9 @@
|
|||
#include "deck_file_format.h"
|
||||
|
||||
DeckFileFormat::Format DeckFileFormat::getFormatFromName(const QString &fileName)
|
||||
{
|
||||
if (fileName.endsWith(".cod", Qt::CaseInsensitive)) {
|
||||
return Cockatrice;
|
||||
}
|
||||
return PlainText;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue