mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 01:25:07 +02:00
Warning fixes
This commit is contained in:
@@ -302,7 +302,7 @@ void TextDrawerSDL::MeasureStringInternal(std::string_view str, float *w, float
|
||||
std::vector<std::string_view> lines;
|
||||
SplitString(str, '\n', lines);
|
||||
|
||||
INFO_LOG(Log::G3D, "Measuring string %.*s", STR_VIEW(str));
|
||||
// INFO_LOG(Log::G3D, "Measuring string %.*s", STR_VIEW(str));
|
||||
|
||||
int extW = 0, extH = 0;
|
||||
std::string temp;
|
||||
|
||||
@@ -79,7 +79,7 @@ bool ZipFileLoader::Initialize(int fileIndex) {
|
||||
|
||||
data_ = (u8 *)malloc(dataFileSize_);
|
||||
if (!data_) {
|
||||
ERROR_LOG(Log::IO, "Failed to allocate %lld bytes for ZIP file data", dataFileSize_);
|
||||
ERROR_LOG(Log::IO, "Failed to allocate %lld bytes for ZIP file data", (long long)dataFileSize_);
|
||||
zip_fclose(dataFile_);
|
||||
dataFile_ = nullptr;
|
||||
return false;
|
||||
@@ -104,11 +104,11 @@ size_t ZipFileLoader::ReadAt(s64 absolutePos, size_t bytes, void *data, Flags fl
|
||||
}
|
||||
zip_int64_t retval = zip_fread(dataFile_, data_ + dataReadPos_, remaining);
|
||||
if (retval < 0) {
|
||||
ERROR_LOG(Log::IO, "zip_fread failed with error code %lld", retval);
|
||||
ERROR_LOG(Log::IO, "zip_fread failed with error code %lld", (long long)retval);
|
||||
return 0;
|
||||
}
|
||||
if (retval != remaining) {
|
||||
ERROR_LOG(Log::IO, "zip_fread: expected %d bytes, got %lld", remaining, retval);
|
||||
ERROR_LOG(Log::IO, "zip_fread: expected %d bytes, got %lld", remaining, (long long)retval);
|
||||
return 0;
|
||||
}
|
||||
dataReadPos_ += retval;
|
||||
|
||||
+1
-1
@@ -359,7 +359,7 @@ bool ScreenshotNotifyEndOfFrame(Draw::DrawContext *draw) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
_dbg_assert_msg_(buf.IsBackBuffer(), "buf isn't backbuffer?? rotation: %d", g_display.rotation);
|
||||
_dbg_assert_msg_(buf.IsBackBuffer(), "buf isn't backbuffer?? rotation: %d", (int)g_display.rotation);
|
||||
const int w = buf.GetStride();
|
||||
const int h = buf.GetHeight();
|
||||
SaveScreenshotAsync(std::move(buf), w, h, g_pendingScreenshot.maxRes);
|
||||
|
||||
@@ -556,6 +556,9 @@ void System_LaunchUrl(LaunchUrlType urlType, std::string_view url) {
|
||||
#endif
|
||||
// INFO_LOG(Log::System, "LaunchUrlType::LOCAL_FILE not implemented on this platform");
|
||||
break;
|
||||
default:
|
||||
INFO_LOG(Log::System, "Unhandled LaunchUrlType %d", (int)urlType);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user