diff --git a/rpcs3/Crypto/unpkg.cpp b/rpcs3/Crypto/unpkg.cpp index 668d2bdcd3..4666e2d5d7 100644 --- a/rpcs3/Crypto/unpkg.cpp +++ b/rpcs3/Crypto/unpkg.cpp @@ -1,4 +1,4 @@ -#include "stdafx.h" +#include "stdafx.h" #include "utils.h" #include "aes.h" #include "sha1.h" @@ -10,6 +10,12 @@ bool pkg_install(const std::string& path, atomic_t& sync) { + if (!fs::is_file(path)) + { + LOG_ERROR(LOADER, "PKG file not found!"); + return false; + } + const std::size_t BUF_SIZE = 8192 * 1024; // 8 MB std::vector filelist;