 |
Blamite Game Engine - blam!
00398.09.22.23.2015.blamite
The core library for the Blamite Game Engine.
|
Go to the documentation of this file.
5 #include <Strings/components/diagnostics/errors/errors.h>
78 BLAM int ShowErrorDialog(std::string message, HRESULT hr,
bool allow_continue,
bool allow_safemode);
Namespace surrounding all major engine components.
Definition: blam_api.h:28
@ QtDialog
Shows a dialog created using Qt.
Definition: errors.h:19
struct sentry_options_s sentry_options_t
Definition: sentry.h:501
BLAM BlamConfigurationFile * GetEngineConfiguration()
Definition: config.cpp:58
BlamErrorDisplayType
Enumerator used to control how error info from Blam::Error::ShowLastErrorInfo is displayed.
Definition: errors.h:14
BLAM int ShowErrorModal(bool allow_safemode, bool allow_continue, const char *text)
Definition: qt.cpp:7
BLAM void LogEvent(std::string message)
Logs a message to the log and/or console.
Definition: aliases.cpp:142
BLAM HMODULE GetEngineDLLHandle()
Retrieves the module handle for the engine.
Definition: main.cpp:743
BLAM void SentryEventIdDialogProcedure(HINSTANCE instance_handle, HWND window_handle)
Definition: sentry_event_notice.cpp:64
BLAM void StartSentry()
Definition: sentry.cpp:42
@ Win32Dialog
Shows an engine Error dialog.
Definition: errors.h:17
@ Log
Writes the error to the game log.
Definition: errors.h:16
BLAM HWND GetWin32MainWindowHandle()
Retrieves the main window handle of the application.
Definition: main.cpp:734
BLAM ConfigFile * GetConfig()
Retrieves the engine configuration file.
Definition: compat.cpp:5
SENTRY_API sentry_options_t * sentry_options_new(void)
Creates a new options struct.
Class representing an access violation exception.
Definition: exception.h:69
@ SENTRY_LEVEL_INFO
Definition: sentry.h:329
BLAM void ShutdownSentry()
Definition: sentry.cpp:109
int upload_progress
Sentry data upload percentage, ranges from 0 to 100.
Definition: sentry.cpp:15
SENTRY_API int sentry_init(sentry_options_t *options)
Initializes the Sentry SDK with the specified options.
SentryUploadStatus upload_status
Current Sentry upload status.
Definition: sentry.cpp:17
std::thread sentry_upload_thread
Thread used to gather/upload data for Sentry.
Definition: sentry.cpp:16
SENTRY_API void sentry_shutdown(void)
Shuts down the sentry client and forces transports to flush out.
SENTRY_API sentry_value_t sentry_value_new_message_event(sentry_level_t level, const char *logger, const char *text)
Creates a new message event value.
void signal_handler(int signal)
Definition: errors.cpp:14
bool sentry_active
Definition: sentry.cpp:19
@ Uploading
Used when prepared Sentry data is being uploaded to the server.
Definition: crash.h:37
void CrashUploadThread()
Function used to gather and upload Sentry data.
Definition: sentry.cpp:126
BLAM void RegisterSignalExceptions()
Registers all signal handlers.
Definition: errors.cpp:57
SentryUploadStatus
Enumerator for various Sentry upload states.
Definition: crash.h:35
BLAM int ShowErrorDialog(std::string message, HRESULT hr, bool allow_continue, bool allow_safemode)
Shows an Error dialog with the specified error details and result handle.
Definition: errors.cpp:150
BLAM void ErrorDialogProcedure(HINSTANCE hInst, HWND hWnd, const char *error_text)
Dialog procedure for the Error dialog.
Definition: error_notice.cpp:36
sock planetquake com All rights reserved Quake III Arena is a registered trademark of id Inc This level may be electronically distributed only at NO CHARGE to the recipient in its current MUST include this txt file
Definition: chiropteraDM.txt:95
#define BLAM
Definition: errors.h:8
SENTRY_API sentry_uuid_t sentry_capture_event(sentry_value_t event)
Sends a sentry event.
SENTRY_API void sentry_options_set_dsn(sentry_options_t *opts, const char *dsn)
Sets the DSN.
@ Win32MessageBox
Shows a generic message box.
Definition: errors.h:18
BLAM void ShowLastErrorInfo(const char *function, BlamErrorDisplayType display_type)
Displays the last error information from Windows.
Definition: errors.cpp:66
BLAM std::string GetCrashUploadStateMessage()
Retrieves the state of the Sentry data upload.
Definition: sentry.cpp:21
BLAM void UploadCrashData()
Definition: sentry.cpp:144
BLAM std::string GetErrorString(BlamResult result)
Alias of Blam::EngineText::LookupErrorString().
Definition: error_library.cpp:7
BLAM std::string GetStringFromHResult(HRESULT hr)
Converts a result handle to a string.
Definition: errors.cpp:120
BLAM std::string LookupErrorString(int error_code)
Finds a string message associated with a given error code.
Definition: engine_text.cpp:48
BLAM int ErrorDialogModal(HINSTANCE hInst, HWND hWnd, LPSTR error_text, bool allow_continue, bool allow_safemode)
Displays the Error dialog as a modal dialog - in other words, it halts engine execution.
Definition: error_notice.cpp:23
BLAM int ShowWin32ErrorDialog(std::string message, HRESULT hr, bool allow_continue, bool allow_safemode)
Shows an Error dialog with the specified error details and result handle.
Definition: errors.cpp:169
std::string event_id
The event ID generated by Sentry.
Definition: sentry.cpp:18
BLAM std::string GetEventID()
Retrieves the Event ID generated by Sentry, used to cross-reference bug reports and Sentry data.
Definition: sentry.cpp:37