mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-27 23:37:05 -05:00
fix: Inverted logic when opening files from the command line
This commit is contained in:
@@ -362,7 +362,7 @@ namespace hex::plugin::builtin {
|
||||
FileProvider provider;
|
||||
provider.setPath(filePath);
|
||||
auto result = provider.open();
|
||||
if (!result.isFailure()) {
|
||||
if (result.isFailure()) {
|
||||
log::println("Failed to open file '{}': {}", args[0], result.getErrorMessage());
|
||||
std::exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user