aboutsummaryrefslogtreecommitdiff
path: root/c/data.h
diff options
context:
space:
mode:
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;