mirror of
https://gitlab.com/hashborgir/plugy.git
synced 2024-11-30 12:36:02 +00:00
30 lines
439 B
C
30 lines
439 B
C
#include <windows.h>
|
|
|
|
union TFileVersion
|
|
{
|
|
__int64 full;
|
|
struct {
|
|
WORD subrevision;
|
|
WORD revision;
|
|
WORD minor;
|
|
WORD major;
|
|
};
|
|
WORD w[4];
|
|
};
|
|
|
|
enum eGameVersion
|
|
{
|
|
v109b=0,
|
|
v109d,
|
|
v110,
|
|
v111,
|
|
v111b,
|
|
v112,
|
|
v113c,
|
|
v113d,
|
|
v114a
|
|
};
|
|
|
|
bool GetAppVersion(char* FileName, TFileVersion* VerInfo); // ïîëó÷åíèå âåðñèè ôàéëà
|
|
bool GetD2Path(char* buf, DWORD bufsize);
|
|
int GetD2Version(char* PathGameExe); |