#include "common.h"
#include "config.h"
#include "fileio.h"
-#if defined(_USE_AGAR)
-#include "agar_main.h"
-#endif
-
-config_t DLL_PREFIX config;
#ifndef CONFIG_NAME
#define CONFIG_NAME "conf"
return (MyGetPrivateProfileInt(lpAppName, lpKeyName, bDefault ? 1 : 0, lpFileName) != 0);
}
-void DLL_PREFIX initialize_config()
+void initialize_config()
{
// initial settings
memset(&config, 0, sizeof(config_t));
#endif
}
-void DLL_PREFIX load_config(const _TCHAR *config_path)
+void load_config(const _TCHAR *config_path)
{
int drv, i;
// initial settings
#endif
}
-void DLL_PREFIX save_config(const _TCHAR *config_path)
+void save_config(const _TCHAR *config_path)
{
int drv, i;
#if !defined(_MSC_VER)
#define STATE_VERSION 6
-bool DLL_PREFIX process_config_state(void *f, bool loading)
+bool process_config_state(void *f, bool loading)
{
FILEIO *state_fio = (FILEIO *)f;
#endif
#endif
-void DLL_PREFIX initialize_config();
-void DLL_PREFIX load_config(const _TCHAR* config_path);
-void DLL_PREFIX save_config(const _TCHAR* config_path);
-bool DLL_PREFIX process_config_state(void *f, bool loading);
+void initialize_config();
+void load_config(const _TCHAR* config_path);
+void save_config(const _TCHAR* config_path);
+bool process_config_state(void *f, bool loading);
/*
* 20160407 Ohta:
--- /dev/null
+/*
+ Note: This file is only for DLL.
+ Author : Kyuma.Ohta <whatisthis.sowhat@gmail.com>
+ Date : 2020.10.11 -
+ */
+#if defined(_USE_QT)
+#include <string>
+#include <vector>
+#include "fileio.h"
+#include "csp_logger.h"
+#include "qt_main.h"
+# if defined(Q_OS_WIN)
+# include <windows.h>
+# endif
+extern CSP_Logger *csp_logger;
+#endif
+
+#include <stdlib.h>
+#include <stdio.h>
+#include "common.h"
+#include "config.h"
+#include "fileio.h"
+
+config_t DLL_PREFIX config;