Merge pull request #1176 from Triang3l/xex_exe_extension.
[Core] Treat .exe files as XEX
This commit is contained in:
commit
f24dbaa21b
|
@ -228,7 +228,7 @@ X_STATUS Emulator::LaunchPath(std::wstring path) {
|
||||||
auto extension = path.substr(last_dot);
|
auto extension = path.substr(last_dot);
|
||||||
std::transform(extension.begin(), extension.end(), extension.begin(),
|
std::transform(extension.begin(), extension.end(), extension.begin(),
|
||||||
tolower);
|
tolower);
|
||||||
if (extension == L".xex" || extension == L".elf") {
|
if (extension == L".xex" || extension == L".elf" || extension == L".exe") {
|
||||||
// Treat as a naked xex file.
|
// Treat as a naked xex file.
|
||||||
return LaunchXexFile(path);
|
return LaunchXexFile(path);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue