Compare commits
1 Commits
agent/data
...
agent/w092
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6eb09ec733 |
@@ -53,9 +53,9 @@ Progress
|
||||
<!-- progress:start -->
|
||||
| Decompiled | Matched | Linked | Data |
|
||||
|:---:|:---:|:---:|:---:|
|
||||
| 95.41% | 83.02% | 58.19% | 89.47% |
|
||||
| 95.54% | 83.04% | 58.19% | 89.47% |
|
||||
|
||||
units 777/1027 complete, functions 11991/12563 matched.
|
||||
units 777/1027 complete, functions 11993/12563 matched.
|
||||
|
||||
decompiled = code with a C/C++ implementation (objdiff fuzzy), matched = byte-exact code, linked = code actually linked into the DOL, data = byte-exact data
|
||||
<!-- progress:end -->
|
||||
|
||||
@@ -14,7 +14,12 @@ enum {
|
||||
typedef struct BS2UpdateHeader {
|
||||
char timestamp[16]; // 0x00
|
||||
u32 wadCount; // 0x10
|
||||
#ifdef BS2_UPDATE_SOURCE
|
||||
u32 extraCount;
|
||||
u32 reserved[2];
|
||||
#else
|
||||
u32 reserved[3]; // 0x14
|
||||
#endif
|
||||
} BS2UpdateHeader;
|
||||
|
||||
typedef struct BS2UpdateEntry {
|
||||
@@ -29,7 +34,12 @@ typedef struct BS2UpdateEntry {
|
||||
u64 titleId; // 0x50
|
||||
u16 titleVersion; // 0x58
|
||||
|
||||
#ifdef BS2_UPDATE_SOURCE
|
||||
u16 reservedTitle;
|
||||
u32 inodes;
|
||||
#else
|
||||
u8 padding[6]; // 0x5A
|
||||
#endif
|
||||
|
||||
// Update Data
|
||||
char dataName[0x40]; // 0x60
|
||||
|
||||
@@ -273,7 +273,7 @@ static void calc_button_repeat(KPADInside* kpad, u8 extension, s32 elapsed) {
|
||||
u16 count;
|
||||
u16 threshold;
|
||||
u16 current;
|
||||
u16 next;
|
||||
u32 next;
|
||||
if (kpad->status.trig != 0 || kpad->status.release != 0) {
|
||||
kpad->repeatCount = 0;
|
||||
kpad->repeatCount2 = kpad->repeatDelay;
|
||||
@@ -286,40 +286,46 @@ static void calc_button_repeat(KPADInside* kpad, u8 extension, s32 elapsed) {
|
||||
if (count >= 40000) {
|
||||
kpad->repeatCount = count - 40000;
|
||||
}
|
||||
threshold = kpad->repeatCount2;
|
||||
current = kpad->repeatCount;
|
||||
threshold = kpad->repeatCount2;
|
||||
if (current >= threshold) {
|
||||
kpad->status.hold |= 0x80000000;
|
||||
next = threshold + kpad->repeatInterval;
|
||||
kpad->repeatCount2 = next;
|
||||
if (current >= 20000) {
|
||||
kpad->repeatCount = current - 20000;
|
||||
kpad->repeatCount2 = next - 20000;
|
||||
kpad->repeatCount2 = (u16)next - 20000;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (extension == 2) {
|
||||
if (kpad->status.ex_status.cl.trig != 0 || kpad->status.ex_status.cl.release != 0) {
|
||||
kpad->repeatCurrent = 0;
|
||||
kpad->repeatCurrent2 = kpad->repeatDelay;
|
||||
if (kpad->status.ex_status.cl.trig != 0 && kpad->repeatInterval != 0) {
|
||||
kpad->status.ex_status.cl.hold |= 0x80000000;
|
||||
}
|
||||
} else if (kpad->status.ex_status.cl.hold != 0) {
|
||||
count = kpad->repeatCurrent + elapsed;
|
||||
kpad->repeatCurrent = count;
|
||||
if (count >= 40000) {
|
||||
kpad->repeatCurrent = count - 40000;
|
||||
}
|
||||
threshold = kpad->repeatCurrent2;
|
||||
current = kpad->repeatCurrent;
|
||||
if (current >= threshold) {
|
||||
kpad->status.ex_status.cl.hold |= 0x80000000;
|
||||
next = threshold + kpad->repeatInterval;
|
||||
kpad->repeatCurrent2 = next;
|
||||
if (current >= 20000) {
|
||||
kpad->repeatCurrent = current - 20000;
|
||||
kpad->repeatCurrent2 = next - 20000;
|
||||
{
|
||||
u16 extensionCount;
|
||||
u16 extensionThreshold;
|
||||
u16 extensionCurrent;
|
||||
u32 extensionNext;
|
||||
if (extension == 2) {
|
||||
if (kpad->status.ex_status.cl.trig != 0 || kpad->status.ex_status.cl.release != 0) {
|
||||
kpad->repeatCurrent = 0;
|
||||
kpad->repeatCurrent2 = kpad->repeatDelay;
|
||||
if (kpad->status.ex_status.cl.trig != 0 && kpad->repeatInterval != 0) {
|
||||
kpad->status.ex_status.cl.hold |= 0x80000000;
|
||||
}
|
||||
} else if (kpad->status.ex_status.cl.hold != 0) {
|
||||
extensionCount = kpad->repeatCurrent + elapsed;
|
||||
kpad->repeatCurrent = extensionCount;
|
||||
if (extensionCount >= 40000) {
|
||||
kpad->repeatCurrent = extensionCount - 40000;
|
||||
}
|
||||
extensionCurrent = kpad->repeatCurrent;
|
||||
extensionThreshold = kpad->repeatCurrent2;
|
||||
if (extensionCurrent >= extensionThreshold) {
|
||||
kpad->status.ex_status.cl.hold |= 0x80000000;
|
||||
extensionNext = extensionThreshold + kpad->repeatInterval;
|
||||
kpad->repeatCurrent2 = extensionNext;
|
||||
if (extensionCurrent >= 20000) {
|
||||
kpad->repeatCurrent = extensionCurrent - 20000;
|
||||
kpad->repeatCurrent2 = (u16)extensionNext - 20000;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -386,7 +392,7 @@ static void calc_acc_horizon(KPADInside* kpad) {
|
||||
circleY = oldCircleY + kp_ah_circle_pw * (unitY - oldCircleY);
|
||||
deltaCircleY = unitY - circleY;
|
||||
kpad->horizonCircleY = circleY;
|
||||
if (deltaCircleX * deltaCircleX + deltaCircleY * deltaCircleY == kpad->value50C) {
|
||||
if (deltaCircleX * deltaCircleX + deltaCircleY * deltaCircleY <= kpad->value50C) {
|
||||
if (kpad->horizonCircleCount != 0) {
|
||||
kpad->horizonCircleCount--;
|
||||
}
|
||||
@@ -398,14 +404,14 @@ static void calc_acc_horizon(KPADInside* kpad) {
|
||||
}
|
||||
|
||||
static void calc_acc_vertical(KPADInside* kpad) {
|
||||
f32 horizontal;
|
||||
f32 horizontalMagnitude;
|
||||
f32 accelZ;
|
||||
f32 blend;
|
||||
f32 magnitude;
|
||||
f32 normalizedX;
|
||||
f32 nextZ;
|
||||
f32 horizontalMagnitude;
|
||||
f32 normalizedX;
|
||||
f32 normalized;
|
||||
f32 horizontal;
|
||||
f32 magnitude;
|
||||
f32 accelZ;
|
||||
horizontalMagnitude = kpad->accelerationX * kpad->accelerationX + kpad->accelerationY * kpad->accelerationY;
|
||||
horizontal = (f32)sqrt(horizontalMagnitude);
|
||||
accelZ = -kpad->accelerationZ;
|
||||
@@ -445,9 +451,7 @@ static void read_kpad_acc(KPADInside* kpad, KPADSample* status) {
|
||||
return;
|
||||
}
|
||||
{
|
||||
f32 oldX = kpad->status.acc.x;
|
||||
f32 oldY = kpad->status.acc.y;
|
||||
f32 oldZ = kpad->status.acc.z;
|
||||
Vec previous = kpad->status.acc;
|
||||
f32 target;
|
||||
f32 delta;
|
||||
f32 magnitude;
|
||||
@@ -489,52 +493,52 @@ static void read_kpad_acc(KPADInside* kpad, KPADSample* status) {
|
||||
limit = target;
|
||||
}
|
||||
kpad->accelerationZ = limit;
|
||||
delta = kpad->accelerationX - oldX;
|
||||
delta = kpad->accelerationX - previous.x;
|
||||
magnitude = delta;
|
||||
if (magnitude < 0.0f) {
|
||||
magnitude = -magnitude;
|
||||
}
|
||||
if (magnitude == kpad->value9C) {
|
||||
if (magnitude >= kpad->value9C) {
|
||||
blend = 1.0f;
|
||||
} else {
|
||||
blend = magnitude / kpad->value9C;
|
||||
blend *= blend;
|
||||
blend *= blend;
|
||||
}
|
||||
kpad->status.acc.x = oldX + blend * kpad->valueA0 * delta;
|
||||
delta = kpad->accelerationY - oldY;
|
||||
kpad->status.acc.x = previous.x + blend * kpad->valueA0 * delta;
|
||||
delta = kpad->accelerationY - previous.y;
|
||||
magnitude = delta;
|
||||
if (magnitude < 0.0f) {
|
||||
magnitude = -magnitude;
|
||||
}
|
||||
if (magnitude == kpad->value9C) {
|
||||
if (magnitude >= kpad->value9C) {
|
||||
blend = 1.0f;
|
||||
} else {
|
||||
blend = magnitude / kpad->value9C;
|
||||
blend *= blend;
|
||||
blend *= blend;
|
||||
}
|
||||
kpad->status.acc.y = oldY + blend * kpad->valueA0 * delta;
|
||||
delta = kpad->accelerationZ - oldZ;
|
||||
kpad->status.acc.y = previous.y + blend * kpad->valueA0 * delta;
|
||||
delta = kpad->accelerationZ - previous.z;
|
||||
magnitude = delta;
|
||||
if (magnitude < 0.0f) {
|
||||
magnitude = -magnitude;
|
||||
}
|
||||
if (magnitude == kpad->value9C) {
|
||||
if (magnitude >= kpad->value9C) {
|
||||
blend = 1.0f;
|
||||
} else {
|
||||
blend = magnitude / kpad->value9C;
|
||||
blend *= blend;
|
||||
blend *= blend;
|
||||
}
|
||||
kpad->status.acc.z = oldZ + blend * kpad->valueA0 * delta;
|
||||
kpad->status.acc.z = previous.z + blend * kpad->valueA0 * delta;
|
||||
currentX = kpad->status.acc.x;
|
||||
currentY = kpad->status.acc.y;
|
||||
currentZ = kpad->status.acc.z;
|
||||
kpad->status.acc_value = (f32)sqrt(currentX * currentX + (currentY * currentY + currentZ * currentZ));
|
||||
delta = currentX - oldX;
|
||||
currentX = currentY - oldY;
|
||||
currentY = currentZ - oldZ;
|
||||
delta = currentX - previous.x;
|
||||
currentX = currentY - previous.y;
|
||||
currentY = currentZ - previous.z;
|
||||
kpad->status.acc_speed = (f32)sqrt(delta * delta + (currentX * currentX + currentY * currentY));
|
||||
calc_acc_horizon(kpad);
|
||||
calc_acc_vertical(kpad);
|
||||
@@ -548,9 +552,7 @@ static void read_kpad_acc(KPADInside* kpad, KPADSample* status) {
|
||||
{
|
||||
Vec raw;
|
||||
f32* values = (f32*)&raw;
|
||||
f32 oldX;
|
||||
f32 oldY;
|
||||
f32 oldZ;
|
||||
Vec previous;
|
||||
f32 delta;
|
||||
f32 magnitude;
|
||||
f32 blend;
|
||||
@@ -585,55 +587,53 @@ static void read_kpad_acc(KPADInside* kpad, KPADSample* status) {
|
||||
if (kpad->freeStyleAccelRotation != 0) {
|
||||
PSMTXMultVec((const f32 (*)[4])initial_rotation_matrix, &raw, &raw);
|
||||
}
|
||||
oldX = kpad->status.ex_status.fs.acc.x;
|
||||
oldY = kpad->status.ex_status.fs.acc.y;
|
||||
oldZ = kpad->status.ex_status.fs.acc.z;
|
||||
delta = values[0] - oldX;
|
||||
previous = kpad->status.ex_status.fs.acc;
|
||||
delta = values[0] - previous.x;
|
||||
magnitude = delta;
|
||||
if (magnitude < 0.0f) {
|
||||
magnitude = -magnitude;
|
||||
}
|
||||
if (magnitude == kpad->value9C) {
|
||||
if (magnitude >= kpad->value9C) {
|
||||
blend = 1.0f;
|
||||
} else {
|
||||
blend = magnitude / kpad->value9C;
|
||||
blend *= blend;
|
||||
blend *= blend;
|
||||
}
|
||||
kpad->status.ex_status.fs.acc.x = oldX + blend * kpad->valueA0 * delta;
|
||||
delta = values[1] - oldY;
|
||||
kpad->status.ex_status.fs.acc.x = previous.x + blend * kpad->valueA0 * delta;
|
||||
delta = values[1] - previous.y;
|
||||
magnitude = delta;
|
||||
if (magnitude < 0.0f) {
|
||||
magnitude = -magnitude;
|
||||
}
|
||||
if (magnitude == kpad->value9C) {
|
||||
if (magnitude >= kpad->value9C) {
|
||||
blend = 1.0f;
|
||||
} else {
|
||||
blend = magnitude / kpad->value9C;
|
||||
blend *= blend;
|
||||
blend *= blend;
|
||||
}
|
||||
kpad->status.ex_status.fs.acc.y = oldY + blend * kpad->valueA0 * delta;
|
||||
delta = values[2] - oldZ;
|
||||
kpad->status.ex_status.fs.acc.y = previous.y + blend * kpad->valueA0 * delta;
|
||||
delta = values[2] - previous.z;
|
||||
magnitude = delta;
|
||||
if (magnitude < 0.0f) {
|
||||
magnitude = -magnitude;
|
||||
}
|
||||
if (magnitude == kpad->value9C) {
|
||||
if (magnitude >= kpad->value9C) {
|
||||
blend = 1.0f;
|
||||
} else {
|
||||
blend = magnitude / kpad->value9C;
|
||||
blend *= blend;
|
||||
blend *= blend;
|
||||
}
|
||||
kpad->status.ex_status.fs.acc.z = oldZ + blend * kpad->valueA0 * delta;
|
||||
kpad->status.ex_status.fs.acc.z = previous.z + blend * kpad->valueA0 * delta;
|
||||
currentX = kpad->status.ex_status.fs.acc.x;
|
||||
currentY = kpad->status.ex_status.fs.acc.y;
|
||||
currentZ = kpad->status.ex_status.fs.acc.z;
|
||||
kpad->status.ex_status.fs.acc_value = (f32)sqrt(currentX * currentX + (currentY * currentY + currentZ * currentZ));
|
||||
delta = currentX - oldX;
|
||||
currentX = currentY - oldY;
|
||||
currentY = currentZ - oldZ;
|
||||
delta = currentX - previous.x;
|
||||
currentX = currentY - previous.y;
|
||||
currentY = currentZ - previous.z;
|
||||
kpad->status.ex_status.fs.acc_speed = (f32)sqrt(delta * delta + (currentX * currentX + currentY * currentY));
|
||||
}
|
||||
}
|
||||
@@ -669,7 +669,7 @@ static s8 select_2obj_first(KPADInside* kpad) {
|
||||
nx = dx * scale;
|
||||
ny = dy * scale;
|
||||
dist = kpad->value510 * scale;
|
||||
if (dist == kpad->value514 || dist == kp_err_dist_max) {
|
||||
if (dist <= kpad->value514 || dist >= kp_err_dist_max) {
|
||||
continue;
|
||||
}
|
||||
x = kpad->horizonTangentX * nx + kpad->horizonTangentY * ny;
|
||||
@@ -693,12 +693,8 @@ static s8 select_2obj_first(KPADInside* kpad) {
|
||||
if (best == kp_err_first_inpr) {
|
||||
return 0;
|
||||
}
|
||||
((u32*)&kpad->dpdState.candidates[0].x)[0] = ((u32*)first)[0];
|
||||
((u32*)&kpad->dpdState.candidates[0].x)[1] = ((u32*)first)[1];
|
||||
((u32*)&kpad->dpdState.candidates[0].x)[2] = ((u32*)first)[2];
|
||||
((u32*)&kpad->dpdState.candidates[1].x)[0] = ((u32*)second)[0];
|
||||
((u32*)&kpad->dpdState.candidates[1].x)[1] = ((u32*)second)[1];
|
||||
((u32*)&kpad->dpdState.candidates[1].x)[2] = ((u32*)second)[2];
|
||||
kpad->dpdState.candidates[0] = *first;
|
||||
kpad->dpdState.candidates[1] = *second;
|
||||
return 2;
|
||||
}
|
||||
|
||||
@@ -706,7 +702,7 @@ static s8 select_2obj_continue(KPADInside* kpad) {
|
||||
KPADDPDObject* objects = kpad->dpdState.objects;
|
||||
KPADDPDObject* first = 0;
|
||||
KPADDPDObject* second = 0;
|
||||
f32 best = -1.0f;
|
||||
f32 best = 2.0f;
|
||||
s32 i;
|
||||
s32 j;
|
||||
for (i = 0; i < 4; i++) {
|
||||
@@ -734,7 +730,7 @@ static s8 select_2obj_continue(KPADInside* kpad) {
|
||||
distance = scale * kpad->value510;
|
||||
nx = dx * scale;
|
||||
ny = dy * scale;
|
||||
if (distance == kpad->value514 || distance == kp_err_dist_max) {
|
||||
if (distance <= kpad->value514 || distance >= kp_err_dist_max) {
|
||||
continue;
|
||||
}
|
||||
distanceError = distance - kpad->dpdReferenceDistance;
|
||||
@@ -743,19 +739,21 @@ static s8 select_2obj_continue(KPADInside* kpad) {
|
||||
} else {
|
||||
distanceScore = distanceError * kpad->value504;
|
||||
}
|
||||
if (distanceScore == 1.0f) {
|
||||
if (distanceScore >= 1.0f) {
|
||||
continue;
|
||||
}
|
||||
dot = kpad->dpdObjectDirectionX * nx + kpad->dpdObjectDirectionY * ny;
|
||||
reverse = dot < 0.0f;
|
||||
if (reverse) {
|
||||
if (dot < 0.0f) {
|
||||
dot = -dot;
|
||||
reverse = TRUE;
|
||||
} else {
|
||||
reverse = FALSE;
|
||||
}
|
||||
if (dot == kp_err_next_inpr) {
|
||||
if (dot <= kp_err_next_inpr) {
|
||||
continue;
|
||||
}
|
||||
score = distanceScore + ((1.0f - dot) / (1.0f - kp_err_next_inpr));
|
||||
if (score < best || best < 0.0f) {
|
||||
if (score < best) {
|
||||
best = score;
|
||||
if (reverse) {
|
||||
first = &objects[j];
|
||||
@@ -767,7 +765,7 @@ static s8 select_2obj_continue(KPADInside* kpad) {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (best < 0.0f) {
|
||||
if (best == 2.0f) {
|
||||
return 0;
|
||||
}
|
||||
((u32*)&kpad->dpdState.candidates[0].x)[0] = ((u32*)first)[0];
|
||||
@@ -803,7 +801,7 @@ static s8 select_1obj_first(KPADInside* kpad) {
|
||||
f32 rightBound = kpad->value4FC;
|
||||
f32 topBound = kpad->value4F8;
|
||||
f32 bottomBound = kpad->value500;
|
||||
if (left == leftBound || left == rightBound || bottom == topBound || bottom == bottomBound) {
|
||||
if (left <= leftBound || left >= rightBound || bottom <= topBound || bottom >= bottomBound) {
|
||||
if (right > leftBound && right < rightBound && top > topBound && top < bottomBound) {
|
||||
u32* objectWords = (u32*)object;
|
||||
u32* statusWords = (u32*)&kpad->dpdState.candidates[1].x;
|
||||
@@ -816,9 +814,9 @@ static s8 select_1obj_first(KPADInside* kpad) {
|
||||
kpad->dpdState.candidates[0].metadata.bytes.status = 0xFF;
|
||||
return -1;
|
||||
}
|
||||
} else if (right == leftBound || right == rightBound || top == topBound || top == bottomBound) {
|
||||
} else if (right <= leftBound || right >= rightBound || top <= topBound || top >= bottomBound) {
|
||||
u32* objectWords = (u32*)object;
|
||||
u32* statusWords = (u32*)&*(u32*)&kpad->dpdState.candidates[0].metadata.value;
|
||||
u32* statusWords = (u32*)&kpad->dpdState.candidates[0];
|
||||
statusWords[0] = objectWords[0];
|
||||
statusWords[1] = objectWords[1];
|
||||
statusWords[2] = objectWords[2];
|
||||
@@ -861,9 +859,7 @@ static s8 select_1obj_continue(KPADInside* kpad) {
|
||||
if (best == kp_err_near_pos * kp_err_near_pos) {
|
||||
return 0;
|
||||
}
|
||||
((u32*)matchedCandidate)[0] = ((u32*)source)[0];
|
||||
((u32*)matchedCandidate)[1] = ((u32*)source)[1];
|
||||
((u32*)matchedCandidate)[2] = ((u32*)source)[2];
|
||||
*matchedCandidate = *source;
|
||||
{
|
||||
f32 axisX = kpad->horizonTangentX;
|
||||
f32 normX = kpad->horizonAxisX;
|
||||
@@ -936,8 +932,8 @@ static void read_kpad_dpd(KPADInside* kpad, KPADSample* status) {
|
||||
object = objects + 3;
|
||||
for (;;) {
|
||||
if ((s8)object->metadata.bytes.flags >= 0 &&
|
||||
(object->x == kpad->value4F4 || object->x == kpad->value4FC ||
|
||||
object->y == kpad->value4F8 || object->y == kpad->value500)) {
|
||||
(object->x <= kpad->value4F4 || object->x >= kpad->value4FC ||
|
||||
object->y <= kpad->value4F8 || object->y >= kpad->value500)) {
|
||||
object->metadata.bytes.flags |= 1;
|
||||
}
|
||||
if (object == objects) {
|
||||
@@ -970,7 +966,7 @@ static void read_kpad_dpd(KPADInside* kpad, KPADSample* status) {
|
||||
}
|
||||
object--;
|
||||
}
|
||||
if (kpad->status.acc_vertical.x != kp_err_up_inpr) {
|
||||
if (kpad->status.acc_vertical.x > kp_err_up_inpr) {
|
||||
switch (kpad->status.dpd_valid_fg) {
|
||||
case 2:
|
||||
case -2:
|
||||
@@ -1015,7 +1011,7 @@ static void read_kpad_dpd(KPADInside* kpad, KPADSample* status) {
|
||||
axisY = kpad->horizonTangentY * kpad->dpdObjectDirectionX - kpad->horizonTangentX * kpad->dpdObjectDirectionY;
|
||||
kpad->dpdAxisX = axisX;
|
||||
kpad->dpdAxisY = axisY;
|
||||
if (kpad->horizonCircleCount == 0 && axisX * kpad->horizonAxisX + axisY * kpad->horizonAxisY == kp_err_acc_inpr) {
|
||||
if (kpad->horizonCircleCount == 0 && axisX * kpad->horizonAxisX + axisY * kpad->horizonAxisY <= kp_err_acc_inpr) {
|
||||
selected = 0;
|
||||
*(u32*)&kpad->dpdState.candidates[1].metadata.value = 1;
|
||||
*(u32*)&kpad->dpdState.candidates[0].metadata.value = 1;
|
||||
@@ -1114,8 +1110,7 @@ static void read_kpad_stick(KPADInside* kpad, KPADSample* status) {
|
||||
}
|
||||
device = status->device;
|
||||
format = status->dataFormat;
|
||||
switch (device) {
|
||||
case 1:
|
||||
if (device == 1) {
|
||||
if ((u8)(format + 0xFD) <= 2) {
|
||||
if (kpad->flag51E != 0) {
|
||||
kpad->flag51E = 0;
|
||||
@@ -1128,10 +1123,9 @@ static void read_kpad_stick(KPADInside* kpad, KPADSample* status) {
|
||||
}
|
||||
clamp(&extension->fs.stick, status->extension.fs.stickX, status->extension.fs.stickY, kp_fs_fstick_min, kp_fs_fstick_max);
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
} else if (device == 2) {
|
||||
if ((u8)(format + 0xFA) > 2) {
|
||||
break;
|
||||
return;
|
||||
}
|
||||
if (kpad->flag51E != 0) {
|
||||
kpad->flag51E = 0;
|
||||
@@ -1146,26 +1140,23 @@ static void read_kpad_stick(KPADInside* kpad, KPADSample* status) {
|
||||
kpad->repeatCurrent2 = kpad->repeatDelay;
|
||||
}
|
||||
clamp(&extension->cl.lstick, status->extension.cl.lStickX, status->extension.cl.lStickY, kp_cl_stick_min, kp_cl_stick_max);
|
||||
clamp(&extension->cl.rstick, (s8)status->extension.cl.rStickX, (s8)status->extension.cl.rStickY, kp_cl_stick_min, kp_cl_stick_max);
|
||||
if (status->extension.cl.triggerL <= kp_cl_trigger_min) {
|
||||
clamp(&extension->cl.rstick, status->extension.cl.rStickX, status->extension.cl.rStickY, kp_cl_stick_min, kp_cl_stick_max);
|
||||
if (status->extension.cl.triggerL <= (s32)kp_cl_trigger_min) {
|
||||
extension->cl.ltrigger = 0.0f;
|
||||
} else if (status->extension.cl.triggerL >= kp_cl_trigger_max) {
|
||||
} else if (status->extension.cl.triggerL >= (s32)kp_cl_trigger_max) {
|
||||
extension->cl.ltrigger = 1.0f;
|
||||
} else {
|
||||
extension->cl.ltrigger = (f32)(status->extension.cl.triggerL - kp_cl_trigger_min) / (kp_cl_trigger_max - kp_cl_trigger_min);
|
||||
extension->cl.ltrigger = (f32)(status->extension.cl.triggerL - (s32)kp_cl_trigger_min) / ((s32)kp_cl_trigger_max - (s32)kp_cl_trigger_min);
|
||||
}
|
||||
if (status->extension.cl.triggerR <= kp_cl_trigger_min) {
|
||||
if (status->extension.cl.triggerR <= (s32)kp_cl_trigger_min) {
|
||||
extension->cl.rtrigger = 0.0f;
|
||||
break;
|
||||
return;
|
||||
}
|
||||
if (status->extension.cl.triggerR >= kp_cl_trigger_max) {
|
||||
if (status->extension.cl.triggerR >= (s32)kp_cl_trigger_max) {
|
||||
extension->cl.rtrigger = 1.0f;
|
||||
break;
|
||||
return;
|
||||
}
|
||||
extension->cl.rtrigger = (f32)(status->extension.cl.triggerR - kp_cl_trigger_min) / (kp_cl_trigger_max - kp_cl_trigger_min);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
extension->cl.rtrigger = (f32)(status->extension.cl.triggerR - (s32)kp_cl_trigger_min) / ((s32)kp_cl_trigger_max - (s32)kp_cl_trigger_min);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1310,7 +1301,7 @@ static void calc_dpd_variable(KPADInside* kpad, s8 valid) {
|
||||
f32 dy = y - kpad->status.horizon.y;
|
||||
f32 length = (f32)sqrt(dx * dx + dy * dy);
|
||||
f32 amount;
|
||||
if (length == kpad->value8C) {
|
||||
if (length >= kpad->value8C) {
|
||||
amount = 1.0f;
|
||||
} else {
|
||||
amount = length / kpad->value8C;
|
||||
@@ -1344,7 +1335,7 @@ static void calc_dpd_variable(KPADInside* kpad, s8 valid) {
|
||||
if (magnitude < 0.0f) {
|
||||
magnitude = -magnitude;
|
||||
}
|
||||
if (magnitude == kpad->value94) {
|
||||
if (magnitude >= kpad->value94) {
|
||||
amount = 1.0f;
|
||||
} else {
|
||||
amount = magnitude / kpad->value94;
|
||||
@@ -1380,7 +1371,7 @@ static void calc_dpd_variable(KPADInside* kpad, s8 valid) {
|
||||
f32 dy = y - kpad->status.pos.y;
|
||||
f32 length = (f32)sqrt(dx * dx + dy * dy);
|
||||
f32 amount;
|
||||
if (length == kpad->posParamX) {
|
||||
if (length >= kpad->posParamX) {
|
||||
amount = 1.0f;
|
||||
} else {
|
||||
amount = length / kpad->posParamX;
|
||||
@@ -1416,7 +1407,7 @@ void KPADSetControlDpdCallback(s32 chan, KPADCallback* callback) {
|
||||
s32 KPADRead(s32 chan, KPADStatus* statuses, u32 count) {
|
||||
KPADInside* kpad = &inside_kpads[chan];
|
||||
s32 probe;
|
||||
u16 interruptState;
|
||||
BOOL interruptState;
|
||||
u32 available;
|
||||
u32 ringCount;
|
||||
s32 start;
|
||||
@@ -1774,6 +1765,9 @@ static void KPADiSamplingCallback(s32 chan) {
|
||||
kpad->sensorHeightPending = 0;
|
||||
}
|
||||
switch (device) {
|
||||
case 0:
|
||||
case 0xFB:
|
||||
case 0xFC:
|
||||
case 0xFF:
|
||||
tier = 0;
|
||||
break;
|
||||
|
||||
@@ -1,20 +1,44 @@
|
||||
#define BS2_UPDATE_SOURCE
|
||||
#include "BS2/BS2Update.h"
|
||||
#include "BS2/BS2.h"
|
||||
#include <private/os.h>
|
||||
#include <private/es.h>
|
||||
#include <private/nand.h>
|
||||
#include <revolution/sc.h>
|
||||
#include <revolution/dvd.h>
|
||||
|
||||
#include <string.h>
|
||||
|
||||
typedef struct UpdateThreadData {
|
||||
OSThread thread;
|
||||
u8 stack[4096];
|
||||
} UpdateThreadData;
|
||||
|
||||
static u32 Flags0[BS2_UPDATE_ENTRY_COUNT];
|
||||
static u32 Flags1[BS2_UPDATE_ENTRY_COUNT];
|
||||
static UpdateThreadData Thread;
|
||||
static BS2UpdateHeader UpdateHeader0 ALIGN32;
|
||||
static BS2UpdateHeader UpdateHeader1 ALIGN32;
|
||||
|
||||
#define UPDATE_DISC_ENTRIES ((BS2UpdateEntry*)0x80480000)
|
||||
|
||||
s32 WADCheckImport(u64 titleId, u16 titleVersion);
|
||||
s32 WADImportDVDForBS(const char* path, void* buffer, u32 length);
|
||||
s32 WADImportDVDExForBS(const char* path, void* buffer, u32 length);
|
||||
|
||||
static BS2UpdateEntry* pEntries;
|
||||
static u32 EntriesCount;
|
||||
static u32* pFlags;
|
||||
static void* MemAllocator;
|
||||
int State;
|
||||
BS2UpdateEntry* CurrentEntry;
|
||||
static u32 lbl_81698B10;
|
||||
static BOOL lbl_81698B14;
|
||||
static u32 lbl_81698B18;
|
||||
static u32 lbl_81698B1C;
|
||||
static u32 RebootRequired;
|
||||
static BOOL ContainsSeatTitles;
|
||||
static u32 UpdateImportState;
|
||||
static u32 UpdateImportResult;
|
||||
u32 StartUpdate;
|
||||
u32 CancelUpdate;
|
||||
static f32 UpdateProgress;
|
||||
static u32 UpdateProgress;
|
||||
static s32 rc;
|
||||
static u64 VersionIOS;
|
||||
static u32 VersionMEM2;
|
||||
@@ -32,6 +56,446 @@ char* getSuffix(const char* path) {
|
||||
}
|
||||
#pragma force_active off
|
||||
|
||||
static void* UpdateThread(void* argument);
|
||||
|
||||
void BS2UpdateInit(void* allocator) {
|
||||
BS2Report("initialize BS2Update\n");
|
||||
ConsoleType = OSGetConsoleType();
|
||||
VersionES = __OSGetHollywoodRev();
|
||||
VersionMEM2 = OSGetPhysicalMem2Size();
|
||||
__OSGetIOSRev((OSIOSRev*)&VersionIOS);
|
||||
BS2Report("Console Type : %08X\n", ConsoleType);
|
||||
BS2Report("Hollywood Rev : %08X\n", VersionES);
|
||||
BS2Report("MEM2 Size : %08X\n", VersionMEM2);
|
||||
MemAllocator = allocator;
|
||||
State = 0;
|
||||
CurrentEntry = NULL;
|
||||
pEntries = NULL;
|
||||
EntriesCount = 0;
|
||||
memset(UPDATE_DISC_ENTRIES, 0, 0x40000);
|
||||
memset(EntriesToImport, 0, 0x40000);
|
||||
memset(Flags1, 0, sizeof(Flags1));
|
||||
BS2Report("Create update thread\n");
|
||||
OSCreateThread(&Thread.thread, UpdateThread, NULL, Thread.stack + sizeof(Thread.stack),
|
||||
sizeof(Thread.stack), 31, 1);
|
||||
OSResumeThread(&Thread.thread);
|
||||
}
|
||||
|
||||
static void* UpdateThread(void* argument) {
|
||||
BOOL missingFile;
|
||||
u32 selectedCount;
|
||||
u32 requiredBytes;
|
||||
u32 requiredInodes;
|
||||
u32 channelCount;
|
||||
u32 freeChannels;
|
||||
u32 freeBlocks;
|
||||
u32 freeInodes;
|
||||
u32 ticketCount;
|
||||
char productArea[8];
|
||||
u64 titleId;
|
||||
char updatePath[32];
|
||||
char seatPath[32];
|
||||
DVDFileInfo file;
|
||||
u32 index;
|
||||
BS2UpdateEntry* entry;
|
||||
BS2UpdateEntry* seatEntries;
|
||||
BS2UpdateEntry* selectedSeats;
|
||||
u32 selectedSeatCount;
|
||||
BOOL regionValid;
|
||||
u8 titleRegion;
|
||||
|
||||
BS2Report("Start update thread\n");
|
||||
missingFile = FALSE;
|
||||
selectedCount = 0;
|
||||
requiredBytes = 0;
|
||||
requiredInodes = 0;
|
||||
channelCount = 0;
|
||||
freeChannels = 0;
|
||||
freeBlocks = 0;
|
||||
freeInodes = 0;
|
||||
selectedSeatCount = 0;
|
||||
StartUpdate = 0;
|
||||
CancelUpdate = 0;
|
||||
State = 0;
|
||||
ContainsSeatTitles = FALSE;
|
||||
if (ES_GetTitleId(&titleId) != 0) {
|
||||
regionValid = FALSE;
|
||||
} else {
|
||||
titleRegion = (u8)titleId;
|
||||
regionValid = FALSE;
|
||||
switch (SCGetProductArea()) {
|
||||
case 0:
|
||||
case 5:
|
||||
if (titleRegion == 'J' || titleRegion == 'D') {
|
||||
regionValid = TRUE;
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
if (titleRegion == 'E' || titleRegion == 'D') {
|
||||
regionValid = TRUE;
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
if (titleRegion == 'P' || titleRegion == 'D') {
|
||||
regionValid = TRUE;
|
||||
}
|
||||
break;
|
||||
case 6:
|
||||
if (titleRegion == 'K') {
|
||||
regionValid = TRUE;
|
||||
}
|
||||
break;
|
||||
case 11:
|
||||
if (titleRegion == 'C') {
|
||||
regionValid = TRUE;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!regionValid) {
|
||||
BS2Report("Error: failed to check product region.");
|
||||
goto no_updates;
|
||||
}
|
||||
if (!SCGetProductAreaString(productArea, sizeof(productArea))) {
|
||||
BS2Report("Error: failed to get product information.");
|
||||
goto no_updates;
|
||||
}
|
||||
strcpy(updatePath, "__update.inf");
|
||||
strcat(updatePath, "-");
|
||||
strcat(updatePath, productArea);
|
||||
if (DVDConvertPathToEntrynum(updatePath) < 0) {
|
||||
switch (SCGetProductArea()) {
|
||||
case 0:
|
||||
case 1:
|
||||
case 2:
|
||||
case 6:
|
||||
case 11:
|
||||
strcpy(updatePath, "__update.inf");
|
||||
if (DVDConvertPathToEntrynum(updatePath) < 0) {
|
||||
BS2Report("Error: update information file is not found.");
|
||||
goto no_updates;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
BS2Report("Error: update information file is not found.");
|
||||
goto no_updates;
|
||||
}
|
||||
}
|
||||
BS2Report("%s is found.\n", updatePath);
|
||||
if (!DVDOpen(updatePath, &file)) {
|
||||
BS2Report("Error: failed to open update information file.");
|
||||
goto no_updates;
|
||||
}
|
||||
if (DVDReadPrio(&file, &UpdateHeader0, sizeof(UpdateHeader0), 0, 2) < 0) {
|
||||
BS2Report("Error: failed to read update information header.");
|
||||
goto no_updates;
|
||||
}
|
||||
if (UpdateHeader0.wadCount == 0) {
|
||||
BS2Report("Error: no entry.");
|
||||
goto no_updates;
|
||||
}
|
||||
if (UpdateHeader0.wadCount > 32) {
|
||||
BS2Report("Error: found too many entries.");
|
||||
goto no_updates;
|
||||
}
|
||||
UpdateHeader0.wadCount += UpdateHeader0.extraCount;
|
||||
if (UpdateHeader0.wadCount > BS2_UPDATE_ENTRY_COUNT) {
|
||||
BS2Report("Error: found too many extra entries.");
|
||||
goto no_updates;
|
||||
}
|
||||
if (DVDReadPrio(&file, UPDATE_DISC_ENTRIES, UpdateHeader0.wadCount * sizeof(BS2UpdateEntry), 32, 2) < 0) {
|
||||
BS2Report("Error: failed to read update information.");
|
||||
goto no_updates;
|
||||
}
|
||||
for (index = 0; index < UpdateHeader0.wadCount; index++) {
|
||||
entry = &UPDATE_DISC_ENTRIES[index];
|
||||
if ((entry->attr & 1) == 0) {
|
||||
continue;
|
||||
}
|
||||
switch (OSGetPhysicalMem2Size()) {
|
||||
case 0x4000000:
|
||||
if ((entry->depend & 1) == 0) {
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
case 0x8000000:
|
||||
if ((entry->depend & 2) == 0) {
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
BS2Report("Cannot get physical MEM2 size\n");
|
||||
State = 5;
|
||||
goto no_updates;
|
||||
}
|
||||
if (DVDOpen(entry->path, &file) < 0) {
|
||||
BS2Report("%s is not found\n", entry->path);
|
||||
missingFile = TRUE;
|
||||
continue;
|
||||
}
|
||||
entry->size = file.length;
|
||||
if (entry->type == 0) {
|
||||
selectedCount++;
|
||||
} else if (WADCheckImport(entry->titleId, entry->titleVersion) == 0) {
|
||||
BS2Report("%s is already installed\n", entry->path);
|
||||
Flags1[index] = 0;
|
||||
} else {
|
||||
BS2Report("%s\n", entry->path);
|
||||
memcpy(&EntriesToImport[selectedCount], entry, sizeof(*entry));
|
||||
selectedCount++;
|
||||
Flags1[index] = 1;
|
||||
}
|
||||
}
|
||||
strcpy(seatPath, "__seatholder.inf");
|
||||
strcat(seatPath, "-");
|
||||
strcat(seatPath, productArea);
|
||||
if (DVDConvertPathToEntrynum(seatPath) < 0) {
|
||||
switch (SCGetProductArea()) {
|
||||
case 0:
|
||||
case 1:
|
||||
case 2:
|
||||
case 6:
|
||||
case 11:
|
||||
strcpy(seatPath, "__seatholder.inf");
|
||||
if (DVDConvertPathToEntrynum(seatPath) < 0) {
|
||||
BS2Report("Error: update seatholder information file is not found.");
|
||||
goto seats_done;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
BS2Report("Error: update seatholder information file is not found.");
|
||||
goto seats_done;
|
||||
}
|
||||
}
|
||||
BS2Report("%s is found.\n", seatPath);
|
||||
if (!DVDOpen(seatPath, &file)) {
|
||||
BS2Report("Error: failed to open update information file.");
|
||||
goto seats_done;
|
||||
}
|
||||
if (DVDReadPrio(&file, &UpdateHeader1, sizeof(UpdateHeader1), 0, 2) < 0) {
|
||||
BS2Report("Error: failed to read update information header.");
|
||||
goto seats_done;
|
||||
}
|
||||
if ((UpdateHeader1.wadCount | UpdateHeader1.extraCount) == 0) {
|
||||
BS2Report("Error: no entry.");
|
||||
goto seats_done;
|
||||
}
|
||||
UpdateHeader1.wadCount += UpdateHeader1.extraCount;
|
||||
if (UpdateHeader0.wadCount + UpdateHeader1.wadCount > BS2_UPDATE_ENTRY_COUNT) {
|
||||
BS2Report("Error: found too many extra entries.");
|
||||
goto seats_done;
|
||||
}
|
||||
seatEntries = &UPDATE_DISC_ENTRIES[UpdateHeader0.wadCount];
|
||||
selectedSeats = &EntriesToImport[selectedCount];
|
||||
if (DVDReadPrio(&file, seatEntries, UpdateHeader1.wadCount * sizeof(BS2UpdateEntry), 32, 2) < 0) {
|
||||
BS2Report("Error: failed to read update information.");
|
||||
goto seats_done;
|
||||
}
|
||||
for (index = 0; index < UpdateHeader1.wadCount; index++) {
|
||||
entry = &seatEntries[index];
|
||||
OSReport("type = %d\n", entry->type);
|
||||
OSReport("attribute = %d\n", entry->attr);
|
||||
OSReport("size = %d\n", entry->size);
|
||||
OSReport("inodes = %d\n", entry->inodes);
|
||||
OSReport("dependency = %d\n", entry->depend);
|
||||
OSReport("path = %64s\n", entry->path);
|
||||
OSReport("titleId = %llx\n", entry->titleId);
|
||||
OSReport("titleVersion = %d\n", entry->titleVersion);
|
||||
Flags0[index] = 0;
|
||||
if ((entry->attr & 1) == 0) {
|
||||
continue;
|
||||
}
|
||||
switch (OSGetPhysicalMem2Size()) {
|
||||
case 0x4000000:
|
||||
if ((entry->depend & 1) == 0) {
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
case 0x8000000:
|
||||
if ((entry->depend & 2) == 0) {
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
BS2Report("Cannot get physical MEM2 size\n");
|
||||
State = 5;
|
||||
goto seats_done;
|
||||
}
|
||||
if (DVDOpen(entry->path, &file) < 0) {
|
||||
BS2Report("%s is not found\n", entry->path);
|
||||
missingFile = TRUE;
|
||||
continue;
|
||||
}
|
||||
if (entry->type != 7) {
|
||||
continue;
|
||||
}
|
||||
if (ES_GetTicketViews(entry->titleId, NULL, &ticketCount) != 0) {
|
||||
BS2Report("Faild to get eTicket views.\n");
|
||||
continue;
|
||||
}
|
||||
if (ticketCount != 0) {
|
||||
continue;
|
||||
}
|
||||
if (SCGetWwwRestriction() && ((u32)entry->titleId & 0xFFFFFF00) == 0x48414400) {
|
||||
Flags0[index] = 0;
|
||||
OSReport("Internet CH is restricted!\n");
|
||||
continue;
|
||||
}
|
||||
if (SCGetProductGameRegion() == 2 && (SCGetSimpleAddressID() >> 24) != 110 &&
|
||||
(u32)entry->titleId == 0x48434A50) {
|
||||
Flags0[index] = 0;
|
||||
OSReport("BBCi CH is only for UK!\n");
|
||||
continue;
|
||||
}
|
||||
BS2Report("%s\n", entry->path);
|
||||
memcpy(&selectedSeats[selectedSeatCount], entry, sizeof(*entry));
|
||||
Flags0[index] = 1;
|
||||
channelCount++;
|
||||
selectedSeatCount++;
|
||||
requiredBytes += entry->size;
|
||||
requiredInodes += entry->inodes;
|
||||
}
|
||||
if (channelCount != 0) {
|
||||
if (!SCGetFreeChannelAppCount(&freeChannels)) {
|
||||
BS2Report("Error: cannot get channel count.");
|
||||
goto seats_done;
|
||||
}
|
||||
if (NANDSecretGetUserAvailableArea(&freeBlocks, &freeInodes) != 0) {
|
||||
BS2Report("Error: cannot get free user blocks.");
|
||||
goto seats_done;
|
||||
}
|
||||
if ((freeBlocks << 14) < 0x1004000 || requiredBytes > (freeBlocks << 14) - 0x1004000) {
|
||||
BS2Report("Sufficient user blocks doesn't exist.");
|
||||
goto seats_done;
|
||||
}
|
||||
if (freeInodes < requiredInodes + 36) {
|
||||
BS2Report("Sufficient user inodes doesn't exist.");
|
||||
goto seats_done;
|
||||
}
|
||||
if (channelCount > freeChannels) {
|
||||
BS2Report("No enough blank channel.");
|
||||
goto seats_done;
|
||||
}
|
||||
for (index = 0; index < UpdateHeader1.wadCount; index++) {
|
||||
Flags1[UpdateHeader0.wadCount + index] = Flags0[index];
|
||||
if (Flags0[index] == 1) {
|
||||
selectedCount++;
|
||||
}
|
||||
}
|
||||
ContainsSeatTitles = TRUE;
|
||||
UpdateHeader0.wadCount += UpdateHeader1.wadCount;
|
||||
}
|
||||
seats_done:
|
||||
if (missingFile) {
|
||||
State = 5;
|
||||
goto no_updates;
|
||||
}
|
||||
pEntries = EntriesToImport;
|
||||
pFlags = Flags1;
|
||||
for (index = 0; index < UpdateHeader0.wadCount; index++) {
|
||||
if (Flags1[index] == 1) {
|
||||
entry = &UPDATE_DISC_ENTRIES[index];
|
||||
BS2Report("File: %s\n", entry->path);
|
||||
BS2Report("Name: %s\n", entry->dataName);
|
||||
BS2Report("Info: %s\n", entry->dataMeta);
|
||||
BS2Report("Attr: %s\n", (entry->attr & 1) ? "Critical" : "Non critical");
|
||||
BS2Report(" %s\n", (entry->attr & 2) ? "Reboot" : "Not reboot");
|
||||
}
|
||||
}
|
||||
goto selection_done;
|
||||
no_updates:
|
||||
selectedCount = 0;
|
||||
selection_done:
|
||||
EntriesCount = selectedCount;
|
||||
if (EntriesCount == 0) {
|
||||
State = 5;
|
||||
StartUpdate = 0;
|
||||
CancelUpdate = 0;
|
||||
BS2Report("Return update thread\n");
|
||||
return NULL;
|
||||
}
|
||||
State = 1;
|
||||
UpdateProgress = 0;
|
||||
for (;;) {
|
||||
if (StartUpdate != 0) {
|
||||
if (UpdateProgress < UpdateHeader0.wadCount) {
|
||||
BS2Report("Progress : %d\n", UpdateProgress);
|
||||
if (Flags1[UpdateProgress] == 1) {
|
||||
BS2Report("Import : %s\n", UPDATE_DISC_ENTRIES[UpdateProgress].path);
|
||||
State = 2;
|
||||
CurrentEntry = &UPDATE_DISC_ENTRIES[UpdateProgress];
|
||||
if (UPDATE_DISC_ENTRIES[UpdateProgress].type == 0) {
|
||||
UpdateProgress++;
|
||||
continue;
|
||||
}
|
||||
if (UPDATE_DISC_ENTRIES[UpdateProgress].type == 1) {
|
||||
BS2Report("BS2WADImportDVD : ");
|
||||
index = UpdateProgress;
|
||||
if (strcmp(getSuffix(UPDATE_DISC_ENTRIES[index].path), "wad") == 0) {
|
||||
rc = WADImportDVDForBS(UPDATE_DISC_ENTRIES[index].path, (void*)BS2_UPDATE_ADDRESS, 0x80000);
|
||||
} else {
|
||||
rc = 0;
|
||||
}
|
||||
BS2Report("rc = %d\n", rc);
|
||||
if (rc != 0) {
|
||||
NANDLoggingAddMessageAsync(NULL, "BS2 error. [%d] titleID: 0x%016llx %s line: %d",
|
||||
rc, UPDATE_DISC_ENTRIES[UpdateProgress].titleId, "BS2Update.c", 0x3F5);
|
||||
State = 5;
|
||||
UpdateProgress = UpdateHeader0.wadCount + 1;
|
||||
break;
|
||||
}
|
||||
if ((UPDATE_DISC_ENTRIES[UpdateProgress].attr & 2) != 0) {
|
||||
RebootRequired = 1;
|
||||
}
|
||||
UpdateProgress++;
|
||||
} else {
|
||||
BS2Report("BS2WADImportDVDEx : ");
|
||||
index = UpdateProgress;
|
||||
if (strcmp(getSuffix(UPDATE_DISC_ENTRIES[index].path), "wad") == 0) {
|
||||
rc = WADImportDVDExForBS(UPDATE_DISC_ENTRIES[index].path, (void*)BS2_UPDATE_ADDRESS, 0x80000);
|
||||
} else {
|
||||
rc = 0;
|
||||
}
|
||||
BS2Report("rc = %d\n", rc);
|
||||
if (rc != 0) {
|
||||
NANDLoggingAddMessageAsync(NULL, "BS2 error. [%d] titleID: 0x%016llx %s line: %d",
|
||||
rc, UPDATE_DISC_ENTRIES[UpdateProgress].titleId, "BS2Update.c", 0x40F);
|
||||
State = 5;
|
||||
UpdateProgress = UpdateHeader0.wadCount + 1;
|
||||
break;
|
||||
}
|
||||
if ((UPDATE_DISC_ENTRIES[UpdateProgress].attr & 2) != 0) {
|
||||
RebootRequired = 1;
|
||||
}
|
||||
UpdateProgress++;
|
||||
}
|
||||
} else {
|
||||
BS2Report("Not import : %s\n", UPDATE_DISC_ENTRIES[UpdateProgress].path);
|
||||
UpdateProgress++;
|
||||
}
|
||||
} else if (UpdateProgress == UpdateHeader0.wadCount) {
|
||||
if (RebootRequired != 0) {
|
||||
State = 4;
|
||||
} else {
|
||||
State = 3;
|
||||
}
|
||||
UpdateProgress++;
|
||||
CurrentEntry = NULL;
|
||||
break;
|
||||
}
|
||||
} else if (CancelUpdate != 0) {
|
||||
State = 6;
|
||||
break;
|
||||
}
|
||||
}
|
||||
StartUpdate = 0;
|
||||
CancelUpdate = 0;
|
||||
UpdateImportState = 0;
|
||||
UpdateImportResult = 0;
|
||||
BS2Report("Return update thread\n");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int BS2UpdateState() {
|
||||
return State;
|
||||
}
|
||||
@@ -57,5 +521,5 @@ BS2UpdateEntry* BS2GetCurrentEntry() {
|
||||
}
|
||||
|
||||
BOOL BS2ContainsSeatTitles() {
|
||||
return lbl_81698B14;
|
||||
return ContainsSeatTitles;
|
||||
}
|
||||
|
||||
337
tools/decomp-assist/sol-high-partial.attempts.md
Normal file
337
tools/decomp-assist/sol-high-partial.attempts.md
Normal file
@@ -0,0 +1,337 @@
|
||||
libs/RVL_SDK/src/kpad/KPAD get_ring_buffer_by_kpad1_style: declare interrupt state before loop index; (99.583336, 7, 96, 96, 11, '1324', '32') -> (99.270836, 12, 96, 96, 11, '1324', '32')
|
||||
libs/RVL_SDK/src/kpad/KPAD get_ring_buffer_by_kpad1_style: declare channel copy before kpad; (99.583336, 7, 96, 96, 11, '1324', '32') -> (99.583336, 7, 96, 96, 11, '1324', '32')
|
||||
libs/RVL_SDK/src/kpad/KPAD get_ring_buffer_by_kpad1_style: scope loop index at for; (99.583336, 7, 96, 96, 11, '1324', '32') -> BUILD FAIL .c -o build/43U/src/libs/RVL_SDK/src/kpad && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RVL_SDK/src/kpad/KPAD.d build/43U/src/libs/RVL_SDK/src/kpad/KPAD.d
|
||||
### mwcceppc.exe Compiler:
|
||||
# File: libs\RVL_SDK\src\kpad\KPAD.c
|
||||
# -------------------------------------
|
||||
# 197: for (u32 i = 0; i < 16; i++) {
|
||||
# Error: ^^^
|
||||
# (10141) expression syntax error
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
ninja: build stopped: subcommand failed.
|
||||
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: reuse normalizedX for vertical blend; (99.72603, 3, 73, 73, 11, '1324', '32') -> (99.65753, 5, 73, 73, 11, '1324', '32')
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: reuse accelZ for vertical blend; (99.72603, 3, 73, 73, 11, '1324', '32') -> (99.65753, 5, 73, 73, 11, '1324', '32')
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: declare vertical blend before horizontal; (99.72603, 3, 73, 73, 11, '1324', '32') -> (99.65753, 5, 73, 73, 11, '1324', '32')
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADGetProjectionPos: multiply height then coefficient on left; (96.57895, 9, 19, 19, 11, '1324', '32') -> (95.52631, 10, 19, 19, 11, '1324', '32')
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADGetProjectionPos: height operand before half coefficient; (96.57895, 9, 19, 19, 11, '1324', '32') -> (96.052635, 9, 19, 19, 11, '1324', '32')
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADGetProjectionPos: compute scaled before floats; (96.57895, 9, 19, 19, 11, '1324', '32') -> (95.0, 13, 19, 19, 11, '1324', '32')
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: reuse horizontal magnitude after its final read; (99.72603, 3, 73, 73, 11, 1324, 32) -> (99.10959, 11, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: reuse blend after its final read; (99.72603, 3, 73, 73, 11, 1324, 32) -> (99.65753, 5, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: compute vertical before horizontal interpolation; (99.72603, 3, 73, 73, 11, 1324, 32) -> (99.15069, 10, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADGetProjectionPos: keep double expression in output and left scale coefficient; (96.57895, 9, 19, 19, 11, 1324, 32) -> (96.31579, 10, 19, 19, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADGetProjectionPos: reuse height for halfHeight with left coefficient; (96.57895, 9, 19, 19, 11, 1324, 32) -> BUILD FAIL c/kpad/KPAD.c -o build/43U/src/libs/RVL_SDK/src/kpad && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RVL_SDK/src/kpad/KPAD.d build/43U/src/libs/RVL_SDK/src/kpad/KPAD.d
|
||||
### mwcceppc.exe Compiler:
|
||||
# File: libs\RVL_SDK\src\kpad\KPAD.c
|
||||
# -------------------------------------
|
||||
# 1248: f32 x = src->x * height;
|
||||
# Error: ^^^
|
||||
# (10141) expression syntax error
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
ninja: build stopped: subcommand failed.
|
||||
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADGetProjectionPos: declare scaled after output floats with left coefficient; (96.57895, 9, 19, 19, 11, 1324, 32) -> (95.52631, 11, 19, 19, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD get_ring_buffer_by_kpad1_style: use signed sample loop index; (99.583336, 7, 96, 96, 11, 1324, 32) -> (99.010414, 7, 96, 96, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD get_ring_buffer_by_kpad1_style: declare loop index after latest; (99.583336, 7, 96, 96, 11, 1324, 32) -> (98.958336, 17, 96, 96, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD get_ring_buffer_by_kpad1_style: declare loop index after type; (99.583336, 7, 96, 96, 11, 1324, 32) -> (98.697914, 21, 96, 96, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD get_ring_buffer_by_kpad1_style: scope interrupt state and loop within process; (99.583336, 7, 96, 96, 11, 1324, 32) -> (99.322914, 12, 96, 96, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_button_repeat: load current before threshold and narrow next only in wrap; (95.50495, 16, 101, 101, 11, 1324, 32) -> (99.653465, 6, 101, 101, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_button_repeat: reload updated threshold inside wrap; (95.50495, 16, 101, 101, 11, 1324, 32) -> (99.653465, 6, 101, 101, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_button_repeat: load current first and scope narrowing within wrap; (95.50495, 16, 101, 101, 11, 1324, 32) -> (95.39604, 17, 101, 101, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 0; (99.72603, 3, 73, 73, 11, 1324, 32) -> (97.945206, 21, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 1; (99.72603, 3, 73, 73, 11, 1324, 32) -> (100.0, 0, 73, 73, 12, 1616, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 2; (99.72603, 3, 73, 73, 11, 1324, 32) -> (99.246574, 9, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 3; (99.72603, 3, 73, 73, 11, 1324, 32) -> (98.08219, 20, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 4; (99.72603, 3, 73, 73, 11, 1324, 32) -> (98.630135, 15, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 5; (99.72603, 3, 73, 73, 11, 1324, 32) -> (100.0, 0, 73, 73, 12, 1616, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 6; (99.72603, 3, 73, 73, 11, 1324, 32) -> (98.21918, 18, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 7; (99.72603, 3, 73, 73, 11, 1324, 32) -> (98.35616, 17, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 8; (99.72603, 3, 73, 73, 11, 1324, 32) -> (98.9726, 11, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 9; (99.72603, 3, 73, 73, 11, 1324, 32) -> (99.65753, 5, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 10; (99.72603, 3, 73, 73, 11, 1324, 32) -> (98.42466, 15, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 11; (99.72603, 3, 73, 73, 11, 1324, 32) -> (99.38356, 8, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 12; (99.72603, 3, 73, 73, 11, 1324, 32) -> (99.65753, 5, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 13; (99.72603, 3, 73, 73, 11, 1324, 32) -> (100.0, 0, 73, 73, 12, 1616, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 14; (99.72603, 3, 73, 73, 11, 1324, 32) -> (99.38356, 7, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 15; (99.72603, 3, 73, 73, 11, 1324, 32) -> (98.42466, 15, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 16; (99.72603, 3, 73, 73, 11, 1324, 32) -> (98.35616, 18, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 17; (99.72603, 3, 73, 73, 11, 1324, 32) -> (99.38356, 8, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 18; (99.72603, 3, 73, 73, 11, 1324, 32) -> (98.630135, 15, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 19; (99.72603, 3, 73, 73, 11, 1324, 32) -> (99.45206, 6, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 20; (99.72603, 3, 73, 73, 11, 1324, 32) -> (98.630135, 15, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 21; (99.72603, 3, 73, 73, 11, 1324, 32) -> (98.9726, 11, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 22; (99.72603, 3, 73, 73, 11, 1324, 32) -> (99.65753, 5, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 23; (99.72603, 3, 73, 73, 11, 1324, 32) -> (98.9726, 12, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 24; (99.72603, 3, 73, 73, 11, 1324, 32) -> (98.9726, 12, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 25; (99.72603, 3, 73, 73, 11, 1324, 32) -> (98.15069, 18, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 26; (99.72603, 3, 73, 73, 11, 1324, 32) -> (98.21918, 18, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 27; (99.72603, 3, 73, 73, 11, 1324, 32) -> (100.0, 0, 73, 73, 12, 1616, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 28; (99.72603, 3, 73, 73, 11, 1324, 32) -> (99.246574, 9, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 29; (99.72603, 3, 73, 73, 11, 1324, 32) -> (99.38356, 7, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 30; (99.72603, 3, 73, 73, 11, 1324, 32) -> (99.45206, 6, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 31; (99.72603, 3, 73, 73, 11, 1324, 32) -> (98.42466, 15, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 32; (99.72603, 3, 73, 73, 11, 1324, 32) -> (98.35616, 17, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 33; (99.72603, 3, 73, 73, 11, 1324, 32) -> (98.630135, 15, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 34; (99.72603, 3, 73, 73, 11, 1324, 32) -> (99.45206, 6, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 35; (99.72603, 3, 73, 73, 11, 1324, 32) -> (98.08219, 20, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_button_repeat: independent extension temporaries; (99.653465, 6, 101, 101, 12, 1616, 32) -> BUILD FAIL DK/src/kpad/KPAD.c -o build/43U/src/libs/RVL_SDK/src/kpad && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RVL_SDK/src/kpad/KPAD.d build/43U/src/libs/RVL_SDK/src/kpad/KPAD.d
|
||||
### mwcceppc.exe Compiler:
|
||||
# File: libs\RVL_SDK\src\kpad\KPAD.c
|
||||
# -------------------------------------
|
||||
# 301: u16 extensionCount;
|
||||
# Error: ^^^
|
||||
# (10141) expression syntax error
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
ninja: build stopped: subcommand failed.
|
||||
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_button_repeat: independent extension temporaries reversed; (99.653465, 6, 101, 101, 12, 1616, 32) -> BUILD FAIL SDK/src/kpad/KPAD.c -o build/43U/src/libs/RVL_SDK/src/kpad && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RVL_SDK/src/kpad/KPAD.d build/43U/src/libs/RVL_SDK/src/kpad/KPAD.d
|
||||
### mwcceppc.exe Compiler:
|
||||
# File: libs\RVL_SDK\src\kpad\KPAD.c
|
||||
# -------------------------------------
|
||||
# 301: u32 extensionNext;
|
||||
# Error: ^^^
|
||||
# (10141) expression syntax error
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
ninja: build stopped: subcommand failed.
|
||||
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_button_repeat: separate extension scope temporaries; (99.653465, 6, 101, 101, 12, 1616, 32) -> (100.0, 0, 101, 101, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADGetProjectionPos: ['scaled', 'height', 'halfHeight', 'x', 'y']; (96.57895, 9, 19, 19, 13, 2020, 32) -> (95.52631, 10, 19, 19, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADGetProjectionPos: ['height', 'halfHeight', 'x', 'y', 'scaled']; (96.57895, 9, 19, 19, 13, 2020, 32) -> (95.52631, 11, 19, 19, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADGetProjectionPos: ['height', 'halfHeight', 'scaled', 'x', 'y']; (96.57895, 9, 19, 19, 13, 2020, 32) -> (95.52631, 11, 19, 19, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADGetProjectionPos: ['height', 'scaled', 'halfHeight', 'x', 'y']; (96.57895, 9, 19, 19, 13, 2020, 32) -> (95.52631, 11, 19, 19, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADGetProjectionPos: ['scaled', 'x', 'y', 'height', 'halfHeight']; (96.57895, 9, 19, 19, 13, 2020, 32) -> (95.52631, 10, 19, 19, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_horizon: restore inclusive radius test from fcmpo/cror; (93.069305, 87, 99, 101, 13, 2020, 32) -> (95.89109, 87, 100, 101, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_horizon: inclusive radius and reuse targetX for nextY; (93.069305, 87, 99, 101, 13, 2020, 32) -> (95.49505, 87, 100, 101, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_horizon: inclusive radius and normalization uses old accelerations; (93.069305, 87, 99, 101, 13, 2020, 32) -> (93.26733, 87, 98, 101, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD read_kpad_acc: restore inclusive smoothing thresholds from cror; (58.565, 396, 378, 400, 13, 2020, 32) -> (58.3425, 396, 384, 400, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD read_kpad_acc: thresholds and preserve previous vectors as struct copies; (58.565, 396, 378, 400, 13, 2020, 32) -> (63.5625, 386, 396, 400, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD read_kpad_acc: thresholds and name raw acceleration axes; (58.565, 396, 378, 400, 13, 2020, 32) -> (58.3425, 396, 384, 400, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD select_2obj_first: restore inclusive near/far rejection tests; (65.86885, 110, 125, 122, 13, 2020, 32) -> (69.41803, 110, 127, 122, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD select_2obj_first: near/far tests and ordinary candidate copies; (65.86885, 110, 125, 122, 13, 2020, 32) -> (72.86066, 110, 127, 122, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD select_2obj_first: near/far tests and distance operand order; (65.86885, 110, 125, 122, 13, 2020, 32) -> (69.459015, 110, 127, 122, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD select_2obj_continue: restore bound tests and two-point score ceiling from assembly; (73.04348, 96, 138, 138, 13, 2020, 32) -> (79.615944, 112, 140, 138, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD select_2obj_continue: bounds and reuse distance for distance score; (73.04348, 96, 138, 138, 13, 2020, 32) -> (79.50725, 112, 140, 138, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD select_2obj_continue: bounds and explicit reverse branch; (73.04348, 96, 138, 138, 13, 2020, 32) -> (83.37681, 124, 141, 138, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD select_1obj_first: restore inclusive outside-frame branches and first candidate copy; (54.51376, 109, 85, 109, 13, 2020, 32) -> (70.220184, 109, 93, 109, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD select_1obj_first: outside-frame bounds and candidate struct copy; (54.51376, 109, 85, 109, 13, 2020, 32) -> (70.09174, 109, 93, 109, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD select_1obj_first: outside-frame bounds and offset operand order; (54.51376, 109, 85, 109, 13, 2020, 32) -> (70.220184, 109, 93, 109, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_dpd_variable: restore inclusive smoothing thresholds; (68.608, 241, 228, 250, 13, 2020, 32) -> (71.404, 241, 231, 250, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_dpd_variable: thresholds and reverse midpoint operand order; (68.608, 241, 228, 250, 13, 2020, 32) -> (71.404, 241, 231, 250, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_dpd_variable: thresholds and separate distance interpolation product; (68.608, 241, 228, 250, 13, 2020, 32) -> (71.384, 241, 231, 250, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD read_kpad_dpd: restore inclusive frame/acceleration rejection tests; (69.09712, 271, 276, 278, 13, 2020, 32) -> (72.39209, 271, 281, 278, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD read_kpad_dpd: bounds and direction scaling order; (69.09712, 271, 276, 278, 13, 2020, 32) -> (72.35612, 271, 281, 278, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD read_kpad_dpd: bounds and reference distance operand order; (69.09712, 271, 276, 278, 13, 2020, 32) -> (72.3741, 271, 281, 278, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD reset_kpad: restore post-store decrement loops from assembly; (65.17094, 101, 115, 117, 13, 2020, 32) -> (0, 264, 264, 117, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD reset_kpad: loops and copy direction as bit-preserving words; (65.17094, 101, 115, 117, 13, 2020, 32) -> (0, 266, 268, 117, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD reset_kpad: loops and separate object/candidate iterator; (65.17094, 101, 115, 117, 13, 2020, 32) -> (0, 264, 264, 117, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD read_kpad_stick: restore if/else device dispatch and signed right stick; (84.26582, 135, 157, 158, 13, 2020, 32) -> (88.73418, 109, 153, 158, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD read_kpad_stick: dispatch and signed trigger arithmetic; (84.26582, 135, 157, 158, 13, 2020, 32) -> (95.3481, 108, 157, 158, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD read_kpad_stick: dispatch and select clamp with explicit else; (84.26582, 135, 157, 158, 13, 2020, 32) -> (88.73418, 109, 153, 158, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD select_1obj_continue: ordinary matched candidate struct copy; (78.30108, 92, 95, 93, 13, 2020, 32) -> (79.80645, 92, 95, 93, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD select_1obj_continue: declare float products before directions; (78.30108, 92, 95, 93, 13, 2020, 32) -> (78.462364, 92, 95, 93, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD select_1obj_continue: multiply offset by direction first; (78.30108, 92, 95, 93, 13, 2020, 32) -> (78.354836, 92, 95, 93, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight: restore unordered min branch direction; (93.55769, 21, 52, 52, 13, 2020, 32) -> (91.63461, 32, 53, 52, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight: declaration order one; (93.55769, 21, 52, 52, 13, 2020, 32) -> (92.78846, 23, 52, 52, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight: declaration order two; (93.55769, 21, 52, 52, 13, 2020, 32) -> (92.78846, 23, 52, 52, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADRead: restore reachable unplugged callback condition; (82.53377, 452, 472, 459, 13, 2020, 32) -> (82.40305, 453, 472, 459, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADRead: use BOOL interrupt state; (82.53377, 452, 472, 459, 13, 2020, 32) -> (83.10022, 459, 470, 459, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADRead: declaration order one; (82.53377, 452, 472, 459, 13, 2020, 32) -> (82.50109, 452, 472, 459, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADInit: reuse reference extents after diagonal calculation; (71.85946, 198, 201, 185, 13, 2020, 32) -> (71.72433, 198, 201, 185, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADInit: scope diagonal extents within each channel; (71.85946, 198, 201, 185, 13, 2020, 32) -> (71.67027, 198, 201, 185, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADInit: declaration order two; (71.85946, 198, 201, 185, 13, 2020, 32) -> (71.53513, 197, 201, 185, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADiSamplingCallback: restore special device cases from switch branches; (84.2033, 152, 175, 182, 13, 2020, 32) -> (88.14835, 108, 182, 182, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADiSamplingCallback: restore unordered min branch; (84.2033, 152, 175, 182, 13, 2020, 32) -> (85.3022, 133, 176, 182, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADiSamplingCallback: scope sensor constants after position query; (84.2033, 152, 175, 182, 13, 2020, 32) -> (87.91209, 152, 175, 182, 13, 2020, 32)
|
||||
src/system/odh cdj_c_colorConv: declare image planes before assignments; (97.402596, 30, 77, 77, 16, 4092, 6360) -> (97.402596, 30, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: declare image planes in reverse order; (97.402596, 30, 77, 77, 16, 4092, 6360) -> (98.31169, 23, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: declare image planes by name; (97.402596, 30, 77, 77, 16, 4092, 6360) -> (97.72727, 28, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: source offset adds base last; (97.402596, 30, 77, 77, 16, 4092, 6360) -> (97.46753, 30, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_d_decompressLoop: decoder local declaration order one; (97.67297, 383, 899, 899, 16, 4092, 6360) -> (97.60623, 395, 899, 899, 16, 4092, 6360)
|
||||
src/system/odh cdj_d_decompressLoop: decoder local declaration order two; (97.67297, 383, 899, 899, 16, 4092, 6360) -> (97.67297, 383, 899, 899, 16, 4092, 6360)
|
||||
src/system/odh cdj_d_decompressLoop: decoder local declaration order three; (97.67297, 383, 899, 899, 16, 4092, 6360) -> (97.60623, 395, 899, 899, 16, 4092, 6360)
|
||||
src/system/odh LineDeconv22: declare image planes before assignments; (96.434425, 115, 244, 244, 16, 4092, 6360) -> (96.434425, 115, 244, 244, 16, 4092, 6360)
|
||||
src/system/odh LineDeconv22: declare image planes in reverse order; (96.434425, 115, 244, 244, 16, 4092, 6360) -> (96.434425, 115, 244, 244, 16, 4092, 6360)
|
||||
src/system/odh LineDeconv22: pixel addressing adds destination last; (96.434425, 115, 244, 244, 16, 4092, 6360) -> (96.434425, 115, 244, 244, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: plane/stride declarations 0, explicit remainder and base-first address; (98.31169, 23, 77, 77, 16, 4092, 6360) -> (97.46753, 30, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: plane/stride declarations 1, explicit remainder and base-first address; (98.31169, 23, 77, 77, 16, 4092, 6360) -> (97.792206, 28, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: plane/stride declarations 2, explicit remainder and base-first address; (98.31169, 23, 77, 77, 16, 4092, 6360) -> (97.207794, 31, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: plane/stride declarations 3, explicit remainder and base-first address; (98.31169, 23, 77, 77, 16, 4092, 6360) -> (98.05195, 21, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: plane/stride declarations 4, explicit remainder and base-first address; (98.31169, 23, 77, 77, 16, 4092, 6360) -> (98.31169, 20, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: plane/stride declarations 5, explicit remainder and base-first address; (98.31169, 23, 77, 77, 16, 4092, 6360) -> (97.792206, 28, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: plane/stride declarations 6, explicit remainder and base-first address; (98.31169, 23, 77, 77, 16, 4092, 6360) -> (97.53247, 30, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: plane/stride declarations 7, explicit remainder and base-first address; (98.31169, 23, 77, 77, 16, 4092, 6360) -> (97.53247, 30, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: plane/stride declarations 8, explicit remainder and base-first address; (98.31169, 23, 77, 77, 16, 4092, 6360) -> (98.31169, 20, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: plane/stride declarations 9, explicit remainder and base-first address; (98.31169, 23, 77, 77, 16, 4092, 6360) -> (97.792206, 28, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: plane/stride declarations 10, explicit remainder and base-first address; (98.31169, 23, 77, 77, 16, 4092, 6360) -> (97.792206, 28, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: plane/stride declarations 11, explicit remainder and base-first address; (98.31169, 23, 77, 77, 16, 4092, 6360) -> (97.792206, 27, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: plane/stride declarations 12, explicit remainder and base-first address; (98.31169, 23, 77, 77, 16, 4092, 6360) -> (97.792206, 28, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: plane/stride declarations 13, explicit remainder and base-first address; (98.31169, 23, 77, 77, 16, 4092, 6360) -> (97.792206, 28, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: plane/stride declarations 14, explicit remainder and base-first address; (98.31169, 23, 77, 77, 16, 4092, 6360) -> (97.85714, 27, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: plane/stride declarations 15, explicit remainder and base-first address; (98.31169, 23, 77, 77, 16, 4092, 6360) -> (98.05195, 21, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: plane/stride declarations 16, explicit remainder and base-first address; (98.31169, 23, 77, 77, 16, 4092, 6360) -> (97.46753, 30, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: plane/stride declarations 17, explicit remainder and base-first address; (98.31169, 23, 77, 77, 16, 4092, 6360) -> (97.792206, 28, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: plane/stride declarations 18, explicit remainder and base-first address; (98.31169, 23, 77, 77, 16, 4092, 6360) -> (97.46753, 30, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: plane/stride declarations 19, explicit remainder and base-first address; (98.31169, 23, 77, 77, 16, 4092, 6360) -> (97.53247, 29, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_setQuantizationTable: unsigned table byte offsets remove signed divide correction; (81.671425, 58, 72, 70, 16, 4092, 6360) -> (85.171425, 49, 70, 70, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_setQuantizationTable: unsigned offsets and indexed quantization destination; (81.671425, 58, 72, 70, 16, 4092, 6360) -> (84.9, 58, 71, 70, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_setQuantizationTable: unsigned offsets and explicit standard table cursor; (81.671425, 58, 72, 70, 16, 4092, 6360) -> (78.21429, 63, 68, 70, 16, 4092, 6360)
|
||||
src/system/odh cdj_d_setDequantizationTable: unsigned table byte offset; (88.27451, 46, 54, 51, 16, 4092, 6360) -> (92.98039, 44, 52, 51, 16, 4092, 6360)
|
||||
src/system/odh cdj_d_setDequantizationTable: quantization destination expressed as row indices; (88.27451, 46, 54, 51, 16, 4092, 6360) -> (94.60784, 30, 51, 51, 16, 4092, 6360)
|
||||
src/system/odh cdj_d_setDequantizationTable: unsigned offset and coefficient declaration order; (88.27451, 46, 54, 51, 16, 4092, 6360) -> (92.98039, 44, 52, 51, 16, 4092, 6360)
|
||||
src/system/odh LineConv11: signed pixel cursor; (80.746574, 102, 146, 146, 16, 4092, 6360) -> (80.746574, 102, 146, 146, 16, 4092, 6360)
|
||||
src/system/odh LineConv11: blue/red scale products on right; (80.746574, 102, 146, 146, 16, 4092, 6360) -> (80.746574, 102, 146, 146, 16, 4092, 6360)
|
||||
src/system/odh fdct_fast: use existing butterfly temporaries throughout both passes; (78.30769, 118, 169, 169, 16, 4092, 6360) -> (78.36687, 118, 169, 169, 16, 4092, 6360)
|
||||
src/system/odh fdct_fast: reverse independent even-sum add operands; (78.30769, 118, 169, 169, 16, 4092, 6360) -> (78.23669, 120, 169, 169, 16, 4092, 6360)
|
||||
src/system/odh fdct_fast: column input traversal uses a cursor; (78.30769, 118, 169, 169, 16, 4092, 6360) -> (73.40237, 161, 167, 169, 16, 4092, 6360)
|
||||
src/system/odh huffmanCoder: signed input cursor eliminates explicit sign-extension shifts; (91.96319, 155, 166, 163, 16, 4092, 6360) -> BUILD FAIL 3" tools/transform_dep.py build/43U/src/src/system/odh.d build/43U/src/src/system/odh.d
|
||||
### mwcceppc.exe Compiler:
|
||||
# File: src\system\odh.cpp
|
||||
# ---------------------------
|
||||
# 1202: coefficientPointer = nextCoefficient;
|
||||
# Error: ^
|
||||
# (10209) illegal implicit conversion from 'short *' to
|
||||
# 'unsigned short *'
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
ninja: build stopped: subcommand failed.
|
||||
|
||||
src/system/odh huffmanCoder: declare predictor before block loop; (91.96319, 155, 166, 163, 16, 4092, 6360) -> (91.96319, 155, 166, 163, 16, 4092, 6360)
|
||||
src/system/odh huffmanCoder: swap independent cursor and magnitude declarations; (91.96319, 155, 166, 163, 16, 4092, 6360) -> (91.96319, 155, 166, 163, 16, 4092, 6360)
|
||||
src/system/odh LineDeconv21: signed pixel index; (92.578575, 125, 145, 140, 16, 4092, 6360) -> (92.578575, 125, 145, 140, 16, 4092, 6360)
|
||||
src/system/odh LineDeconv21: unsigned blue channel packs with logical shift; (92.578575, 125, 145, 140, 16, 4092, 6360) -> (89.72143, 125, 145, 140, 16, 4092, 6360)
|
||||
src/system/odh LineDeconv21: local declaration order one; (92.578575, 125, 145, 140, 16, 4092, 6360) -> (92.435715, 126, 145, 140, 16, 4092, 6360)
|
||||
src/system/odh LineDeconv12: signed pixel index; (78.095894, 142, 148, 146, 16, 4092, 6360) -> (78.095894, 142, 148, 146, 16, 4092, 6360)
|
||||
src/system/odh LineDeconv12: unsigned blue channel packs with logical shift; (78.095894, 142, 148, 146, 16, 4092, 6360) -> (77.68493, 142, 148, 146, 16, 4092, 6360)
|
||||
src/system/odh LineDeconv12: local declaration order one; (78.095894, 142, 148, 146, 16, 4092, 6360) -> (78.095894, 142, 148, 146, 16, 4092, 6360)
|
||||
src/system/odh huffmanDecoder: local declaration order one; (91.04902, 277, 308, 306, 16, 4092, 6360) -> (91.13072, 277, 308, 306, 16, 4092, 6360)
|
||||
src/system/odh huffmanDecoder: local declaration order two; (91.04902, 277, 308, 306, 16, 4092, 6360) -> (91.13072, 277, 308, 306, 16, 4092, 6360)
|
||||
src/system/odh huffmanDecoder: local declaration order three; (91.04902, 277, 308, 306, 16, 4092, 6360) -> (91.473854, 277, 308, 306, 16, 4092, 6360)
|
||||
src/system/odh idct_fast: local declaration order one; (70.49789, 174, 236, 237, 16, 4092, 6360) -> (67.43038, 188, 236, 237, 16, 4092, 6360)
|
||||
src/system/odh idct_fast: local declaration order two; (70.49789, 174, 236, 237, 16, 4092, 6360) -> (69.92827, 175, 236, 237, 16, 4092, 6360)
|
||||
src/system/odh idct_fast: local declaration order three; (70.49789, 174, 236, 237, 16, 4092, 6360) -> (71.101265, 175, 236, 237, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 0; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (98.11688, 25, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 1; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (97.53247, 30, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 2; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (97.53247, 30, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 3; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (98.376625, 21, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 4; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (97.85714, 27, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 5; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (97.53247, 30, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 6; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (97.53247, 29, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 7; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (97.53247, 29, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 8; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (97.987015, 22, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 9; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (97.207794, 31, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 10; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (97.53247, 29, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 11; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (98.31169, 20, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 12; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (97.207794, 31, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 13; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (97.792206, 28, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 14; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (97.207794, 31, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 15; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (97.53247, 29, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 16; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (97.792206, 27, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 17; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (98.05195, 25, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 18; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (97.53247, 29, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 19; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (97.207794, 31, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 20; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (97.207794, 31, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 21; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (97.792206, 27, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 22; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (97.53247, 29, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 23; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (97.46753, 30, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 24; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (98.05195, 25, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 25; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (97.792206, 28, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 26; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (97.85714, 27, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 27; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (97.207794, 31, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 28; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (97.792206, 28, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 29; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (97.207794, 31, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 30; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (97.207794, 31, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 31; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (97.85714, 27, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_setQuantizationTable: indexed destination row, variant 0; (85.171425, 49, 70, 70, 16, 4092, 6360) -> (86.51428, 49, 70, 70, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_setQuantizationTable: indexed destination row, variant 1; (85.171425, 49, 70, 70, 16, 4092, 6360) -> (83.37143, 49, 70, 70, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_setQuantizationTable: indexed destination row, variant 2; (85.171425, 49, 70, 70, 16, 4092, 6360) -> (86.51428, 49, 70, 70, 16, 4092, 6360)
|
||||
src/BS2/BS2Mach BS2NANDDivideReadAsync: global state assignment order from target; (60.29787, 45, 45, 47, 21, 4052, 155504) -> (60.31915, 44, 45, 47, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach BS2NANDDivideReadAsync: state assignment order and test incoming length; (60.29787, 45, 45, 47, 21, 4052, 155504) -> (60.31915, 44, 45, 47, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach BS2NANDDivideReadAsync: keep request buffer for report; (60.29787, 45, 45, 47, 21, 4052, 155504) -> (60.31915, 44, 45, 47, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach BS2NANDDivideWriteAsync: global state assignment order from target; (60.29787, 45, 45, 47, 21, 4052, 155504) -> (60.31915, 44, 45, 47, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach BS2NANDDivideWriteAsync: state assignment order and test incoming length; (60.29787, 45, 45, 47, 21, 4052, 155504) -> (60.31915, 44, 45, 47, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach BS2NANDDivideWriteAsync: keep request buffer for report; (60.29787, 45, 45, 47, 21, 4052, 155504) -> (60.31915, 44, 45, 47, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach BS2StartGCGame: poll cover command field directly; (98.11404, 97, 227, 228, 21, 4052, 155504) -> (95.4386, 103, 227, 228, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach BS2StartGCGame: time conversion expression from RTC and frequency; (98.11404, 97, 227, 228, 21, 4052, 155504) -> (98.24561, 93, 227, 228, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach BS2StartGCGame: reverse RTC local declarations; (98.11404, 97, 227, 228, 21, 4052, 155504) -> (98.11404, 97, 227, 228, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach BS2StartGame: poll cover command field directly; (95.496185, 173, 401, 393, 21, 4052, 155504) -> (93.94402, 179, 401, 393, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach BS2StartGame: reverse title-version local declarations; (95.496185, 173, 401, 393, 21, 4052, 155504) -> (95.31807, 186, 401, 393, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach BS2StartGame: poll cover with explicit do loop; (95.496185, 173, 401, 393, 21, 4052, 155504) -> (93.94402, 179, 401, 393, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach BS2NANDDivideCallback: remaining length local reused for transfer decision; (85.03906, 107, 119, 128, 21, 4052, 155504) -> (85.03906, 107, 119, 128, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach BS2NANDDivideCallback: cancel and error branches return immediately; (85.03906, 107, 119, 128, 21, 4052, 155504) -> (85.03906, 107, 119, 128, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach BS2NANDDivideCallback: perform buffer update before transferred count; (85.03906, 107, 119, 128, 21, 4052, 155504) -> (85.0, 107, 119, 128, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach CheckBS2CommandStatus: unsigned declaration block reversed; (80.133, 321, 387, 406, 21, 4052, 155504) -> (80.133, 321, 387, 406, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach CheckBS2CommandStatus: signed partition count local; (80.133, 321, 387, 406, 21, 4052, 155504) -> (80.133, 321, 387, 406, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach CheckBS2CommandStatus: signed chunk length local; (80.133, 321, 387, 406, 21, 4052, 155504) -> (80.133, 321, 387, 406, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach BS2Tick: reverse integer declaration block; (74.78608, 1765, 1905, 1940, 21, 4052, 155504) -> (74.78608, 1765, 1905, 1940, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach Run: preincrement block after cache operations; (0, 43, 28, 43, 21, 4052, 155504) -> (0, 43, 28, 43, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach Run: use bounded cache block loop; (0, 43, 28, 43, 21, 4052, 155504) -> (0, 43, 31, 43, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach Run: decrement count before cache operations; (0, 43, 28, 43, 21, 4052, 155504) -> (0, 43, 29, 43, 21, 4052, 155504)
|
||||
src/BS2/BS2Update BS2UpdateInit: retain workspace pointer before reporting; (77.5, 61, 71, 72, 8, 112, 0) -> (77.5, 61, 71, 72, 8, 112, 0)
|
||||
src/BS2/BS2Update BS2UpdateInit: compute thread and DMA flag buffer pointers before reporting; (77.5, 61, 71, 72, 8, 112, 0) -> (90.09722, 50, 72, 72, 8, 112, 0)
|
||||
src/BS2/BS2Update BS2UpdateInit: retain thread storage as a typed pointer before reporting; (77.5, 61, 71, 72, 8, 112, 0) -> (90.09722, 50, 72, 72, 8, 112, 0)
|
||||
src/BS2/BS2Update UpdateThread: initialize counters after entry report to match block order; (78.59365, 884, 866, 913, 8, 112, 0) -> (79.10186, 884, 865, 913, 8, 112, 0)
|
||||
src/BS2/BS2Update UpdateThread: keep primary update entry cursor across scan; (78.59365, 884, 866, 913, 8, 112, 0) -> (77.02628, 886, 865, 913, 8, 112, 0)
|
||||
src/BS2/BS2Update UpdateThread: compare region characters in unsigned integer temporary; (78.59365, 884, 866, 913, 8, 112, 0) -> (78.31873, 882, 862, 913, 8, 112, 0)
|
||||
src/BS2/BS2Mach BS2Tick: declare title prefix before code; (74.78608, 1765, 1905, 1940, 21, 4052, 155504) -> (74.78608, 1765, 1905, 1940, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach BS2Tick: declare read address before read length and offset; (74.78608, 1765, 1905, 1940, 21, 4052, 155504) -> (74.7866, 1765, 1905, 1940, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach BS2Tick: interrupt mask retains BOOL result type; (74.78608, 1765, 1905, 1940, 21, 4052, 155504) -> (74.78608, 1765, 1905, 1940, 21, 4052, 155504)
|
||||
src/system/odh LineConv11: blue conversion constant declared before red and green constants; (80.746574, 102, 146, 146, 16, 4092, 6360) -> (80.712326, 102, 146, 146, 16, 4092, 6320)
|
||||
|
||||
Final source selection
|
||||
|
||||
KPAD retains the two exact functions and assembly-derived bound/device corrections. Odh and BS2Mach source experiments are reverted because none increased their exact counts. BS2Update retains the reconstructed initializer and complete thread, the integer progress counter, real thread/flag/header storage, and guarded metadata fields. The aggregate workspace experiment was removed. All 55 BS2Update strings are ordinary literals and identical in pool order. The product-area jump table maps areas 0 and 5 to J/D, 1 to E/D, 2 to P/D, 6 to K, and 11 to C; other areas reject. Both new functions remain nonmatching. No linking status changed.
|
||||
|
||||
libs/RVL_SDK/src/kpad/KPAD final unmatched functions
|
||||
get_ring_buffer_by_kpad1_style: objdiff 99.583336%; instructions 96/96, positional differences 7; register allocation / operand order / scheduling.
|
||||
reset_kpad: objdiff 65.17094%; instructions 115/117, positional differences 101; block layout / missing or extra instructions / scheduling.
|
||||
KPADGetProjectionPos: objdiff 96.57895%; instructions 19/19, positional differences 9; register allocation / operand order / scheduling.
|
||||
KPADSetSensorHeight: objdiff 93.55769%; instructions 52/52, positional differences 21; register allocation / operand order / scheduling.
|
||||
calc_acc_horizon: objdiff 95.89109%; instructions 100/101, positional differences 87; block layout / missing or extra instructions / scheduling.
|
||||
read_kpad_acc: objdiff 63.5625%; instructions 396/400, positional differences 386; block layout / missing or extra instructions / scheduling.
|
||||
select_2obj_first: objdiff 72.86066%; instructions 127/122, positional differences 110; block layout / missing or extra instructions / scheduling.
|
||||
select_2obj_continue: objdiff 83.37681%; instructions 141/138, positional differences 124; block layout / missing or extra instructions / scheduling.
|
||||
select_1obj_first: objdiff 70.220184%; instructions 93/109, positional differences 109; block layout / missing or extra instructions / scheduling.
|
||||
select_1obj_continue: objdiff 79.80645%; instructions 95/93, positional differences 92; block layout / missing or extra instructions / scheduling.
|
||||
calc_dpd_variable: objdiff 71.404%; instructions 231/250, positional differences 241; block layout / missing or extra instructions / scheduling.
|
||||
read_kpad_dpd: objdiff 72.39209%; instructions 281/278, positional differences 271; block layout / missing or extra instructions / scheduling.
|
||||
read_kpad_stick: objdiff 95.3481%; instructions 157/158, positional differences 108; block layout / missing or extra instructions / scheduling.
|
||||
KPADRead: objdiff 83.10022%; instructions 470/459, positional differences 459; block layout / missing or extra instructions / scheduling.
|
||||
KPADInit: objdiff 71.85946%; instructions 201/185, positional differences 198; block layout / missing or extra instructions / scheduling.
|
||||
KPADiSamplingCallback: objdiff 88.14835%; instructions 182/182, positional differences 108; register allocation / operand order / scheduling.
|
||||
|
||||
src/system/odh final unmatched functions
|
||||
cdj_c_setQuantizationTable__9CArGBAOdhFP16SArCDJ_OdhMasterUl: objdiff 81.671425%; instructions 72/70, positional differences 58; block layout / missing or extra instructions / scheduling.
|
||||
cdj_c_colorConv__9CArGBAOdhFP16SArCDJ_OdhMasterPUci: objdiff 97.402596%; instructions 77/77, positional differences 30; register allocation / operand order / scheduling.
|
||||
LineConv11__9CArGBAOdhFPUcPUcPUcPUcUsUsPCli: objdiff 80.746574%; instructions 146/146, positional differences 102; register allocation / operand order / scheduling.
|
||||
fdct_fast__9CArGBAOdhFPUlPUcUlPUl: objdiff 78.30769%; instructions 169/169, positional differences 118; register allocation / operand order / scheduling.
|
||||
huffmanCoder__9CArGBAOdhFPUsP21SArCDJ_HuffmanRequest: objdiff 91.96319%; instructions 166/163, positional differences 155; block layout / missing or extra instructions / scheduling.
|
||||
cdj_d_decompressLoop__9CArGBAOdhFP16SArCDJ_OdhMasterii: objdiff 97.67297%; instructions 899/899, positional differences 383; register allocation / operand order / scheduling.
|
||||
cdj_d_setDequantizationTable__9CArGBAOdhFP16SArCDJ_OdhMasterUl: objdiff 88.27451%; instructions 54/51, positional differences 46; block layout / missing or extra instructions / scheduling.
|
||||
LineDeconv21__9CArGBAOdhFPUcPUcPUcPUcUsUsPC12SArDeconvTbli: objdiff 92.578575%; instructions 145/140, positional differences 125; block layout / missing or extra instructions / scheduling.
|
||||
LineDeconv12__9CArGBAOdhFPUcPUcPUcPUcUsUsPC12SArDeconvTbli: objdiff 78.095894%; instructions 148/146, positional differences 142; block layout / missing or extra instructions / scheduling.
|
||||
LineDeconv22__9CArGBAOdhFPUcPUcPUcPUcUsUsPC12SArDeconvTbli: objdiff 96.434425%; instructions 244/244, positional differences 115; register allocation / operand order / scheduling.
|
||||
huffmanDecoder__9CArGBAOdhFPUlP21SArCDJ_HuffmanRequestPPUsiUl: objdiff 91.04902%; instructions 308/306, positional differences 277; block layout / missing or extra instructions / scheduling.
|
||||
idct_fast__9CArGBAOdhFPCUcPUlPUlPUcUl: objdiff 70.49789%; instructions 236/237, positional differences 174; block layout / missing or extra instructions / scheduling.
|
||||
|
||||
src/BS2/BS2Mach final unmatched functions
|
||||
Run: objdiff unscored; instructions 28/43, positional differences 43; block layout / missing or extra instructions / scheduling.
|
||||
BS2StartGame: objdiff 95.496185%; instructions 401/393, positional differences 173; block layout / missing or extra instructions / scheduling.
|
||||
BS2StartGCGame: objdiff 98.11404%; instructions 227/228, positional differences 97; block layout / missing or extra instructions / scheduling.
|
||||
BS2NANDDivideCallback: objdiff 85.03906%; instructions 119/128, positional differences 107; block layout / missing or extra instructions / scheduling.
|
||||
BS2NANDDivideReadAsync: objdiff 60.29787%; instructions 45/47, positional differences 45; block layout / missing or extra instructions / scheduling.
|
||||
BS2NANDDivideWriteAsync: objdiff 60.29787%; instructions 45/47, positional differences 45; block layout / missing or extra instructions / scheduling.
|
||||
CheckBS2CommandStatus: objdiff 80.133%; instructions 387/406, positional differences 321; block layout / missing or extra instructions / scheduling.
|
||||
BS2Tick: objdiff 74.78608%; instructions 1905/1940, positional differences 1765; block layout / missing or extra instructions / scheduling.
|
||||
|
||||
src/BS2/BS2Update final unmatched functions
|
||||
BS2UpdateInit: objdiff 79.875%; instructions 71/72, positional differences 65; block layout / missing or extra instructions / scheduling.
|
||||
UpdateThread: objdiff 84.05586%; instructions 863/913, positional differences 867; block layout / missing or extra instructions / scheduling.
|
||||
Reference in New Issue
Block a user