From c0c336500955a23e344651e5412c9d9d441ef4ee Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Wed, 28 Jun 2023 22:22:32 +0100 Subject: first pass of T2DLL --- src/T2DLL/T2MoviePlugin.h | 70 +++++++++++++++++++++++++++++++++++------------ 1 file changed, 52 insertions(+), 18 deletions(-) (limited to 'src/T2DLL/T2MoviePlugin.h') diff --git a/src/T2DLL/T2MoviePlugin.h b/src/T2DLL/T2MoviePlugin.h index 676ea5f..78f5b70 100644 --- a/src/T2DLL/T2MoviePlugin.h +++ b/src/T2DLL/T2MoviePlugin.h @@ -1,29 +1,63 @@ #pragma once #include "common.h" +#include "T2SubPlugin.h" -class T2MoviePlugin { +// unknown name +struct MovieInfo { + int mCC_0; + int mCC_1; + int mCC_2; + int mCC_3; + int mCC_4; + int mCC_5; +}; + +class AFX_EXT_CLASS T2MoviePlugin : public T2SubPlugin { public: - T2MoviePlugin(unsigned long, T2PluginSpecifier&); + T2MoviePlugin(DWORD inType, T2PluginSpecifier& inSpecifier); virtual ~T2MoviePlugin(); -protected: - virtual void LoadRsrcFromStream(CResFile&); -public: - virtual void GlobalData(T2GlobalData*); - int GetMovieLifePhase(T2DateTime*, int); + virtual void GlobalData(T2GlobalData* inGlobalData); + int GetMovieLifePhase(T2DateTime* inDateTime, int inStartDay); void UnfoldPluginSelf(); void ReMake(); - void GetTitle(CString&, int); + void GetTitle(CString& outStr, int inNum); int GetNOPersonsR(); - void SetNOPersonsR(int); + void SetNOPersonsR(int inNum); int GetNOPersonsF(); - void SetNOPersonsF(int); - int IsFamousFilm(); - int IsRoadshowFilm(); - void ChkReMake(int); - static void sDummyRead(T2Archive&); - void Read(T2Archive&); - void Write(T2Archive&); - virtual unsigned long LoadSelf(); + void SetNOPersonsF(int inNum); + BOOL IsFamousFilm(); + BOOL IsRoadshowFilm(); + void ChkReMake(int inNum); + static void sDummyRead(T2Archive& inArchive); + void Read(T2Archive& inArchive); + void Write(T2Archive& inArchive); + virtual DWORD LoadSelf(); +protected: + virtual void LoadRsrcFromStream(CResFile& inResFile); - T2MoviePlugin& operator=(T2MoviePlugin&) {} + unsigned short mResID; + MovieInfo mInfo; + CString mE4; + int _E8; + CString mEC; + CString mF0; + CString mF4; + int mBindTime; + int mFC; + CString m100; + int m104; + int m108; + int m10C; + int m110; + int mNamingScheme; + int m118; + int m11C; + int mCustomTitleCount; + CString *mCustomTitles; + int mNOPersonsR; + int mNOPersonsF; + unsigned int mAttribute; + int mRemakeCount; + int mNewNOPersonsR; + int mNewNOPersonsF; }; -- cgit v1.2.3