mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-01 18:23:43 +01:00
Logging API change (refactor) (#19324)
* Rename LogType to Log * Explicitly use the Log:: enum when logging. Allows for autocomplete when editing. * Mac/ARM64 buildfix * Do the same with the hle result log macros * Rename the log names to mixed case while at it. * iOS buildfix * Qt buildfix attempt, ARM32 buildfix
This commit is contained in:
1 parent
ae3ff686f0
commit
e01ca5b057
393 files changed
+6198
-6193
No files matched your search
@@ -322,7 +322,7 @@ float GetTargetScore(const Point2D &originPos, int originIndex, const View *orig
|
||||
float vertOverlap = VerticalOverlap(origin->GetBounds(), destination->GetBounds());
|
||||
if (horizOverlap == 1.0f && vertOverlap == 1.0f) {
|
||||
if (direction != FOCUS_PREV_PAGE && direction != FOCUS_NEXT_PAGE) {
|
||||
INFO_LOG(SYSTEM, "Contain overlap");
|
||||
INFO_LOG(Log::System, "Contain overlap");
|
||||
return 0.0;
|
||||
}
|
||||
}
|
||||
@@ -379,7 +379,7 @@ float GetTargetScore(const Point2D &originPos, int originIndex, const View *orig
|
||||
break;
|
||||
case FOCUS_PREV:
|
||||
case FOCUS_NEXT:
|
||||
ERROR_LOG(SYSTEM, "Invalid focus direction");
|
||||
ERROR_LOG(Log::System, "Invalid focus direction");
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -401,7 +401,7 @@ static float GetDirectionScore(int originIndex, const View *origin, View *destin
|
||||
|
||||
NeighborResult ViewGroup::FindNeighbor(View *view, FocusDirection direction, NeighborResult result) {
|
||||
if (!IsEnabled()) {
|
||||
INFO_LOG(SCECTRL, "Not enabled");
|
||||
INFO_LOG(Log::sceCtrl, "Not enabled");
|
||||
return result;
|
||||
}
|
||||
if (GetVisibility() != V_VISIBLE) {
|
||||
@@ -467,7 +467,7 @@ NeighborResult ViewGroup::FindNeighbor(View *view, FocusDirection direction, Nei
|
||||
return NeighborResult(views_[(num + 1) % views_.size()], 0.0f);
|
||||
|
||||
default:
|
||||
ERROR_LOG(SYSTEM, "Bad focus direction %d", (int)direction);
|
||||
ERROR_LOG(Log::System, "Bad focus direction %d", (int)direction);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
@@ -882,7 +882,7 @@ void AnchorLayout::Layout() {
|
||||
GridLayout::GridLayout(GridLayoutSettings settings, LayoutParams *layoutParams)
|
||||
: ViewGroup(layoutParams), settings_(settings) {
|
||||
if (settings.orientation != ORIENT_HORIZONTAL)
|
||||
ERROR_LOG(SYSTEM, "GridLayout: Vertical layouts not yet supported");
|
||||
ERROR_LOG(Log::System, "GridLayout: Vertical layouts not yet supported");
|
||||
}
|
||||
|
||||
void GridLayout::Measure(const UIContext &dc, MeasureSpec horiz, MeasureSpec vert) {
|
||||
|
||||
Reference in new issue
Block a user