diff options
author | John Ankarström <john@ankarstrom.se> | 2022-08-17 18:23:06 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-08-17 18:23:06 +0200 |
commit | 853a598befbb8823c5868c792f51cda3466fada1 (patch) | |
tree | e9f90a29b74106119cb0da1043c91945bc6f4f3d /c/data.h | |
parent | 91f56e45665e0ae940553acc1d0013adec970712 (diff) | |
download | EpisodeBrowser-853a598befbb8823c5868c792f51cda3466fada1.tar.gz |
Add cEp to CfgA.
Diffstat (limited to 'c/data.h')
-rw-r--r-- | c/data.h | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -44,10 +44,10 @@ 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; + signed char iSortCol = 1; + unsigned short cEp = 0; + unsigned short iFocus = 0; + unsigned short heightDlv = 0; wchar_t limitScreenwriter[64] = {0}; wchar_t root[260] = {0}; wchar_t glob[64] = {0}; @@ -174,8 +174,11 @@ inline bool FromProlog(const int iEp, ElvDataA& e) noexcept else return false; - if (Pl("episode_data","episode_rating",iEp,reinterpret_cast<int*>(&e.rating))) + int rating; + if (Pl("episode_data","episode_rating",iEp,&rating)) { + e.rating = rating; Swprintf(e.sRating, L"%d", e.rating); + } if (Pl("episode_data","tv_original",iEp)) e.bTVOriginal = true; |