diff --git a/Utilities/StrFmt.cpp b/Utilities/StrFmt.cpp index 1d3e6144e0..7835bf0c9e 100644 --- a/Utilities/StrFmt.cpp +++ b/Utilities/StrFmt.cpp @@ -1,7 +1,16 @@ #include "stdafx.h" -#include "StrFmt.h" #include +std::string u128::to_hex() const +{ + return fmt::Format("%016llx%016llx", _u64[1], _u64[0]); +} + +std::string u128::to_xyzw() const +{ + return fmt::Format("x: %g y: %g z: %g w: %g", _f[3], _f[2], _f[1], _f[0]); +} + extern const std::string fmt::placeholder = "???"; std::string replace_first(const std::string& src, const std::string& from, const std::string& to) diff --git a/rpcs3/Crypto/unedat.cpp b/rpcs3/Crypto/unedat.cpp index a78a76497a..f4d57c49d0 100644 --- a/rpcs3/Crypto/unedat.cpp +++ b/rpcs3/Crypto/unedat.cpp @@ -695,7 +695,7 @@ bool extract_data(rFile *input, rFile *output, const char* input_file_name, unsi LOG_NOTICE(LOADER, "SDAT HEADER"); LOG_NOTICE(LOADER, "SDAT flags: 0x%08X", EDAT->flags); LOG_NOTICE(LOADER, "SDAT block size: 0x%08X", EDAT->block_size); - LOG_NOTICE(LOADER, "SDAT file size: 0x%08X", EDAT->file_size); + LOG_NOTICE(LOADER, "SDAT file size: 0x%08X", (u64)EDAT->file_size); } // Generate SDAT key. @@ -708,7 +708,7 @@ bool extract_data(rFile *input, rFile *output, const char* input_file_name, unsi LOG_NOTICE(LOADER, "EDAT HEADER"); LOG_NOTICE(LOADER, "EDAT flags: 0x%08X", EDAT->flags); LOG_NOTICE(LOADER, "EDAT block size: 0x%08X", EDAT->block_size); - LOG_NOTICE(LOADER, "EDAT file size: 0x%08X", EDAT->file_size); + LOG_NOTICE(LOADER, "EDAT file size: 0x%08X", (u64)EDAT->file_size); } // Perform header validation (EDAT only). diff --git a/rpcs3/stdafx.cpp b/rpcs3/stdafx.cpp index 6785d8ba9b..fd4f341c7b 100644 --- a/rpcs3/stdafx.cpp +++ b/rpcs3/stdafx.cpp @@ -1,11 +1 @@ #include "stdafx.h" - -std::string u128::to_hex() const -{ - return fmt::Format("%016llx%016llx", _u64[1], _u64[0]); -} - -std::string u128::to_xyzw() const -{ - return fmt::Format("x: %g y: %g z: %g w: %g", _f[3], _f[2], _f[1], _f[0]); -}