mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-17 08:11:51 +00:00
Add early out to pkg_install
This commit is contained in:
parent
336cd6e33a
commit
8ef69429d8
@ -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<double>& 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<fs::file> filelist;
|
||||
|
Loading…
Reference in New Issue
Block a user