2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2016-09-14 05:54:09 +00:00
|
|
|
|
2019-09-22 21:52:05 +00:00
|
|
|
#include "Runtime/CIOWin.hpp"
|
|
|
|
#include "Runtime/RetroTypes.hpp"
|
2016-09-14 05:54:09 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace urde {
|
2016-09-14 05:54:09 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
class CErrorOutputWindow : public CIOWin {
|
2016-09-14 05:54:09 +00:00
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
enum class State { Zero, One, Two };
|
|
|
|
|
2016-09-14 05:54:09 +00:00
|
|
|
private:
|
2018-12-08 05:30:43 +00:00
|
|
|
State x14_state = State::Zero;
|
|
|
|
union {
|
|
|
|
struct {
|
|
|
|
bool x18_24_;
|
|
|
|
bool x18_25_;
|
|
|
|
bool x18_26_;
|
|
|
|
bool x18_27_;
|
|
|
|
bool x18_28_;
|
2016-09-14 05:54:09 +00:00
|
|
|
};
|
2018-12-08 05:30:43 +00:00
|
|
|
u16 dummy = 0;
|
|
|
|
};
|
|
|
|
const wchar_t* x1c_msg;
|
|
|
|
|
2016-09-14 05:54:09 +00:00
|
|
|
public:
|
2020-03-26 01:25:11 +00:00
|
|
|
explicit CErrorOutputWindow(bool);
|
2019-08-09 12:45:18 +00:00
|
|
|
EMessageReturn OnMessage(const CArchitectureMessage&, CArchitectureQueue&) override;
|
|
|
|
bool GetIsContinueDraw() const override { return int(x14_state) < 2; }
|
2020-03-30 01:55:58 +00:00
|
|
|
void Draw() override;
|
2016-09-14 05:54:09 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde
|