iOS buildfix, SDL buildfix

This commit is contained in:
Henrik Rydgård
2025-11-23 11:42:43 +01:00
parent 1ae6d0f9f6
commit bc17b7c822
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -261,7 +261,7 @@ void TextDrawerSDL::SetOrCreateFont(const FontStyle &style) {
int ptSize = static_cast<int>(style.sizePts / dpiScale_ * 1.25f);
TTF_Font *font = TTF_OpenFont(useFont.c_str(), ptSize);
if (!font) {
bool exists = File::Exists(useFont);
bool exists = File::Exists(Path(useFont));
ERROR_LOG(Log::G3D, "Failed to load font file %s: exists=%d", useFont.c_str(), (int)exists);
}
// Still, even if it failed and font is nullptr, mark it in the map to avoid retrying.
+5
View File
@@ -215,6 +215,9 @@ static bool SafeStringEqual(NSString *a, NSString *b) {
}
}
#ifndef USE_IAP
- (void)productsRequest:(nonnull SKProductsRequest *)request didReceiveResponse:(nonnull SKProductsResponse *)response {
NSLog(@"Ignoring [productsRequest]");
}
@@ -223,4 +226,6 @@ static bool SafeStringEqual(NSString *a, NSString *b) {
NSLog(@"Ignoring [paymentQueue]");
}
#endif
@end