mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
- new exception class for quitting the game
This will eventually replace the atexit mess, right now it isn't used.
This commit is contained in:
parent
e7c388dccd
commit
12440bbca3
1 changed files with 12 additions and 0 deletions
|
@ -111,6 +111,18 @@ public:
|
|||
CVulkanError(const char *message) : CDoomError(message) {}
|
||||
};
|
||||
|
||||
class CExitEvent : public std::exception
|
||||
{
|
||||
int m_reason;
|
||||
public:
|
||||
CExitEvent(int reason) { m_reason = reason; }
|
||||
char const *what() const noexcept override
|
||||
{
|
||||
return "The game wants to exit";
|
||||
}
|
||||
int Reason() const { return m_reason; }
|
||||
};
|
||||
|
||||
void I_Error (const char *error, ...) GCCPRINTF(1,2);
|
||||
void I_FatalError (const char *error, ...) GCCPRINTF(1,2);
|
||||
|
||||
|
|
Loading…
Reference in a new issue