diff options
author | lordjaxom <lordjaxom> | 2005-01-15 21:02:40 +0000 |
---|---|---|
committer | lordjaxom <lordjaxom> | 2005-01-15 21:02:40 +0000 |
commit | d94cae36d3e53814684864b3f4a8017180d643f5 (patch) | |
tree | b4ae958d52d5207b04d0de38d0e91d5fa02883d6 | |
parent | 42d54c80ef8591d5ad3ec406e37a138bd8c962e1 (diff) | |
download | vdr-plugin-text2skin-d94cae36d3e53814684864b3f4a8017180d643f5.tar.gz vdr-plugin-text2skin-d94cae36d3e53814684864b3f4a8017180d643f5.tar.bz2 |
- fixed last language initialization
-rw-r--r-- | status.c | 6 | ||||
-rw-r--r-- | status.h | 5 | ||||
-rw-r--r-- | text2skin.c | 4 |
3 files changed, 7 insertions, 8 deletions
@@ -1,5 +1,5 @@ /* - * $Id: status.c,v 1.6 2005/01/11 18:10:39 lordjaxom Exp $ + * $Id: status.c,v 1.7 2005/01/15 21:02:40 lordjaxom Exp $ */ #include "status.h" @@ -8,7 +8,6 @@ const std::string ReplayNames[__REPLAY_COUNT__] = { "", "normal", "mp3", "mplayer", "dvd", "vcd", "image" }; -cText2SkinStatus *cText2SkinStatus::mStatus = NULL; cText2SkinStatus Text2SkinStatus; cText2SkinStatus::cText2SkinStatus(void): @@ -19,9 +18,8 @@ cText2SkinStatus::cText2SkinStatus(void): mRecordings(), mCurrentRecording(0), mNextRecording(0), - mLastLanguage(Setup.OSDLanguage) + mLastLanguage(0) { - mStatus = this; } void cText2SkinStatus::SetRender(cText2SkinRender *Render) @@ -1,5 +1,5 @@ /* - * $Id: status.h,v 1.4 2005/01/11 18:10:39 lordjaxom Exp $ + * $Id: status.h,v 1.5 2005/01/15 21:02:40 lordjaxom Exp $ */ #ifndef VDR_TEXT2SKIN_STATUS_H @@ -33,8 +33,6 @@ public: typedef std::vector<tRecordingInfo> tRecordings; private: - static cText2SkinStatus *mStatus; - cText2SkinRender *mRender; eReplayMode mReplayMode; bool mReplayIsLoop; @@ -52,6 +50,7 @@ protected: public: cText2SkinStatus(void); + void SetLanguage(int Language) { mLastLanguage = Language; } void SetRender(cText2SkinRender *Render); cxType GetTokenData(const txToken &Token); diff --git a/text2skin.c b/text2skin.c index 91133fb..5e314cd 100644 --- a/text2skin.c +++ b/text2skin.c @@ -3,7 +3,7 @@ * * See the README file for copyright information and how to reach the author. * - * $Id: text2skin.c,v 1.3 2005/01/05 19:31:39 lordjaxom Exp $ + * $Id: text2skin.c,v 1.4 2005/01/15 21:02:40 lordjaxom Exp $ */ #include "text2skin.h" @@ -11,6 +11,7 @@ #include "menu.h" #include "i18n.h" #include "loader.h" +#include "status.h" const char *cText2SkinPlugin::VERSION = "1.0-rc1"; const char *cText2SkinPlugin::SKINVERSION = "1.0"; @@ -24,6 +25,7 @@ cText2SkinPlugin::~cText2SkinPlugin() { bool cText2SkinPlugin::Start(void) { RegisterI18n(Phrases); + Text2SkinStatus.SetLanguage(Setup.OSDLanguage); cText2SkinLoader::Start(); return true; } |