mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 13:31:27 +12:00
sceNpTrophyRegisterContext: Atomically create trophy data
This commit is contained in:
parent
a50ea09053
commit
3a96d99187
4 changed files with 46 additions and 6 deletions
|
@ -628,7 +628,8 @@ namespace fs
|
|||
template <typename... Args>
|
||||
bool write_file(const std::string& path, bs_t<fs::open_mode> mode, const Args&... args)
|
||||
{
|
||||
if (fs::file f{path, mode})
|
||||
// Always use write flag, remove read flag
|
||||
if (fs::file f{path, mode + fs::write - fs::read})
|
||||
{
|
||||
// Write args sequentially
|
||||
(f.write(args), ...);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue