Skip to content

Commit

Permalink
loadmap: Fix conf file save creation
Browse files Browse the repository at this point in the history
The plugin does not create the cfg file, but updates it if already existing.
No idea what's wrong, maybe it's permissions.
  • Loading branch information
mefistotelis committed Jun 19, 2024
1 parent 9df328e commit 5bbf8d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LoadMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ bool write_config_file(
qstrncat(szIniPath, ".cfg", sizeof(szIniPath));
szIniPath[sizeof(szIniPath) - 1] = '\0';

fh = qopen(szIniPath, O_CREAT|O_WRONLY|O_TRUNC);
fh = qcreate(szIniPath, 0644);
if (fh == -1)
return false;

Expand Down

0 comments on commit 5bbf8d1

Please sign in to comment.