Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SwanStation and PCSX2 libretro cores not running and causing crashes #27

Open
INT3GRA-YT opened this issue Aug 16, 2023 · 2 comments
Open

Comments

@INT3GRA-YT
Copy link

Hi, I try to use the swanstation and pcsx2 cores in my unreal project but crashes occurs with multiple error messages (which can't be pasted here at the time being) also I also want to know how to switch games in cores

Many thanks

@INT3GRA-YT
Copy link
Author

INT3GRA-YT commented Aug 16, 2023

PCSX2 core error code:

Fatal error: [File:C:/actions-runner/_work/UnrealLibretro/UnrealLibretro/UE_4.27/UnrealLibretro/HostProject/Plugins/UnrealLibretro/Source/UnrealLibretro/Private/sdlarch.cpp] [Line: 898] The core failed to load the content.

UE4Editor_UnrealLibretro!LibretroContext::load_game() [C:\actions-runner_work\UnrealLibretro\UnrealLibretro\UE_4.27\UnrealLibretro\HostProject\Plugins\UnrealLibretro\Source\UnrealLibretro\Private\sdlarch.cpp:900]
UE4Editor_UnrealLibretro!<lambda_54c8ca79f7e54b6f366a64590c0f3de9>::operator()() [C:\actions-runner_work\UnrealLibretro\UnrealLibretro\UE_4.27\UnrealLibretro\HostProject\Plugins\UnrealLibretro\Source\UnrealLibretro\Private\sdlarch.cpp:986]
UE4Editor_UnrealLibretro!FLambdaRunnable::Run() [C:\actions-runner_work\UnrealLibretro\UnrealLibretro\UE_4.27\UnrealLibretro\HostProject\Plugins\UnrealLibretro\Source\UnrealLibretro\Private\LambdaRunnable.cpp:34]
UE4Editor_Core
UE4Editor_Core
kernel32
ntdll

@N7Alpha
Copy link
Owner

N7Alpha commented Sep 2, 2023

I removed your EpicAccountId from your dump log since I don't know how sensitive that information is, but better safe than sorry.

There are a finite number of working cores. I'll add these to the list of broken cores soon. Unfortunately getting these working requires fairly advanced debugging skills and familiarity with this codebase. I document the process somewhat if you want to try it for yourself. The core failed to load the content error is from fairly early in the startup sequence for the core. From the content on this page I'm thinking you might just be missing bios files. If the files need to go into the libretro system folder then follow the advice here. Let me know if the bios thing fixes it. If not then post the new crash logs you get.


There is a single execution path that both loads the core and game in serial. So to load a new game for the core you have to call ULibretroCoreInstance::Shutdown() and then set ULibretroCoreInstance::ROMPath to your new ROM and then call Launch() or do the analogous thing in blueprints. If you're wanting to load a new game without fully restarting the core I don't support that currently although the libretro.h technically does I just don't allow for it to keep things slightly simpler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants