Skip to content
This repository has been archived by the owner on Jul 24, 2022. It is now read-only.

Commit

Permalink
Add ELF support
Browse files Browse the repository at this point in the history
  • Loading branch information
valters-tomsons committed May 26, 2021
1 parent c02916d commit a78ac96
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 9 additions & 1 deletion Spectabis-WPF/Domain/LaunchPCSX2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,16 @@ public static Process LaunchGame(string game, bool closeApp = false)
//PCSX2 Process
if(File.Exists(Properties.Settings.Default.emuDir))
{
var argument = $"{_launchargs} {quote}{_isoDir}{quote} --cfgpath={quote}{gamePath}{quote}";

if(_isoDir.EndsWith(".ELF") || _isoDir.EndsWith(".elf"))
{
// argument = argument.Replace($"\"{_isoDir}\"", $"--elf=\"{_isoDir}\"");
argument = $"--elf=\"{_isoDir}\" --cfgpath=\"{gamePath}\"";
}

PCSX.StartInfo.FileName = Properties.Settings.Default.emuDir;
PCSX.StartInfo.Arguments = $"{_launchargs} {quote}{_isoDir}{quote} --cfgpath={quote}{gamePath}{quote}";
PCSX.StartInfo.Arguments = argument;

PCSX.Start();

Expand Down
4 changes: 2 additions & 2 deletions Spectabis-WPF/Domain/SupportedGames.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ class SupportedGames
{
//File types that Spectabis supports
public static List<string> GameFiles = new List<string>() {
"iso", "bin", "cso", "gz", "chd",
"ISO", "BIN", "CSO", "GZ", "CHD"
"iso", "bin", "cso", "gz", "chd", "elf",
"ISO", "BIN", "CSO", "GZ", "CHD", "ELF"

};

Expand Down

0 comments on commit a78ac96

Please sign in to comment.