Skip to content

Commit

Permalink
pkgi_save: truncate files
Browse files Browse the repository at this point in the history
  • Loading branch information
blastrock committed Jul 7, 2023
1 parent 0836988 commit a4e85e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vitafile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ std::vector<uint8_t> pkgi_load(const std::string& path)
void pkgi_save(const std::string& path, const void* data, uint32_t size)
{
SceUID fd = sceIoOpen(
path.c_str(), SCE_O_WRONLY | SCE_O_CREAT /* | SCE_O_TRUNC */, 0777);
path.c_str(), SCE_O_WRONLY | SCE_O_CREAT | SCE_O_TRUNC, 0777);
if (fd < 0)
throw std::runtime_error(fmt::format(
"sceIoOpen({}) failed:\n{:#08x}",
Expand Down

0 comments on commit a4e85e6

Please sign in to comment.