remove all strings and error codes in error_box.cpp, reduce binary by a further 60k.

This commit is contained in:
ITotalJustice
2025-04-29 18:56:55 +01:00
parent 2d7763444e
commit d79ac126f7
2 changed files with 13 additions and 1116 deletions

View File

@@ -8,15 +8,14 @@ namespace sphaira::ui {
class ErrorBox final : public Widget { class ErrorBox final : public Widget {
public: public:
ErrorBox(Result code, const std::string& message); ErrorBox(Result code, const std::string& message);
ErrorBox(const std::string& message);
auto Update(Controller* controller, TouchInfo* touch) -> void override; auto Update(Controller* controller, TouchInfo* touch) -> void override;
auto Draw(NVGcontext* vg, Theme* theme) -> void override; auto Draw(NVGcontext* vg, Theme* theme) -> void override;
private: private:
Result m_code{}; std::optional<Result> m_code{};
std::string m_message{}; std::string m_message{};
std::string m_module_str{};
std::string m_description_str{};
}; };
} // namespace sphaira::ui } // namespace sphaira::ui

File diff suppressed because it is too large Load Diff