add format() function

This commit is contained in:
Syping 2021-09-03 18:36:00 +02:00
parent 1049c8e383
commit 464e5bf6dd
4 changed files with 16 additions and 2 deletions

View file

@ -92,7 +92,10 @@ int main(int argc, char *argv[])
return -1;
}
std::cout << "Photo successfully exported" << std::endl;
if (ragePhoto.format() == RagePhoto::PhotoFormat::GTA5)
std::cout << "GTA V Photo successfully exported" << std::endl;
else
std::cout << "RDR 2 Photo successfully exported" << std::endl;
// Clear RagePhoto (provocate crash when pointer leak)
ragePhoto.clear();