From 39fed1f469104112afe03047644d40d72131409d Mon Sep 17 00:00:00 2001 From: alvinkim101 <160981360+alvinkim101@users.noreply.github.com> Date: Fri, 20 Dec 2024 10:27:27 -0800 Subject: [PATCH] Fix splash assert (#1832) --- src/core/file_format/splash.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/file_format/splash.cpp b/src/core/file_format/splash.cpp index b6870215..4eb701cf 100644 --- a/src/core/file_format/splash.cpp +++ b/src/core/file_format/splash.cpp @@ -9,7 +9,7 @@ #include "splash.h" bool Splash::Open(const std::filesystem::path& filepath) { - ASSERT_MSG(filepath.stem().string() != "png", "Unexpected file format passed"); + ASSERT_MSG(filepath.extension().string() == ".png", "Unexpected file format passed"); Common::FS::IOFile file(filepath, Common::FS::FileAccessMode::Read); if (!file.IsOpen()) {