diff options
author | John Ankarström <john@ankarstrom.se> | 2022-08-17 03:15:37 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-08-17 03:15:37 +0200 |
commit | 2e8afa446f2444a8be5e6180bf90cfa48b6e02f0 (patch) | |
tree | 2ad81de172861419f16da8d4dd53074f80bd455d /c/data.h | |
parent | bd857d24443b8c8f5d2f58047c3f8ac5f058acea (diff) | |
download | EpisodeBrowser-2e8afa446f2444a8be5e6180bf90cfa48b6e02f0.tar.gz |
Add CfgA.
Diffstat (limited to 'c/data.h')
-rw-r--r-- | c/data.h | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -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 <typename T> 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; |