We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
GetAppInstallDir
1 parent 5ecdca1 commit 7afeddcCopy full SHA for 7afeddc
1 file changed
package/launchdf.cpp
@@ -356,7 +356,7 @@ int main(int argc, char* argv[]) {
356
auto get_app_path_from_steam = [] (AppId_t appid) -> std::optional<std::filesystem::path> {
357
char buf[2048] = "";
358
int bytes = SteamApps()->GetAppInstallDir(appid, (char*)&buf, 2048);
359
- if (bytes == -1)
+ if (bytes <= 0)
360
return std::nullopt;
361
// steam API counts the null terminator in the byte count returned
362
if (buf[bytes] == '\0') bytes--;
0 commit comments