mirror of
https://github.com/kevinbentley/Descent3.git
synced 2025-01-22 11:28:56 +00:00
netcon: replace DLLddio_MakePath with std::fs::path
This commit is contained in:
parent
58fe55605d
commit
22829e5e43
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user