Commit 69e61d3b authored by nanahira's avatar nanahira

move defines

parent 3bce6d6d
......@@ -1121,6 +1121,7 @@ void Game::LoadExpansionDBDirectry(const char* path) {
}
#endif
}
#ifndef YGOPRO_SERVER_MODE
void Game::LoadExpansionStrings() {
LoadExpansionStringsDirectry("./expansions");
#ifdef _WIN32
......@@ -1158,7 +1159,6 @@ void Game::LoadExpansionStringsDirectry(const char* path) {
sprintf(fpath, "%s/strings.conf", path);
dataManager.LoadStrings(fpath);
}
#ifndef YGOPRO_SERVER_MODE
void Game::RefreshDeck(irr::gui::IGUIComboBox* cbDeck) {
cbDeck->clear();
#ifdef _WIN32
......@@ -1886,7 +1886,6 @@ void Game::AddDebugMsg(char* msg)
sprintf(msgbuf, "[Script Error]: %s", msg);
ErrorLog(msgbuf);
}
#endif //YGOPRO_SERVER_MODE
}
void Game::ErrorLog(char* msg) {
FILE* fp = fopen("error.log", "at");
......@@ -1898,6 +1897,7 @@ void Game::ErrorLog(char* msg) {
strftime(timebuf, 40, "%Y-%m-%d %H:%M:%S", localedtime);
fprintf(fp, "[%s]%s\n", timebuf, msg);
fclose(fp);
#endif //YGOPRO_SERVER_MODE
}
bool Game::MakeDirectory(const std::string folder) {
std::string folder_builder;
......
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