Skip to content

Commit aaa27ad

Browse files
committed
add version to API header
and convinent depdendency entry macro
1 parent 794877c commit aaa27ad

File tree

4 files changed

+11
-12
lines changed

4 files changed

+11
-12
lines changed

include/gw2al_api.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
#pragma once
22

3+
#define GW2AL_API_VER_MAJOR 1
4+
#define GW2AL_API_VER_MINOR 0
5+
6+
#define GW2AL_CORE_DEP_ENTRY { L"loader_core", L"core gw2 al API", GW2AL_API_VER_MAJOR, GW2AL_API_VER_MINOR, 1, 0 }
7+
38
#define gw2al_hashed_name unsigned long long
49
#define gw2al_event_id unsigned long
510

11+
612
typedef struct gw2al_addon_dsc {
713
const wchar_t* name;
814
const wchar_t* description;

loader_core/stdafx.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
#include <d3d9.h>
99
#include <d3d11.h>
1010
#include <stdarg.h>
11-
#include "version.h"
1211
#include "..\include\gw2al_api.h"
12+
#include "version.h"
1313
#include "id_storage.h"
1414
#include "gw2al_api_impl.h"
1515
#include "loader_core.h"

loader_core/version.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#pragma once
22

3-
#define LOADER_CORE_VER_MAJOR 1
4-
#define LOADER_CORE_VER_MINOR 0
53
#define LOADER_CORE_VER_REV BUILD_VERSION_REV
6-
#define LOADER_CORE_VER_NAME BUILD_VERSION_NAME
4+
#define LOADER_CORE_VER_NAME BUILD_VERSION_NAME
5+
#define LOADER_CORE_VER_MAJOR GW2AL_API_VER_MAJOR
6+
#define LOADER_CORE_VER_MINOR GW2AL_API_VER_MINOR

sample_addons/custom_d3d9/custom_d3d9.cpp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,7 @@
55
//gw2addon_unload
66

77
gw2al_addon_dsc gAddonDeps[] = {
8-
{
9-
L"loader_core",
10-
L"whatever",
11-
0,
12-
1,
13-
1,
14-
0
15-
},
8+
GW2AL_CORE_DEP_ENTRY,
169
{0,0,0,0,0,0}
1710
};
1811

0 commit comments

Comments
 (0)