lulzsun / RePlays

Open-source game recording management software
GNU General Public License v3.0
162 stars 18 forks source link

fix: device path conversion #229

Closed R-NK closed 3 months ago

R-NK commented 3 months ago

Background

In this commit, the QueryDosDevice call was removed, leading to the loss of functionality for converting device paths (\Device\HarddiskX\) to drive letter paths (C:\some\). For games with anti-cheat measures, the whitelisting process registers paths using drive letters, but device paths are retrieved from the game process. This mismatch prevents the recording from starting.

Fix

Reintroduced the QueryDosDevice call to restore the conversion process from device paths to drive letter paths. The unhandle exception mentioned in the commit message did not occur in my environment (Windows 10 22H2).