netcon: replace DLLddio_MakePath with std::fs::path

This commit is contained in:
Azamat H. Hackimov 2024-08-11 18:33:38 +03:00
parent 58fe55605d
commit 22829e5e43

View File

@ -2132,10 +2132,8 @@ void CheckPXOForAnomalies() {
if (stricmp(DLLMPlayers[i].tracker_id, DLLMPlayers[j].tracker_id) == 0) {
// Ok, what we have here is multiple users with the same tracker ID.
// This is bad. It could be user error, but it could be something worse.
FILE *errfile;
char errfilepath[_MAX_PATH];
DLLddio_MakePath(errfilepath, DLLLocalD3Dir, "pxo.err", NULL);
errfile = fopen(errfilepath, "at");
std::filesystem::path errfilepath = std::filesystem::path(DLLLocalD3Dir) / "pxo.err";
FILE *errfile = fopen(errfilepath.u8string().c_str(), "at");
if (errfile) {
fprintf(errfile, "Dup TID: %s & %s / %s\n", DLLMPlayers[j].callsign, DLLMPlayers[i].callsign,
DLLMPlayers[i].tracker_id);