mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 14:37:08 +00:00
fs:: const renaming, fs::g_tls_error stub
This commit is contained in:
parent
c2897cddd6
commit
73b108765e
33 changed files with 196 additions and 121 deletions
|
|
@ -69,7 +69,7 @@ static bool CheckHeader(const fs::file& pkg_f, PKGHeader& header)
|
|||
bool Unpack(const fs::file& pkg_f, std::string dir)
|
||||
{
|
||||
// Save current file offset (probably zero)
|
||||
const u64 start_offset = pkg_f.seek(0, from_cur);
|
||||
const u64 start_offset = pkg_f.seek(0, fsm::cur);
|
||||
|
||||
// Get basic PKG information
|
||||
PKGHeader header;
|
||||
|
|
@ -186,7 +186,7 @@ bool Unpack(const fs::file& pkg_f, std::string dir)
|
|||
LOG_WARNING(LOADER, "PKG Loader: '%s' is overwritten", path);
|
||||
}
|
||||
|
||||
if (fs::file out{ path, o_write | o_create | o_trunc })
|
||||
if (fs::file out{ path, fom::write | fom::create | fom::trunc })
|
||||
{
|
||||
for (u64 pos = 0; pos < entry.file_size; pos += BUF_SIZE)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue