Hello, good afternoon, congratulations on your project, I use it, it was one of the reasons why I wanted to create my own Front-End, and unfortunately I'm having problems running the PS2 isos through neutrino, can you help me?
FUNCTION: Execute Neutrino with the Selected ISO
// ----------------------------------------------------------
function executarNeutrino(jogoSelecionado) {
const isoPath = `${isoDirectory}${jogoSelecionado}`; // Construct full ISO path
try {
// Check if the Neutrino ELF file exists
if (std.exists(neutrinoPath)) {
console.log(`Neutrino ELF found: ${neutrinoPath}`);
console.log(`Selected ISO: ${isoPath}`);
// Arguments to pass to the Neutrino ELF
const arguments = [
"-bsd=usb", // Backend: USB
`-dvd=${isoPath}` // ISO path argument
];
// Attempt to load the ELF with the arguments
System.loadELF(neutrinoPath, arguments);
console.log("Neutrino started successfully.");
} else {
console.error("ERROR: Neutrino ELF not found.");
}
} catch (e) {
// Log any errors encountered during execution
console.error("ERROR: Failed to execute Neutrino ELF.");
console.error("DETAILS:", e);
}
}
// ----------------------------------------------------------
// FUNCTION: Handle Button Press to Start Game
// ----------------------------------------------------------
function handleGameStart() {
pad.update(); // Update controller state
if (pad.justPressed(Pads.X)) {
console.log("X button pressed. Starting selected game...");
executarNeutrino(exampleISO); // Start the example game ISO
}
}