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__