[Kernel] Added option to load provided XAM for resource usage

- Added XEX1 key
- Removed annoying assertion from xeXamEnumerate
- Added returning hmodule_ptr for resource locator
This commit is contained in:
Gliniak
2025-05-20 12:55:02 +02:00
committed by Radosław Gliński
parent 97a45315e3
commit f4b854e484
5 changed files with 29 additions and 13 deletions

View File

@@ -587,6 +587,12 @@ X_STATUS Emulator::LaunchXexFile(const std::filesystem::path& path) {
// System related symlinks
file_system_->RegisterSymbolicLink("media:", mount_path);
file_system_->RegisterSymbolicLink("font:", mount_path);
auto module = kernel_state_->LoadUserModule("xam.xex");
if (module) {
result = kernel_state_->FinishLoadingUserModule(module, false);
}
}
}
return result;