diff --git a/core/linux-dist/main.cpp b/core/linux-dist/main.cpp index 24e8dff7d..4f94856f7 100644 --- a/core/linux-dist/main.cpp +++ b/core/linux-dist/main.cpp @@ -396,7 +396,7 @@ int main(int argc, wchar* argv[]) #if !defined(TARGET_EMSCRIPTEN) #if FEAT_HAS_NIXPROF - install_prof_handler(0); + install_prof_handler(1); #endif rend_thread(NULL); #else diff --git a/core/nullDC.cpp b/core/nullDC.cpp index a4bde1942..e6f27f142 100755 --- a/core/nullDC.cpp +++ b/core/nullDC.cpp @@ -21,6 +21,7 @@ #include "hw/aica/dsp.h" #include "imgread/common.h" #include "rend/gui.h" +#include "profiler/profiler.h" void FlushCache(); void LoadCustom(); @@ -323,7 +324,7 @@ int dc_start_game(const char *path) LoadCustom(); #elif DC_PLATFORM == DC_PLATFORM_NAOMI || DC_PLATFORM == DC_PLATFORM_ATOMISWAVE if (!naomi_cart_SelectFile(libPvr_GetRenderTarget())) - return rv_serror; + return -6; LoadCustom(); #if DC_PLATFORM == DC_PLATFORM_NAOMI mcfg_CreateNAOMIJamma(); @@ -410,6 +411,10 @@ bool dc_is_running() #ifndef TARGET_DISPFRAME void* dc_run(void*) { +#if FEAT_HAS_NIXPROF + install_prof_handler(0); +#endif + InitAudio(); if (settings.dynarec.Enable) @@ -668,6 +673,7 @@ void SaveSettings() cfgSaveInt("config", "Dreamcast.Language", settings.dreamcast.language); cfgSaveBool("config", "aica.LimitFPS", settings.aica.LimitFPS); cfgSaveBool("config", "aica.NoBatch", settings.aica.NoBatch); + cfgSaveBool("config", "aica.NoSound", settings.aica.NoSound); cfgSaveBool("config", "rend.WideScreen", settings.rend.WideScreen); cfgSaveBool("config", "rend.ShowFPS", settings.rend.ShowFPS); if (!rtt_to_buffer_game || !settings.rend.RenderToTextureBuffer)