From cbf1e70eb2059cfacede2e42492cf05c7c6341bd Mon Sep 17 00:00:00 2001 From: zoltanvb Date: Fri, 29 Dec 2023 20:44:55 +0100 Subject: [PATCH] Fix for EP128_FILE configurations started without content. --- core/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/main.cpp b/core/main.cpp index 6c2cf05..0915e5e 100644 --- a/core/main.cpp +++ b/core/main.cpp @@ -613,6 +613,11 @@ void retro_init(void) else if (core->machineDetailedType == Ep128Emu::VM_config.at("EP128_FILE")) { fileContent = true; log_cb(RETRO_LOG_DEBUG, "File content override\n"); + core->vm->setFileNameCallback(&fileNameCallback, NULL); + config->fileioSettingsChanged = true; + config->vm.enableFileIO=true; + config->vmConfigurationChanged = true; + config->applySettings(); } else { diskContent = true;