40 lines
774 B
C++
40 lines
774 B
C++
#ifndef IPL_WARNING_HANDLER_H
|
|
#define IPL_WARNING_HANDLER_H
|
|
|
|
#include <revolution/types.h>
|
|
|
|
#include <egg/core.h>
|
|
|
|
#include "system/iplDialogWindow.h"
|
|
|
|
namespace ipl {
|
|
class WarningHandler {
|
|
public:
|
|
enum Type { NONE = 0, DEFAULT, RESET };
|
|
|
|
WarningHandler(EGG::Heap* heap);
|
|
/**
|
|
* @param type The warning type.
|
|
* @param msgId The message ID.
|
|
*/
|
|
void set(Type type, u32 msgId);
|
|
|
|
void calc();
|
|
void draw();
|
|
|
|
BOOL check();
|
|
|
|
BOOL resetting() { return mType == RESET; }
|
|
|
|
private:
|
|
Type mType; // 0x00
|
|
u32 mMessageID; // 0x04
|
|
|
|
DialogWindow* mpDialog; // 0x08
|
|
|
|
friend class System;
|
|
};
|
|
} // namespace ipl
|
|
|
|
#endif // IPL_WARNING_HANDLER_H
|