Skip to content

Commit c1a8922

Browse files
alvinkim101Xcedf
authored andcommitted
Fix splash assert (shadps4-emu#1832)
1 parent b240cdc commit c1a8922

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/file_format/splash.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include "splash.h"
1010

1111
bool Splash::Open(const std::filesystem::path& filepath) {
12-
ASSERT_MSG(filepath.stem().string() != "png", "Unexpected file format passed");
12+
ASSERT_MSG(filepath.extension().string() == ".png", "Unexpected file format passed");
1313

1414
Common::FS::IOFile file(filepath, Common::FS::FileAccessMode::Read);
1515
if (!file.IsOpen()) {

0 commit comments

Comments
 (0)