aboutsummaryrefslogtreecommitdiff
path: root/c/data.h
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-08-17 03:15:37 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-08-17 03:15:37 +0200
commit2e8afa446f2444a8be5e6180bf90cfa48b6e02f0 (patch)
tree2ad81de172861419f16da8d4dd53074f80bd455d /c/data.h
parentbd857d24443b8c8f5d2f58047c3f8ac5f058acea (diff)
downloadEpisodeBrowser-2e8afa446f2444a8be5e6180bf90cfa48b6e02f0.tar.gz
Add CfgA.
Diffstat (limited to 'c/data.h')
-rw-r--r--c/data.h21
1 files changed, 21 insertions, 0 deletions
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 <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;