remove all strings and error codes in error_box.cpp, reduce binary by a further 60k.
This commit is contained in:
1 parent
2d7763444e
commit
d79ac126f7
2 files changed
+13
-1116
No files matched your search
@@ -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
|
||||||
+11
-1113
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user