Commit dadfaff8 authored by Chen Bill's avatar Chen Bill

move constants to namespace ygo

parent 6425dfae
...@@ -22,12 +22,12 @@ ...@@ -22,12 +22,12 @@
#include <mutex> #include <mutex>
#include <functional> #include <functional>
constexpr int DEFAULT_DUEL_RULE = 5; namespace ygo {
constexpr int DEFAULT_DUEL_RULE = CURRENT_RULE;
constexpr int CONFIG_LINE_SIZE = 1024; constexpr int CONFIG_LINE_SIZE = 1024;
constexpr int TEXT_LINE_SIZE = 256; constexpr int TEXT_LINE_SIZE = 256;
namespace ygo {
template<size_t N> template<size_t N>
bool IsExtension(const wchar_t* filename, const wchar_t(&extension)[N]) { bool IsExtension(const wchar_t* filename, const wchar_t(&extension)[N]) {
auto flen = std::wcslen(filename); auto flen = std::wcslen(filename);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment