diff --git a/config.cpp b/config.cpp index 90b998e..9b6e8a3 100644 --- a/config.cpp +++ b/config.cpp @@ -6,7 +6,8 @@ std::unordered_map config = { {"skip_sha1_checksum", 0}, - {"use_wasapi_audio", 0} + {"use_wasapi_audio", 0}, + {"autospawn_mario_on_start", 0}, }; void saveConfig() diff --git a/main.cpp b/main.cpp index 3b5f81f..c486a72 100644 --- a/main.cpp +++ b/main.cpp @@ -130,6 +130,8 @@ class sm64_san_andreas { { if (!loaded) return; if (marioSpawned()) marioDestroy(); + + if (config["autospawn_mario_on_start"]) marioSpawn(); } static void destroy()