2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 01:07:43 +00:00

string_view refactor

This commit is contained in:
Jack Andersen
2017-11-12 20:19:18 -10:00
parent 742ab2514f
commit f7ec7bdc0c
345 changed files with 907 additions and 921 deletions

View File

@@ -267,16 +267,16 @@ public:
static zeus::CTransform BuildFinalCameraTransform(const zeus::CQuaternion& rot,
const zeus::CVector3f& pos,
const zeus::CVector3f& camPos);
static void DisplayHudMemo(const std::u16string& text, const CHUDMemoParms& info)
static void DisplayHudMemo(std::u16string_view text, const CHUDMemoParms& info)
{
if (g_SamusHud)
g_SamusHud->InternalDisplayHudMemo(text, info);
}
void InternalDisplayHudMemo(const std::u16string& text, const CHUDMemoParms& info)
void InternalDisplayHudMemo(std::u16string_view text, const CHUDMemoParms& info)
{
SetMessage(text, info);
}
void SetMessage(const std::u16string& text, const CHUDMemoParms& info);
void SetMessage(std::u16string_view text, const CHUDMemoParms& info);
static void DeferHintMemo(CAssetId strg, u32 strgIdx, const CHUDMemoParms& info)
{
if (g_SamusHud)