CMake improvements, photoFormat improvement

This commit is contained in:
Syping 2021-09-04 17:13:03 +02:00
parent 464e5bf6dd
commit 9af28f0aa6
5 changed files with 72 additions and 10 deletions

View file

@ -125,7 +125,7 @@ bool RagePhoto::load(const char *data, size_t length)
p_headerSum = charToUInt32LE(uInt32Buffer);
#endif
if (format == static_cast<uint32_t>(PhotoFormat::RDR2))
if (p_photoFormat == PhotoFormat::RDR2)
pos = pos + 8;
uint32_t headerSize = pos;

View file

@ -1,6 +1,6 @@
prefix=@CMAKE_INSTALL_PREFIX@
libdir=${prefix}/lib
includedir=${prefix}/include
libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@
includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@
Name: libragephoto
Description: Open Source RAGE Photo Parser for GTA V