diff options
| author | 2015-02-18 22:18:47 -0800 | |
|---|---|---|
| committer | 2015-02-18 22:26:22 -0800 | |
| commit | 5efd149ad56efb2a00332af5a791b403e7f70273 (patch) | |
| tree | 90492d27a1c67a480f8675c269a63932cee28432 /src/common/msg_handler.h | |
| parent | Merge pull request #580 from lioncash/emplace (diff) | |
| download | yuzu-5efd149ad56efb2a00332af5a791b403e7f70273.tar.gz yuzu-5efd149ad56efb2a00332af5a791b403e7f70273.tar.xz yuzu-5efd149ad56efb2a00332af5a791b403e7f70273.zip | |
Remove the useless msg_handler compilation unit that was left over from Dolphin
Diffstat (limited to 'src/common/msg_handler.h')
| -rw-r--r-- | src/common/msg_handler.h | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/src/common/msg_handler.h b/src/common/msg_handler.h deleted file mode 100644 index 421f93e23..000000000 --- a/src/common/msg_handler.h +++ /dev/null | |||
| @@ -1,56 +0,0 @@ | |||
| 1 | // Copyright 2013 Dolphin Emulator Project / 2014 Citra Emulator Project | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #pragma once | ||
| 6 | |||
| 7 | #include <string> | ||
| 8 | |||
| 9 | // Message alerts | ||
| 10 | enum MSG_TYPE | ||
| 11 | { | ||
| 12 | INFORMATION, | ||
| 13 | QUESTION, | ||
| 14 | WARNING, | ||
| 15 | CRITICAL | ||
| 16 | }; | ||
| 17 | |||
| 18 | typedef bool (*MsgAlertHandler)(const char* caption, const char* text, | ||
| 19 | bool yes_no, int Style); | ||
| 20 | typedef std::string (*StringTranslator)(const char* text); | ||
| 21 | |||
| 22 | void RegisterMsgAlertHandler(MsgAlertHandler handler); | ||
| 23 | void RegisterStringTranslator(StringTranslator translator); | ||
| 24 | |||
| 25 | extern bool MsgAlert(bool yes_no, int Style, const char* format, ...) | ||
| 26 | #ifdef __GNUC__ | ||
| 27 | __attribute__((format(printf, 3, 4))) | ||
| 28 | #endif | ||
| 29 | ; | ||
| 30 | void SetEnableAlert(bool enable); | ||
| 31 | |||
| 32 | #ifdef _MSC_VER | ||
| 33 | #define SuccessAlert(format, ...) MsgAlert(false, INFORMATION, format, __VA_ARGS__) | ||
| 34 | #define PanicAlert(format, ...) MsgAlert(false, WARNING, format, __VA_ARGS__) | ||
| 35 | #define PanicYesNo(format, ...) MsgAlert(true, WARNING, format, __VA_ARGS__) | ||
| 36 | #define AskYesNo(format, ...) MsgAlert(true, QUESTION, format, __VA_ARGS__) | ||
| 37 | #define CriticalAlert(format, ...) MsgAlert(false, CRITICAL, format, __VA_ARGS__) | ||
| 38 | // Use these macros (that do the same thing) if the message should be translated. | ||
| 39 | #define SuccessAlertT(format, ...) MsgAlert(false, INFORMATION, format, __VA_ARGS__) | ||
| 40 | #define PanicAlertT(format, ...) MsgAlert(false, WARNING, format, __VA_ARGS__) | ||
| 41 | #define PanicYesNoT(format, ...) MsgAlert(true, WARNING, format, __VA_ARGS__) | ||
| 42 | #define AskYesNoT(format, ...) MsgAlert(true, QUESTION, format, __VA_ARGS__) | ||
| 43 | #define CriticalAlertT(format, ...) MsgAlert(false, CRITICAL, format, __VA_ARGS__) | ||
| 44 | #else | ||
| 45 | #define SuccessAlert(format, ...) MsgAlert(false, INFORMATION, format, ##__VA_ARGS__) | ||
| 46 | #define PanicAlert(format, ...) MsgAlert(false, WARNING, format, ##__VA_ARGS__) | ||
| 47 | #define PanicYesNo(format, ...) MsgAlert(true, WARNING, format, ##__VA_ARGS__) | ||
| 48 | #define AskYesNo(format, ...) MsgAlert(true, QUESTION, format, ##__VA_ARGS__) | ||
| 49 | #define CriticalAlert(format, ...) MsgAlert(false, CRITICAL, format, ##__VA_ARGS__) | ||
| 50 | // Use these macros (that do the same thing) if the message should be translated. | ||
| 51 | #define SuccessAlertT(format, ...) MsgAlert(false, INFORMATION, format, ##__VA_ARGS__) | ||
| 52 | #define PanicAlertT(format, ...) MsgAlert(false, WARNING, format, ##__VA_ARGS__) | ||
| 53 | #define PanicYesNoT(format, ...) MsgAlert(true, WARNING, format, ##__VA_ARGS__) | ||
| 54 | #define AskYesNoT(format, ...) MsgAlert(true, QUESTION, format, ##__VA_ARGS__) | ||
| 55 | #define CriticalAlertT(format, ...) MsgAlert(false, CRITICAL, format, ##__VA_ARGS__) | ||
| 56 | #endif | ||