build(macos): include sound assets in bundle, add diagnostic signal handler and update audio driver
This commit is contained in:
@@ -53,6 +53,11 @@
|
||||
#include <memory>
|
||||
#include <mutex>
|
||||
#include <pthread.h>
|
||||
#if defined(__APPLE__)
|
||||
#include <execinfo.h>
|
||||
#include <signal.h>
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
namespace
|
||||
{
|
||||
@@ -345,6 +350,15 @@ bool Start(const char* stdlib_path, std::string* error)
|
||||
{
|
||||
if (g_launcher)
|
||||
return true;
|
||||
#if defined(__APPLE__)
|
||||
if (std::getenv("MT_BETA_DIAGNOSTIC"))
|
||||
signal(SIGSEGV, [](int) {
|
||||
void* frames[64];
|
||||
int count = backtrace(frames, 64);
|
||||
backtrace_symbols_fd(frames, count, STDERR_FILENO);
|
||||
std::_Exit(139);
|
||||
});
|
||||
#endif
|
||||
|
||||
// 40250 Main (UserInterface.cpp:410): if (LocaleService_LoadGlobal(hInstance)) SetDefaultCodePage(...).
|
||||
std::string locale_config = "locale.cfg";
|
||||
|
||||
Reference in New Issue
Block a user