From 2e8afa446f2444a8be5e6180bf90cfa48b6e02f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Wed, 17 Aug 2022 03:15:37 +0200 Subject: Add CfgA. --- c/data.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'c/data.h') diff --git a/c/data.h b/c/data.h index a93b256..dd443b9 100644 --- a/c/data.h +++ b/c/data.h @@ -37,6 +37,22 @@ struct DlvDataA wchar_t wiki[192] = {0}; }; +/* Configuration. */ +struct CfgA +{ + unsigned char version = 'a'; + unsigned char bViewWatched = 1; + unsigned char bViewTVOriginal = 1; + unsigned char pad = 0; + int iSortCol = 1; + int iFocus = 0; + int heightDlv = 0; + wchar_t limitScreenwriter[64] = {0}; + wchar_t root[MAX_PATH] = {0}; + wchar_t glob[64] = {0}; + wchar_t url[192] = {0}; +}; + /* Variable template for obtaining the version of a given struct. */ template constexpr inline unsigned char Version = T{}.version; @@ -111,6 +127,11 @@ struct FileView return view; } + inline T* operator ->() noexcept + { + return view; + } + HANDLE hf; HANDLE hm; T* view; -- cgit v1.2.3