2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 15:44:56 +00:00

Integrate Sentry crash reporting

This commit is contained in:
2021-04-04 18:26:29 -04:00
parent 4189c596ef
commit 927abdf8cd
7 changed files with 33 additions and 34 deletions

View File

@@ -142,6 +142,12 @@ static void SetupBasics(bool logging) {
if (logging)
logvisor::RegisterConsoleLogger();
atSetExceptionHandler(AthenaExc);
#if SENTRY_ENABLED
hecl::Runtime::FileStoreManager fileMgr{_SYS_STR("sentry-native-urde")};
hecl::SystemUTF8Conv cacheDir{fileMgr.getStoreRoot()};
logvisor::RegisterSentry("urde", URDE_WC_DESCRIBE, cacheDir.c_str());
#endif
}
static bool IsClientLoggingEnabled(int argc, const boo::SystemChar** argv) {