Merge pull request #1176 from Triang3l/xex_exe_extension.

[Core] Treat .exe files as XEX
This commit is contained in:
Rick Gibbed 2018-07-01 01:14:04 -05:00 committed by GitHub
commit f24dbaa21b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ X_STATUS Emulator::LaunchPath(std::wstring path) {
auto extension = path.substr(last_dot);
std::transform(extension.begin(), extension.end(), extension.begin(),
tolower);
if (extension == L".xex" || extension == L".elf") {
if (extension == L".xex" || extension == L".elf" || extension == L".exe") {
// Treat as a naked xex file.
return LaunchXexFile(path);
} else {