From cf44379f9d1d5fca69a82861d73d0e333b574e02 Mon Sep 17 00:00:00 2001 From: yangzhi <@4F!xZpJwly&KbWq> Date: Tue, 15 Oct 2019 21:33:16 +0800 Subject: [PATCH] Add UnlockMapIconMod --- UnlockMapIconMod | 1 - UnlockMapIconMod/main.cpp | 7 +++++++ UnlockMapIconMod/main.h | 26 ++++++++++++++++++++++++++ 3 files changed, 33 insertions(+), 1 deletion(-) delete mode 160000 UnlockMapIconMod create mode 100644 UnlockMapIconMod/main.cpp create mode 100644 UnlockMapIconMod/main.h diff --git a/UnlockMapIconMod b/UnlockMapIconMod deleted file mode 160000 index 4311f11..0000000 --- a/UnlockMapIconMod +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 4311f11daaad6a3798d5a069d98e3e4b48315a6e diff --git a/UnlockMapIconMod/main.cpp b/UnlockMapIconMod/main.cpp new file mode 100644 index 0000000..cb02bef --- /dev/null +++ b/UnlockMapIconMod/main.cpp @@ -0,0 +1,7 @@ +#include "main.h" +#include "../cwmods/cwmods.h" + +EXPORT int HandleCheckMapIconVisibility(cube::Creature* player, int a2, int a3) { + // 1: visible, 0: origin logic + return 1; +} diff --git a/UnlockMapIconMod/main.h b/UnlockMapIconMod/main.h new file mode 100644 index 0000000..a069788 --- /dev/null +++ b/UnlockMapIconMod/main.h @@ -0,0 +1,26 @@ +#ifndef __MAIN_H__ +#define __MAIN_H__ + +#include + +/* To use this exported function of dll, include this header + * in your project. + */ + +#ifdef BUILD_DLL + #define DLL_EXPORT __declspec(dllexport) +#else + #define DLL_EXPORT __declspec(dllimport) +#endif + + +#ifdef __cplusplus +extern "C" +{ +#endif + +#ifdef __cplusplus +} +#endif + +#endif // __MAIN_H__