Skip to content

Commit

Permalink
write type of version (icu, legacy) in version info
Browse files Browse the repository at this point in the history
  • Loading branch information
ctapmex committed Jan 12, 2025
1 parent ff6bdbe commit 076418b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
7 changes: 6 additions & 1 deletion src/pcolorer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,13 @@ void WINAPI GetGlobalInfoW(struct GlobalInfo* gInfo)
gInfo->Version = MAKEFARVERSION(PLUGIN_VER_MAJOR, PLUGIN_VER_MINOR, PLUGIN_VER_PATCH, 0, VS_RELEASE);
gInfo->Guid = MainGuid;
gInfo->Title = PLUGIN_NAME;
gInfo->Description = L"Syntax highlighting in Far editor";
gInfo->Author = L"Igor Ruskih, Dobrunov Aleksey, Eugene Efremov";

#ifdef COLORER_FEATURE_ICU
gInfo->Description = L"Syntax highlighting in Far editor (ICU)";
#else
gInfo->Description = L"Syntax highlighting in Far editor";
#endif
}

/**
Expand Down
18 changes: 13 additions & 5 deletions src/version.h
Original file line number Diff line number Diff line change
@@ -1,20 +1,28 @@
#ifndef FARCOLORER_VERSION_H_
#define FARCOLORER_VERSION_H_

#include <colorer/common/Features.h>

#ifdef _WIN64
#define PLATFORM " x64"
#define PLATFORM L" x64"
#elif defined _M_ARM64
#define PLATFORM " ARM64"
#define PLATFORM L" ARM64"
#elif defined _WIN32
#define PLATFORM " x86"
#define PLATFORM L" x86"
#else
#define PLATFORM L""
#endif

#ifdef COLORER_FEATURE_ICU
#define USTRING L" ICU"
#else
#define PLATFORM ""
#define USTRING L""
#endif

#define PLUGIN_VER_MAJOR 1
#define PLUGIN_VER_MINOR 6
#define PLUGIN_VER_PATCH 1
#define PLUGIN_DESC L"FarColorer - Syntax Highlighting for Far Manager 3" PLATFORM
#define PLUGIN_DESC L"FarColorer - Syntax Highlighting for Far Manager 3" PLATFORM USTRING
#define PLUGIN_NAME L"FarColorer"
#define PLUGIN_FILENAME L"colorer.dll"
#define PLUGIN_COPYRIGHT L"(c) 1999-2009 Igor Russkih, (c) Aleksey Dobrunov 2009-2025"
Expand Down

0 comments on commit 076418b

Please sign in to comment.