build(macos): include sound assets in bundle, add diagnostic signal handler and update audio driver

This commit is contained in:
shen
2026-09-24 01:14:18 -07:00
parent 8b593261a9
commit c12d2337ef
3 changed files with 17 additions and 0 deletions
@@ -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";