Add UnlockMapIconMod

This commit is contained in:
yangzhi 2019-10-15 21:33:16 +08:00
parent f096ea56bc
commit cf44379f9d
3 changed files with 33 additions and 1 deletions

@ -1 +0,0 @@
Subproject commit 4311f11daaad6a3798d5a069d98e3e4b48315a6e

View File

@ -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;
}

26
UnlockMapIconMod/main.h Normal file
View File

@ -0,0 +1,26 @@
#ifndef __MAIN_H__
#define __MAIN_H__
#include <windows.h>
/* 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__