Final touches: removed unused declaration in gdrv.
Removed unused Msg entries and added new check.
This commit is contained in:
parent
a845d0d630
commit
56e1ead3b8
|
@ -1,7 +1,5 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
class TTextBox;
|
|
||||||
|
|
||||||
enum class BitmapTypes : uint8_t
|
enum class BitmapTypes : uint8_t
|
||||||
{
|
{
|
||||||
None = 0,
|
None = 0,
|
||||||
|
@ -85,7 +83,6 @@ public:
|
||||||
static void grtext_draw_ttext_in_box();
|
static void grtext_draw_ttext_in_box();
|
||||||
static void ApplyPalette(gdrv_bitmap8& bmp);
|
static void ApplyPalette(gdrv_bitmap8& bmp);
|
||||||
static void CreatePreview(gdrv_bitmap8& bmp);
|
static void CreatePreview(gdrv_bitmap8& bmp);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static ColorRgba current_palette[256];
|
static ColorRgba current_palette[256];
|
||||||
};
|
};
|
||||||
|
|
|
@ -242,8 +242,6 @@ enum class Msg : int
|
||||||
Menu1_1024x768,
|
Menu1_1024x768,
|
||||||
Menu1_WindowUniformScale,
|
Menu1_WindowUniformScale,
|
||||||
Menu1_AlternativeRender,
|
Menu1_AlternativeRender,
|
||||||
Menu1_Language,
|
|
||||||
Menu1_LanguageMax,
|
|
||||||
Menu1_Game,
|
Menu1_Game,
|
||||||
Menu1_Options,
|
Menu1_Options,
|
||||||
Menu1_Select_Players,
|
Menu1_Select_Players,
|
||||||
|
@ -300,6 +298,11 @@ struct TextArray
|
||||||
Set(msgPair.first, languagePair.first, languagePair.second);
|
Set(msgPair.first, languagePair.first, languagePair.second);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (auto i = Msg::Min; i < Msg::Max; i = static_cast<Msg>(static_cast<int>(i) + 1))
|
||||||
|
{
|
||||||
|
assertm(contains(i, Lang::English), "English text is mandatory for all keys");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
LPCSTR Get(Msg msgId, Lang langId) const
|
LPCSTR Get(Msg msgId, Lang langId) const
|
||||||
|
|
Loading…
Reference in New Issue