Compare commits
36 Commits
agent/bitt
...
agent/w092
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3d9d17a475 | ||
|
|
77ffcfa537 | ||
|
|
6b989cb795 | ||
|
|
f72d58b058 | ||
|
|
eb2f4c2107 | ||
|
|
7583182e68 | ||
|
|
425d6c8238 | ||
|
|
e8ebf0d917 | ||
|
|
7f762c49f9 | ||
|
|
6b2d4aa950 | ||
|
|
eadb3bf2d7 | ||
|
|
c8f35f1395 | ||
|
|
68f20340d8 | ||
|
|
6344d60e8c | ||
|
|
6b44d50777 | ||
|
|
ecf4718d92 | ||
|
|
bf12ec00b4 | ||
|
|
38fb242b2c | ||
|
|
f318abd6f5 | ||
|
|
216b18a1ef | ||
|
|
3611bc0764 | ||
|
|
3013d33b86 | ||
|
|
f0b1b028df | ||
|
|
6f39d3c485 | ||
|
|
d8937f9e82 | ||
|
|
36d651fe72 | ||
|
|
e133119aa5 | ||
|
|
fa50eeea1a | ||
|
|
ae5f904c0b | ||
|
|
11f4b29c64 | ||
|
|
c7344eccc8 | ||
|
|
86cda2adbe | ||
|
|
0d1fa438ba | ||
|
|
343fa90f9b | ||
|
|
ed52b1987e | ||
|
|
00f44a924b |
@@ -53,9 +53,9 @@ Progress
|
||||
<!-- progress:start -->
|
||||
| Decompiled | Matched | Linked | Data |
|
||||
|:---:|:---:|:---:|:---:|
|
||||
| 99.50% | 89.07% | 65.96% | 99.36% |
|
||||
| 99.52% | 89.16% | 66.24% | 99.37% |
|
||||
|
||||
units 938/1027 complete, functions 12295/12563 matched.
|
||||
units 940/1027 complete, functions 12301/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 -->
|
||||
|
||||
@@ -1060,7 +1060,7 @@ config.libs = [
|
||||
Object(NonMatching, "nhttp/NHTTP_recvbuf.c"),
|
||||
Object(Matching, "nhttp/NHTTP_request.c"),
|
||||
Object(Matching, "nhttp/NHTTP_response.c"),
|
||||
Object(NonMatching, "nhttp/NHTTP_socket_RVL.c"),
|
||||
Object(Matching, "nhttp/NHTTP_socket_RVL.c"),
|
||||
Object(NonMatching, "nhttp/NHTTP_stdlib_RVL.c"),
|
||||
Object(NonMatching, "nhttp/NHTTP_thread.c"),
|
||||
Object(Matching, "nhttp/d_nhttp_private.c"),
|
||||
@@ -1076,7 +1076,7 @@ config.libs = [
|
||||
Object(Matching, "nwc24/NWC24Manage.c"),
|
||||
Object(Matching, "nwc24/NWC24MsgObj.c"),
|
||||
Object(NonMatching, "nwc24/NWC24MBoxCtrl.c"),
|
||||
Object(NonMatching, "nwc24/NWC24Mime.c"),
|
||||
Object(Matching, "nwc24/NWC24Mime.c"),
|
||||
Object(Matching, "nwc24/NWC24Stream.c"),
|
||||
Object(Matching, "nwc24/NWC24Parser.c"),
|
||||
Object(NonMatching, "nwc24/NWC24MsgCommit.c"),
|
||||
|
||||
@@ -57,6 +57,8 @@ ziU8 ZADP_Zi8SetPDremoveOpt(ziU8 option, struct __zi8_work_data_s* __zi8_work_da
|
||||
return previous;
|
||||
}
|
||||
ziU32 Zi8MatchPUDdata_ZHS(ziWChar* pattern, ziU8 length, ziU8 language, ziWChar* output, ziU16 capacity, ziWChar* spelling, ziU16 spellingCapacity, ziU8 complete, ziU8 continuation ZI_NEED_WORK) {
|
||||
int fallback = 0;
|
||||
ziU8* bytePattern;
|
||||
ziWChar folded;
|
||||
ziPudSection* section;
|
||||
int wordSize;
|
||||
@@ -65,7 +67,7 @@ ziU32 Zi8MatchPUDdata_ZHS(ziWChar* pattern, ziU8 length, ziU8 language, ziWChar*
|
||||
int index;
|
||||
ziU32 entrySize;
|
||||
ziPudHeader* table;
|
||||
int fallback = 0;
|
||||
ziU8* byteOutput;
|
||||
if (!(ZI_WORK->pudCount <= 16 && ZI_WORK->pudCount != 0 && ZI_WORK->pudTable[ZI_WORK->pudCount - 1] != 0)) {
|
||||
Zi8LogError(0x4B0, __zi8_work_data);
|
||||
return 0;
|
||||
@@ -79,8 +81,8 @@ ziU32 Zi8MatchPUDdata_ZHS(ziWChar* pattern, ziU8 length, ziU8 language, ziWChar*
|
||||
index = 0;
|
||||
while (index < table->languageCount) {
|
||||
if (section->language == language) break;
|
||||
index++;
|
||||
section++;
|
||||
index++;
|
||||
}
|
||||
if (index >= table->languageCount) {
|
||||
Zi8LogError(0x4F6, __zi8_work_data);
|
||||
@@ -101,18 +103,20 @@ ziU32 Zi8MatchPUDdata_ZHS(ziWChar* pattern, ziU8 length, ziU8 language, ziWChar*
|
||||
entrySize = wordSize;
|
||||
if (language == 1) {
|
||||
if (ZI_WORK->unk_0x17 > *word) goto next;
|
||||
entrySize = wordSize - 1;
|
||||
wordSize--;
|
||||
entrySize--;
|
||||
word++;
|
||||
wordSize = ZiGetZHWordSize((ziWChar*)word, entrySize);
|
||||
} else if (ZI_WORK->unk_0x31E != 0 && complete != 0 && wordSize > length && word[length] == 0x20) goto matchText;
|
||||
} else if (ZI_WORK->unk_0x31E != 0 && complete != 0 && length < wordSize && word[length] == 0x20) goto matchText;
|
||||
if ((ziS32)length > (ziS32)wordSize || (complete != 0 && wordSize != length) || (complete == 0 && wordSize == length)) {
|
||||
next:
|
||||
ZI_WORK->unk_0x318++;
|
||||
word += entrySize;
|
||||
} else {
|
||||
if (language == 1) {
|
||||
bytePattern = (ziU8*)pattern;
|
||||
for (index = 0; index < length; index++) {
|
||||
if (word[index] != ((ziU8*)pattern)[index]) goto next;
|
||||
if (word[index] != bytePattern[index]) goto next;
|
||||
}
|
||||
goto matched;
|
||||
}
|
||||
@@ -135,11 +139,13 @@ matched:
|
||||
return 1;
|
||||
}
|
||||
if (language == 1) {
|
||||
byteOutput = (ziU8*)output;
|
||||
index = 0;
|
||||
for (copied = 0; index < (ziS32)wordSize && copied < capacity; copied++) {
|
||||
((ziU8*)output)[index] = word[index];
|
||||
((ziU8*)output)[index + 1] = word[index + 1];
|
||||
index += 2;
|
||||
byteOutput[index] = word[index];
|
||||
index++;
|
||||
byteOutput[index] = word[index];
|
||||
index++;
|
||||
}
|
||||
Zi8CopyZHSpelling(word, spelling, spellingCapacity, entrySize, wordSize);
|
||||
} else {
|
||||
|
||||
@@ -87,24 +87,23 @@ void Zi8_8148047C(ziPtr __zi8_work_data) {
|
||||
ZI_WORK->uwdList = 0;
|
||||
}
|
||||
ziU8 Zi8MatchUWDdata(ziWChar* pattern, ziU8 length, ziWChar* currentWord, ziU16 currentLength, ziU8 language, ziWChar* output, ziU16 capacity, ziU8 complete, ziU8 continuation ZI_NEED_WORK) {
|
||||
ziU32 size;
|
||||
int fallback = 0;
|
||||
int firstSegment;
|
||||
ziUserDictionary* dictionary;
|
||||
ziU8* cursor;
|
||||
int fallback = 0;
|
||||
ziU8* boundary;
|
||||
ziU8* end;
|
||||
ziUserWord* previous;
|
||||
int firstSegment;
|
||||
ziU32 size;
|
||||
int entryLength;
|
||||
int entryLanguage;
|
||||
int previousOffset;
|
||||
int visited = 0;
|
||||
ziU8* begin;
|
||||
ziWChar folded;
|
||||
ziU8* text;
|
||||
int position;
|
||||
ziU8* cursor;
|
||||
ziU8* begin;
|
||||
ziU8* boundary;
|
||||
int entryLength;
|
||||
int prefixLength;
|
||||
ziUserWord* previous;
|
||||
int visited = 0;
|
||||
ziU8* end;
|
||||
ziWChar folded;
|
||||
int entryLanguage;
|
||||
ziUserWord* candidate;
|
||||
int previousOffset;
|
||||
Zi8LogError(100, __zi8_work_data);
|
||||
if (!(ZI_WORK->unk_0x138 <= 2 && ZI_WORK->unk_0x138 != 0 && ZI_WORK->unk_0x130[ZI_WORK->unk_0x138 - 1] != 0)) {
|
||||
Zi8ReplaceLastError(0x19C, __zi8_work_data);
|
||||
@@ -122,7 +121,7 @@ ziU8 Zi8MatchUWDdata(ziWChar* pattern, ziU8 length, ziWChar* currentWord, ziU16
|
||||
return 0;
|
||||
}
|
||||
text = ((ziUserWord*)text)->text;
|
||||
for (position = 0; position < (ziS32)entryLength; position++) output[position] = Zi8ConvertUC2WC(text[position], language, __zi8_work_data);
|
||||
for (position = 0; position < (ziS32)entryLength; position++) output[position] = Zi8ConvertUC2WC(text[position], language, __zi8_work_data);
|
||||
}
|
||||
return entryLength;
|
||||
}
|
||||
@@ -132,13 +131,16 @@ ziU8 Zi8MatchUWDdata(ziWChar* pattern, ziU8 length, ziWChar* currentWord, ziU16
|
||||
if (currentWord == 0 || currentLength == 0 || currentWord[currentLength - 1] != 0x20) ZI_WORK->unk_0x140 = 0;
|
||||
else {
|
||||
prefixLength = 0;
|
||||
for (position = currentLength - 2; currentWord[position] != 0x20 && position >= 0; position--) prefixLength++;
|
||||
for (position = currentLength - 2; position >= 0;) {
|
||||
if (currentWord[position] == 0x20) break;
|
||||
position--;
|
||||
prefixLength++;
|
||||
}
|
||||
position++;
|
||||
if (prefixLength == 0 || prefixLength > 63) ZI_WORK->unk_0x140 = 0;
|
||||
else {
|
||||
ZI_WORK->unk_0x140 = 1;
|
||||
ZI_WORK->unk_0x141[0] = prefixLength + 5;
|
||||
ZI_WORK->unk_0x141[prefixLength + 4] = prefixLength + 5;
|
||||
ZI_WORK->unk_0x141[prefixLength + 4] = ZI_WORK->unk_0x141[0] = prefixLength + 5;
|
||||
ZI_WORK->unk_0x141[1] = language;
|
||||
ZI_WORK->unk_0x141[2] = prefixLength;
|
||||
previousOffset = 4;
|
||||
@@ -159,31 +161,30 @@ ziU8 Zi8MatchUWDdata(ziWChar* pattern, ziU8 length, ziWChar* currentWord, ziU16
|
||||
}
|
||||
if (ZI_WORK->unk_0x140 == 0 && length == 0) return 0;
|
||||
rescan:
|
||||
begin = dictionary->entries + dictionary->current;
|
||||
cursor = begin;
|
||||
begin = cursor = dictionary->entries + dictionary->current;
|
||||
boundary = (ziU8*)dictionary + dictionary->boundary + 7;
|
||||
end = (ziU8*)dictionary + dictionary->end + 7;
|
||||
if (begin < boundary) firstSegment = 1;
|
||||
else firstSegment = 0;
|
||||
while (firstSegment ? cursor < boundary : cursor < end) {
|
||||
while ((cursor < boundary && firstSegment) || (cursor < end && !firstSegment)) {
|
||||
size = *cursor;
|
||||
candidate = (ziUserWord*)cursor;
|
||||
position = visited++;
|
||||
if ((ziS32)ZI_WORK->unk_0x13C > position || (candidate->size & 0xC0) != 0) {
|
||||
if ((ziS32)ZI_WORK->unk_0x13C > visited++ || (((ziUserWord*)cursor)->size & 0xC0) != 0) {
|
||||
next:
|
||||
cursor += size;
|
||||
if (end < cursor) {
|
||||
if (cursor > end) {
|
||||
if (firstSegment) break;
|
||||
firstSegment = 1;
|
||||
cursor = dictionary->entries + (cursor - end - 1);
|
||||
size = cursor - end - 1;
|
||||
cursor = dictionary->entries + size;
|
||||
}
|
||||
} else {
|
||||
previous = (ziUserWord*)(cursor + size);
|
||||
if ((ziU8*)previous > end) previous = (ziUserWord*)(cursor + ((ziU8*)dictionary - end) + 7);
|
||||
entryLanguage = candidate->language;
|
||||
entryLength = candidate->length;
|
||||
text = candidate->text;
|
||||
if (entryLanguage == language && length <= entryLength && entryLength < capacity && (complete == 0 || entryLength == length) && (complete != 0 || entryLength != length)) {
|
||||
text = &((ziUserWord*)cursor)->language;
|
||||
entryLanguage = *text++;
|
||||
entryLength = *text++;
|
||||
text++;
|
||||
if (entryLanguage == language && entryLength >= length && entryLength < capacity && (complete == 0 || entryLength == length) && (complete != 0 || entryLength != length)) {
|
||||
for (position = 0; position < length; position++) {
|
||||
if (pattern[position] >= 0xEFF1 && pattern[position] <= 0xF010) {
|
||||
if (pattern[position] != Zi8ConvertUC2Key(text[position], language, __zi8_work_data)) goto next;
|
||||
@@ -194,11 +195,13 @@ next:
|
||||
}
|
||||
if (ZI_WORK->unk_0x140 != 0) {
|
||||
if (ZI_WORK->unk_0x141[0] != previous->size || ZI_WORK->unk_0x141[1] != previous->language || ZI_WORK->unk_0x141[2] != previous->length) goto next;
|
||||
for (position = 4; position < ZI_WORK->unk_0x141[2] + 4; position++) {
|
||||
if (ZI_WORK->unk_0x141[position] != ((ziU8*)previous)[position] && ZI_WORK->unk_0x184[position] != ((ziU8*)previous)[position]) goto next;
|
||||
prefixLength = 4;
|
||||
position = ZI_WORK->unk_0x141[2] + 4;
|
||||
for (; prefixLength < position; prefixLength++) {
|
||||
if (ZI_WORK->unk_0x141[prefixLength] != ((ziU8*)previous)[prefixLength] && ZI_WORK->unk_0x184[prefixLength] != ((ziU8*)previous)[prefixLength]) goto next;
|
||||
}
|
||||
}
|
||||
Zi8_81480224(candidate, __zi8_work_data);
|
||||
Zi8_81480224((ziUserWord*)cursor, __zi8_work_data);
|
||||
}
|
||||
goto next;
|
||||
}
|
||||
@@ -208,7 +211,7 @@ next:
|
||||
visited = 0;
|
||||
goto rescan;
|
||||
}
|
||||
if (complete == 1 && length != 0 && continuation == 0) {
|
||||
if (length == 1 && complete != 0 && continuation == 0) {
|
||||
complete = 0;
|
||||
fallback = 1;
|
||||
visited = 0;
|
||||
@@ -216,7 +219,6 @@ next:
|
||||
}
|
||||
}
|
||||
text = (ziU8*)Zi8_814803F4(__zi8_work_data);
|
||||
entryLength = 0;
|
||||
if (text != 0) {
|
||||
language = ((ziUserWord*)text)->language;
|
||||
entryLength = ((ziUserWord*)text)->length;
|
||||
@@ -225,7 +227,8 @@ next:
|
||||
return 0;
|
||||
}
|
||||
text = ((ziUserWord*)text)->text;
|
||||
for (position = 0; position < (ziS32)entryLength; position++) output[position] = Zi8ConvertUC2WC(text[position], language, __zi8_work_data);
|
||||
for (position = 0; position < (ziS32)entryLength; position++) output[position] = Zi8ConvertUC2WC(text[position], language, __zi8_work_data);
|
||||
return entryLength;
|
||||
}
|
||||
return entryLength;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -22,8 +22,7 @@ ziU32 ZiDAWGGetChild(ziU32 node) {
|
||||
node += offset;
|
||||
if (((ziU32)header & 2) != 0) {
|
||||
if ((*(ziU8*)node & 0x80) != 0) {
|
||||
offset = (*(ziU8*)node & 0x7f) * 0x10000 + ((ziU32)*((ziU8*)node + 1) & 0xffff) * 0x100 + 0x8000;
|
||||
offset += *((ziU8*)node + 2);
|
||||
offset = (*(ziU8*)node & 0x7f) * 0x10000 + ((ziU32)*((ziU8*)node + 1) & 0xffff) * 0x100 + *((ziU8*)node + 2) + 0x8000;
|
||||
} else {
|
||||
offset = ((ziU32)*(ziU8*)node & 0xffff) * 0x100;
|
||||
offset += (ziU32)*((ziU8*)node + 1);
|
||||
|
||||
@@ -26,28 +26,22 @@ ziPtr Zi8GetTableAddress(ziU8, ziU8 ZI_NEED_WORK);
|
||||
ziU16 Zi8Uni2Ord(ziWChar ZI_NEED_WORK);
|
||||
|
||||
ziBool Zi8IsWordW(ziWChar* word, ziU8 language ZI_NEED_WORK) {
|
||||
int unmatched;
|
||||
ziU8 group;
|
||||
ziU8 remaining;
|
||||
ziU16 value;
|
||||
ziChineseEntry* table;
|
||||
ziSearchState search;
|
||||
ziChineseEntry* table = 0;
|
||||
ziU8* baseData = 0;
|
||||
ziU8 group = 0;
|
||||
ziU8 remaining = 0;
|
||||
ziU16 value = 0;
|
||||
ziGetParam request;
|
||||
ziWChar ordinals[65];
|
||||
int count;
|
||||
int offset;
|
||||
int countLeft;
|
||||
ziChineseEntry* entry;
|
||||
ziWChar* cursor;
|
||||
ziU8* data;
|
||||
ziU8 formats[8] = {1, 5, 0, 0, 0, 0, 0, 0};
|
||||
ziU32 savedFormats = ZI_WORK->unk_0x1410;
|
||||
ziU8 savedCount = ZI_WORK->unk_0x1418;
|
||||
search.flags = 0;
|
||||
search.word = 0;
|
||||
search.length = 0;
|
||||
search.position = 0;
|
||||
search.capacity = 0;
|
||||
search.options = 0;
|
||||
ziSearchState search = {0};
|
||||
Zi8LogError(100, __zi8_work_data);
|
||||
if (word == 0 || *word == 0) {
|
||||
Zi8ReplaceLastError(300, __zi8_work_data);
|
||||
@@ -59,8 +53,8 @@ ziBool Zi8IsWordW(ziWChar* word, ziU8 language ZI_NEED_WORK) {
|
||||
}
|
||||
((ziU8*)&search.length)[0] = count;
|
||||
((ziU8*)&search.flags)[2] = 1;
|
||||
((ziU16*)&search.capacity)[0] = 64;
|
||||
search.word = word;
|
||||
((ziU16*)&search.capacity)[0] = 64;
|
||||
request.language = language;
|
||||
request.getMode = 0;
|
||||
request.subLanguage = 7;
|
||||
@@ -84,65 +78,70 @@ ziBool Zi8IsWordW(ziWChar* word, ziU8 language ZI_NEED_WORK) {
|
||||
if (ZI_WORK->unk_0x09 & 4) formats[ZI_WORK->unk_0x1418++] = 6;
|
||||
if (ZI_WORK->unk_0x09 & 2) formats[ZI_WORK->unk_0x1418++] = 7;
|
||||
if (ZI_WORK->unk_0x09 & 8) formats[ZI_WORK->unk_0x1418++] = 8;
|
||||
} else if (ZI_WORK->unk_0x1C[0] == 0) ZI_WORK->unk_0x1418 = 1;
|
||||
else ZI_WORK->unk_0x1418 = 2;
|
||||
} else if (ZI_WORK->unk_0x1C[0] != 0) ZI_WORK->unk_0x1418 = 2;
|
||||
else ZI_WORK->unk_0x1418 = 1;
|
||||
count = Zi8GetCandidatesOrCount(&request, &search, __zi8_work_data);
|
||||
ZI_WORK->unk_0x1410 = savedFormats;
|
||||
ZI_WORK->unk_0x1418 = savedCount;
|
||||
if (count != 0) return 1;
|
||||
}
|
||||
if (language == 1) {
|
||||
if (language != 1) {
|
||||
Zi8ReplaceLastError(0x26C, __zi8_work_data);
|
||||
return 0;
|
||||
}
|
||||
{
|
||||
count = 0;
|
||||
do {
|
||||
while (word[count] != 0) {
|
||||
ordinals[count] = Zi8Uni2Ord(word[count], __zi8_work_data);
|
||||
if (ordinals[count] == 0xFFFF) return 0;
|
||||
count++;
|
||||
if (count == 64) return 0;
|
||||
} while (word[count] != 0);
|
||||
}
|
||||
{
|
||||
if (count == 1) return 1;
|
||||
count--;
|
||||
if (count-- == 1) return 1;
|
||||
ordinals[count] |= 0x8000;
|
||||
ZI_WORK->cangjieEnabled = Zi8GetFormatVersion(1, __zi8_work_data) & 2;
|
||||
table = (ziChineseEntry*)Zi8GetTableAddress(1, 0, __zi8_work_data);
|
||||
entry = table + ordinals[0];
|
||||
data = (ziU8*)Zi8GetTableAddress(1, 1, __zi8_work_data);
|
||||
data += ((entry->offsetHigh & 15) << 16 | ((entry->offsetLow[0] << 8) | entry->offsetLow[1]));
|
||||
baseData = (ziU8*)Zi8GetTableAddress(1, 1, __zi8_work_data);
|
||||
baseData += ((entry->offsetHigh & 15) << 16 | (entry->offsetLow[1] | (entry->offsetLow[0] << 8)));
|
||||
data = baseData;
|
||||
if (ZI_WORK->cangjieEnabled != 0) {
|
||||
switch (*data & 7) {
|
||||
case 2:
|
||||
offset = 2;
|
||||
countLeft = 2;
|
||||
break;
|
||||
case 3:
|
||||
case 4:
|
||||
offset = 3;
|
||||
countLeft = 3;
|
||||
break;
|
||||
case 5:
|
||||
offset = 4;
|
||||
countLeft = 4;
|
||||
break;
|
||||
default:
|
||||
offset = 1;
|
||||
countLeft = 1;
|
||||
break;
|
||||
}
|
||||
data += offset;
|
||||
data += countLeft;
|
||||
}
|
||||
if ((*data & 0x80) == 0) return 0;
|
||||
group = 0;
|
||||
data += ((*data & 0x7F) >> 4) + 1;
|
||||
if ((*data & 0x80) != 0) {
|
||||
group = 0;
|
||||
data += ((*data & 0x7F) >> 4) + 1;
|
||||
} else return 0;
|
||||
while ((group & 0x80) == 0) {
|
||||
group = *data++;
|
||||
for (remaining = group & 15; remaining != 0; remaining--) {
|
||||
unmatched = count;
|
||||
countLeft = count;
|
||||
cursor = ordinals;
|
||||
while (unmatched > 0) {
|
||||
value = data[0] | (data[1] << 8);
|
||||
while (countLeft > 0) {
|
||||
value = (data[1] << 8) | data[0];
|
||||
data += 2;
|
||||
cursor++;
|
||||
if (value != *cursor) break;
|
||||
unmatched--;
|
||||
countLeft--;
|
||||
if (value & 0x8000) break;
|
||||
}
|
||||
if (unmatched == 0) return 1;
|
||||
if (countLeft == 0) return 1;
|
||||
if (!(value & 0x8000)) {
|
||||
data++;
|
||||
while (!(*data & 0x80)) data += 2;
|
||||
@@ -153,7 +152,7 @@ ziBool Zi8IsWordW(ziWChar* word, ziU8 language ZI_NEED_WORK) {
|
||||
Zi8LogError(0x2BD, __zi8_work_data);
|
||||
return 0;
|
||||
}
|
||||
} else Zi8ReplaceLastError(0x26C, __zi8_work_data);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
ziWChar Zi8ConvertUC2UserKey(ziChar character, ziU8 language ZI_NEED_WORK) {
|
||||
|
||||
@@ -35,7 +35,14 @@ u8 g_pfd_sddrv_buf[0x200];
|
||||
|
||||
static FAInsertCallback g_attach_func = 0;
|
||||
static FAEjectCallback g_detach_func = 0;
|
||||
u32 g_callback_status;
|
||||
u32 g_event;
|
||||
u32 g_inserted_status;
|
||||
u32 g_removed_status;
|
||||
u32 g_attach_status;
|
||||
u32 g_detach_status;
|
||||
u32 g_sddrv_work0;
|
||||
u32 g_sddrv_work1;
|
||||
|
||||
extern u8 pfd_get_media_drv_char(FADisk*, s8*, u32);
|
||||
extern void pdm_disk_notify_media_insert(FADisk*);
|
||||
@@ -318,10 +325,11 @@ s32 pfd_sddrv_init(FADisk* disk) {
|
||||
}
|
||||
if ((pfd_sddrv_flags(&g_pfd_sddrv_info) & 1) != 0) {
|
||||
OSReport("INFO SD Card driver is already initialize. pfd_sddrv_init()\n");
|
||||
if (disk == g_pfd_sddrv_info.disk) {
|
||||
return 0;
|
||||
sd_result = 0;
|
||||
if (disk != g_pfd_sddrv_info.disk) {
|
||||
sd_result = -44;
|
||||
}
|
||||
return -44;
|
||||
return sd_result;
|
||||
}
|
||||
if ((g_pfd_sddrv_info.flags & 4) == 0) {
|
||||
g_pfd_sddrv_info.bytes_per_sector = 0x200;
|
||||
@@ -499,7 +507,7 @@ s32 pfd_sddrv_finalize(FADisk* disk) {
|
||||
}
|
||||
g_pfd_sddrv_info.device = 0;
|
||||
}
|
||||
g_pfd_sddrv_info.flags = g_pfd_sddrv_info.flags & 0xfffffffe;
|
||||
g_pfd_sddrv_info.flags = g_pfd_sddrv_info.flags & ~1;
|
||||
g_pfd_sddrv_info.media_inserted = 0;
|
||||
g_pfd_sddrv_info.disk = 0;
|
||||
g_pfd_sddrv_info.drive = 0;
|
||||
@@ -1523,7 +1531,7 @@ s32 pfd_sddrv_full_format(void) {
|
||||
return -31;
|
||||
}
|
||||
if (result != 0) {
|
||||
OSReport("ERR Failed to build up and write MBR and BPB fields.\n");
|
||||
OSReport("ERR Failed to build up and write MBR and BPB fields.\n\0\0");
|
||||
return result;
|
||||
}
|
||||
return 0;
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
#include <string.h>
|
||||
|
||||
UHF_MSC_DEVICE uhg_msc_blk_device_tbl[8];
|
||||
u32 uhg_msc_blk_msg_id;
|
||||
static u8* st_uhs_msc_blk_buf;
|
||||
extern void pdm_disk_notify_media_insert(FADisk* disk);
|
||||
s32 uhf_msc_blk_init(FADisk* disk);
|
||||
|
||||
@@ -1,25 +1,25 @@
|
||||
#include <private/fa/pdm.h>
|
||||
#include <revolution/types.h>
|
||||
#define MBR_WORD(buf, offset) (((pf_u32)(buf)[(offset) + 3] << 24) + ((pf_u32)(buf)[(offset) + 2] << 16) + ((pf_u32)(buf)[(offset) + 1] << 8) + (buf)[offset])
|
||||
#define MBR_WORD(buf, offset) ((pf_u32)(buf)[offset] + ((pf_u32)(buf)[(offset) + 1] << 8) + ((pf_u32)(buf)[(offset) + 2] << 16) + ((pf_u32)(buf)[(offset) + 3] << 24))
|
||||
static inline pf_u16 read_boot_u16(pf_u8* buf, pf_u32 offset) {
|
||||
if ((pf_u32)&buf[offset] & 1) { return (buf[offset + 1] << 8) | buf[offset]; }
|
||||
return PF_SWAP_16(*(pf_u16*)&buf[(offset + 1) & ~1]);
|
||||
}
|
||||
|
||||
pf_s32 pdm_part_is_master_boot_sector(pf_u8* buf, pf_u32 total, pf_bool* p_is_mbr) {
|
||||
pf_s16 index;
|
||||
pf_u32 start[4];
|
||||
pf_u32 count[4];
|
||||
pf_u32* p_start;
|
||||
pf_u32* p_count;
|
||||
pf_s16 index;
|
||||
*p_is_mbr = 0;
|
||||
if (buf[510] != 0x55 || buf[511] != 0xAA) { return 2; }
|
||||
p_start = start;
|
||||
p_count = count;
|
||||
for (index = 0; index < 4; index++) {
|
||||
*p_start = 0;
|
||||
*p_start = (((pf_u32)buf[456] << 16) + buf[454]) + (((pf_u32)buf[457] << 24) + ((pf_u32)buf[455] << 8));
|
||||
*p_count = (((pf_u32)buf[460] << 16) + buf[458]) + (((pf_u32)buf[461] << 24) + ((pf_u32)buf[459] << 8));
|
||||
*p_start = (((pf_u32)buf[457] << 24) + (((pf_u32)buf[455] << 8) + (((pf_u32)buf[456] << 16) + buf[454])));
|
||||
*p_count = (((pf_u32)buf[461] << 24) + (((pf_u32)buf[459] << 8) + (((pf_u32)buf[460] << 16) + buf[458])));
|
||||
if (*p_start != 0 && *p_count != 0) {
|
||||
if (index == 0) { *p_is_mbr = 1; }
|
||||
} else {
|
||||
@@ -29,15 +29,11 @@ pf_s32 pdm_part_is_master_boot_sector(pf_u8* buf, pf_u32 total, pf_bool* p_is_mb
|
||||
p_count++;
|
||||
buf += 16;
|
||||
}
|
||||
p_start = start;
|
||||
p_count = count;
|
||||
for (index = 0; index < 4; index++) {
|
||||
if (*p_start + *p_count > total) {
|
||||
if (start[index] + count[index] > total) {
|
||||
if (index == 0) { *p_is_mbr = 0; }
|
||||
return 2;
|
||||
}
|
||||
p_start++;
|
||||
p_count++;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -141,7 +137,7 @@ pf_s32 pdm_part_get_start_sector(PDM_PARTITION* p_part) {
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
static inline pf_u32 partition_physical_sector(PDM_PARTITION* p_part, pf_u32 sector, pf_u32 bps) {
|
||||
pf_u32 pdm_part_chg_ltop(PDM_PARTITION* p_part, pf_u32 sector, pf_u32 bps) {
|
||||
pf_u16 media_bps;
|
||||
pf_u32 ratio;
|
||||
pf_u32 start;
|
||||
@@ -158,9 +154,6 @@ static inline pf_u32 partition_physical_sector(PDM_PARTITION* p_part, pf_u32 sec
|
||||
else if (ratio == 8) { start >>= 3; }
|
||||
return sector + start;
|
||||
}
|
||||
pf_u32 pdm_part_chg_ltop(PDM_PARTITION* p_part, pf_u32 sector, pf_u32 bps) NO_INLINE {
|
||||
return partition_physical_sector(p_part, sector, bps);
|
||||
}
|
||||
pf_s32 pdm_part_get_partition(PDM_DISK* p_disk, pf_u32 id, PDM_PARTITION** pp_part) {
|
||||
pf_s32 err;
|
||||
pf_u16 index;
|
||||
|
||||
@@ -603,31 +603,35 @@ pf_s32 PFCLUSTER_InsertCluster(PFCLUSTER_ENT_ITER* p_iter, PF_DIR_ENT* p_ent,
|
||||
|
||||
pf_s32 PFCLUSTER_DeleteCluster(PFCLUSTER_ENT_ITER* p_iter, PF_DIR_ENT* p_ent,
|
||||
pf_u32 cluster_index, pf_u32 num_clusters, pf_u32* p_deleted_clusters) {
|
||||
struct ClusterDeletion {
|
||||
pf_u32 length;
|
||||
pf_u32 cluster_size;
|
||||
pf_u32 position;
|
||||
};
|
||||
struct ClusterDeletion deletion;
|
||||
pf_s32 err;
|
||||
pf_u32 previous_cluster;
|
||||
pf_u32 next_cluster;
|
||||
pf_u32 first_deleted_cluster;
|
||||
pf_u32 last_deleted_cluster;
|
||||
PF_VOLUME* p_vol;
|
||||
pf_u32 cluster_size;
|
||||
pf_u32 byte_position;
|
||||
|
||||
p_vol = p_ent->p_vol;
|
||||
cluster_size = p_vol->bpb.bytes_per_sector << p_vol->bpb.log2_sectors_per_cluster;
|
||||
byte_position = cluster_index * cluster_size;
|
||||
deletion.cluster_size = p_vol->bpb.bytes_per_sector << p_vol->bpb.log2_sectors_per_cluster;
|
||||
deletion.position = cluster_index * deletion.cluster_size;
|
||||
err = PFFAT_TraceClustersChain(&p_iter->ffd, *p_iter->ffd.p_start_cluster,
|
||||
byte_position, &previous_cluster, &first_deleted_cluster);
|
||||
deletion.position, &previous_cluster, &first_deleted_cluster);
|
||||
if (err != 0) return err;
|
||||
if (cluster_index == 0) first_deleted_cluster = p_ent->start_cluster;
|
||||
num_clusters = num_clusters * cluster_size;
|
||||
if (num_clusters > p_ent->file_size - byte_position) num_clusters = p_ent->file_size - byte_position;
|
||||
err = PFFAT_TraceClustersChain(&p_iter->ffd, first_deleted_cluster, num_clusters, &last_deleted_cluster, &next_cluster);
|
||||
deletion.length = num_clusters * deletion.cluster_size;
|
||||
if (deletion.length > p_ent->file_size - deletion.position) deletion.length = p_ent->file_size - deletion.position;
|
||||
err = PFFAT_TraceClustersChain(&p_iter->ffd, first_deleted_cluster, deletion.length, &last_deleted_cluster, &next_cluster);
|
||||
if (err != 0) return err;
|
||||
if (cluster_index == 0) {
|
||||
if (next_cluster == PFFAT_GetValueOfEOC2(p_vol)) next_cluster = 0;
|
||||
p_ent->start_cluster = next_cluster;
|
||||
}
|
||||
p_ent->file_size -= num_clusters;
|
||||
p_ent->file_size -= deletion.length;
|
||||
PFENT_getcurrentDateTimeForEnt(&p_ent->modify_date, &p_ent->modify_time);
|
||||
p_ent->access_date = p_ent->modify_date;
|
||||
err = PFENT_updateEntry(p_ent, 1);
|
||||
@@ -636,13 +640,13 @@ pf_s32 PFCLUSTER_DeleteCluster(PFCLUSTER_ENT_ITER* p_iter, PF_DIR_ENT* p_ent,
|
||||
err = PFCACHE_FlushDataCacheSpecific(p_vol, PF_NULL);
|
||||
if (err != 0) return err;
|
||||
}
|
||||
err = PFFAT_FreeChain(&p_iter->ffd, first_deleted_cluster, -1U, num_clusters);
|
||||
err = PFFAT_FreeChain(&p_iter->ffd, first_deleted_cluster, -1U, deletion.length);
|
||||
if (err != 0) return err;
|
||||
if (cluster_index != 0) {
|
||||
err = PFFAT_WriteValueToSpecifiedCluster(p_vol, previous_cluster, next_cluster);
|
||||
if (err != 0) return err;
|
||||
}
|
||||
*p_deleted_clusters = num_clusters / cluster_size;
|
||||
if (num_clusters % cluster_size != 0) ++*p_deleted_clusters;
|
||||
*p_deleted_clusters = deletion.length / deletion.cluster_size;
|
||||
if (deletion.length % deletion.cluster_size != 0) ++*p_deleted_clusters;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -24,6 +24,15 @@ typedef struct PFDIR_FAT_HINT {
|
||||
pf_u32 previous_cluster;
|
||||
} PFDIR_FAT_HINT;
|
||||
|
||||
pf_s8 pf_dir_sep_backslash[] = "\\";
|
||||
pf_s8 pf_dir_sep_slash[] = "/";
|
||||
extern pf_s8 pf_dir_volume_sep[];
|
||||
extern pf_s8 pf_dir_wildcard[];
|
||||
extern pf_s8 pf_dir_parent_name[];
|
||||
extern pf_s8 pf_dir_current_name[];
|
||||
__declspec(section ".sdata2") pf_u8 pf_dir_rename_marker[1] = {0xE5};
|
||||
__declspec(section ".sdata2") pf_u8 pf_dir_move_marker[1] = {0xE5};
|
||||
|
||||
typedef struct PFDIR_STR {
|
||||
const pf_s8* p_head;
|
||||
const pf_s8* p_tail;
|
||||
@@ -143,8 +152,8 @@ extern pf_s32 PFFAT_FreeChain(PFDIR_FFD* ffd, pf_u32 start_cluster, pf_u32 chain
|
||||
static inline pf_u32 current_directory_is_open(PF_VOLUME* volume, pf_u32 cluster) {
|
||||
pf_u32 index;
|
||||
for (index = 0; index < 4; index++) {
|
||||
if (pf_vol_set.volume_state.volumes[index].p_vol == volume) {
|
||||
PFDIR_VOLUME_DIRS* state = (PFDIR_VOLUME_DIRS*)volume;
|
||||
if (volume == pf_vol_set.volume_state.volumes[index].p_vol) {
|
||||
PFDIR_VOLUME_DIRS* state = (PFDIR_VOLUME_DIRS*)pf_vol_set.volume_state.volumes[index].p_vol;
|
||||
PF_CUR_DIR* directory = state->current_dirs;
|
||||
pf_u32 slot;
|
||||
for (slot = 0; slot < 4; slot++, directory++) {
|
||||
@@ -286,8 +295,8 @@ pf_s32 PFDIR_p_opendir(PF_VOLUME* volume, PFDIR_STR* path, PFDIR_DIR** opened_di
|
||||
PFDIR_DIR* dir;
|
||||
pf_s32 error;
|
||||
|
||||
if ((PFSTR_StrNCmp(path, (const pf_s8*)"\\", 1, 0, 1) == 0 ||
|
||||
PFSTR_StrNCmp(path, (const pf_s8*)"/", 1, 0, 1) == 0) &&
|
||||
if ((PFSTR_StrNCmp(path, pf_dir_sep_backslash, 1, 0, 1) == 0 ||
|
||||
PFSTR_StrNCmp(path, pf_dir_sep_slash, 1, 0, 1) == 0) &&
|
||||
PFSTR_StrNCmp(path, (const pf_s8*)"", 1, 1, 1) == 0) {
|
||||
error = PFENT_GetRootDir(volume, &entry);
|
||||
if (error != 0) {
|
||||
@@ -295,22 +304,22 @@ pf_s32 PFDIR_p_opendir(PF_VOLUME* volume, PFDIR_STR* path, PFDIR_DIR** opened_di
|
||||
}
|
||||
goto open_directory;
|
||||
} else if (PFSTR_StrNumChar(path, 1) == 2 &&
|
||||
PFSTR_StrNCmp(path, (const pf_s8*)":", 1, 1, 1) == 0) {
|
||||
PFSTR_StrNCmp(path, pf_dir_volume_sep, 1, 1, 1) == 0) {
|
||||
error = PFVOL_GetCurrentDir(volume, &entry);
|
||||
goto open_directory;
|
||||
} else if (PFSTR_StrNumChar(path, 1) == 3 &&
|
||||
PFSTR_StrNCmp(path, (const pf_s8*)":", 1, 1, 1) == 0 &&
|
||||
(PFSTR_StrNCmp(path, (const pf_s8*)"\\", 1, 2, 1) == 0 ||
|
||||
PFSTR_StrNCmp(path, (const pf_s8*)"/", 1, 2, 1) == 0)) {
|
||||
PFSTR_StrNCmp(path, pf_dir_volume_sep, 1, 1, 1) == 0 &&
|
||||
(PFSTR_StrNCmp(path, pf_dir_sep_backslash, 1, 2, 1) == 0 ||
|
||||
PFSTR_StrNCmp(path, pf_dir_sep_slash, 1, 2, 1) == 0)) {
|
||||
error = PFENT_GetRootDir(volume, &entry);
|
||||
if (error != 0) {
|
||||
return error;
|
||||
}
|
||||
goto open_directory;
|
||||
} else {
|
||||
if (PFSTR_StrNCmp(path, (const pf_s8*)":", 1, 1, 1) == 0 &&
|
||||
(PFSTR_StrNCmp(path, (const pf_s8*)"\\", 1, 2, 1) == 0 ||
|
||||
PFSTR_StrNCmp(path, (const pf_s8*)"/", 1, 2, 1) == 0)) {
|
||||
if (PFSTR_StrNCmp(path, pf_dir_volume_sep, 1, 1, 1) == 0 &&
|
||||
(PFSTR_StrNCmp(path, pf_dir_sep_backslash, 1, 2, 1) == 0 ||
|
||||
PFSTR_StrNCmp(path, pf_dir_sep_slash, 1, 2, 1) == 0)) {
|
||||
PFSTR_MoveStrPos(path, 2);
|
||||
}
|
||||
error = PFENT_ITER_GetEntryOfPath(&iter, &entry, volume, path, 0);
|
||||
@@ -361,7 +370,7 @@ pf_s32 PFDIR_p_readdir(PFDIR_DIR* dir, PFDIR_READ_RESULT* result) {
|
||||
dir->next_position = 0;
|
||||
}
|
||||
do {
|
||||
PFSTR_InitStr(&pattern, (const pf_s8*)"*", 1);
|
||||
PFSTR_InitStr(&pattern, pf_dir_wildcard, 1);
|
||||
PFSTR_SetLocalStr(&pattern, 0);
|
||||
error = PFENT_findEntryPos(&ffd, &entry, dir->current_position, &pattern, 0x7F, 0,
|
||||
&logical_position, &entry_position);
|
||||
@@ -381,7 +390,7 @@ pf_s32 PFDIR_p_readdir(PFDIR_DIR* dir, PFDIR_READ_RESULT* result) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
extern pf_s32 PFENT_findEntry(PFDIR_FFD*, PF_DIR_ENT*, pf_u32, PFDIR_STR*, pf_u8, pf_u32*, pf_u32*);
|
||||
extern pf_s32 PFENT_findEntry(PFDIR_FFD*, PF_DIR_ENT*, pf_u32, PFDIR_STR*, pf_u32, pf_u32);
|
||||
extern pf_s32 PFFAT_GetSectorSpecified(PFDIR_FFD*, pf_u32, pf_u32, pf_u32*);
|
||||
extern pf_s32 PFPATH_transformInUnicode(pf_u16*, const pf_s8*);
|
||||
extern void PFPATH_SetSearchPattern(pf_s8*, pf_u16*, PFDIR_STR*);
|
||||
@@ -406,7 +415,12 @@ extern pf_s32 PFFAT_GetSectorSpecified(PFDIR_FFD* ffd, pf_u32 index, pf_u32 allo
|
||||
extern void PFPATH_AdjustExtShortName(pf_s8* name, pf_u32 position);
|
||||
|
||||
extern pf_s32 PFCACHE_AllocateDataPage(PF_VOLUME* volume, pf_u32 sector, PF_CACHE_PAGE** page, pf_u32* size);
|
||||
extern void PFCACHE_FreeDataPage(PF_VOLUME* volume, PF_CACHE_PAGE* page);
|
||||
extern void PFCACHE_FreeDataPage(PF_VOLUME* volume, PF_CACHE_PAGE* page);pf_s8 pf_dir_volume_sep[] = ":";
|
||||
pf_s8 pf_dir_wildcard[] = "*";
|
||||
pf_s8 pf_dir_parent_name[] = "..";
|
||||
pf_s8 pf_dir_current_name[] = ".";
|
||||
|
||||
|
||||
static inline void set_dot_entry(pf_u8* buffer) {
|
||||
buffer[0] = '.';
|
||||
buffer[1] = ' ';
|
||||
@@ -453,7 +467,7 @@ extern pf_s32 PFENT_ITER_GetEntryOfPattern(PF_ENT_ITER* iter, PF_DIR_ENT* entry,
|
||||
extern pf_s32 PFENT_ITER_FindEntry(PF_ENT_ITER* iter, PF_DIR_ENT* entry, PFDIR_STR* pattern,
|
||||
pf_u8 attributes, pf_u32 start, pf_u32* found);
|
||||
extern pf_s32 PFENT_findEntry(PFDIR_FFD* ffd, PF_DIR_ENT* entry, pf_u32 start, PFDIR_STR* pattern,
|
||||
pf_u8 attributes, pf_u32* logical_position, pf_u32* entry_position);
|
||||
pf_u32 attr_required, pf_u32 attr_forbidden);
|
||||
extern pf_u32 PFSTR_GetCodeMode(PFDIR_STR* path);
|
||||
extern const pf_s8* PFSTR_GetStrPos(PFDIR_STR* path, pf_u32 target);
|
||||
extern pf_s32 PFPATH_SplitPathPattern(PF_STR* path, PFDIR_STR* directory, PFDIR_STR* pattern);
|
||||
@@ -656,7 +670,7 @@ pf_s32 PFDIR_p_chdir(PF_VOLUME* p_vol, PFDIR_STR* p_path_str) {
|
||||
PF_ENT_ITER iter;
|
||||
PF_DIR_ENT entry_dir;
|
||||
|
||||
if (((PFSTR_StrNCmp(p_path_str, (pf_s8*)"\\", 1U, 0, 1U) == 0) || (PFSTR_StrNCmp(p_path_str, (pf_s8*)"/", 1U, 0, 1U) == 0)) &&
|
||||
if (((PFSTR_StrNCmp(p_path_str, pf_dir_sep_backslash, 1U, 0, 1U) == 0) || (PFSTR_StrNCmp(p_path_str, pf_dir_sep_slash, 1U, 0, 1U) == 0)) &&
|
||||
(PFSTR_StrNCmp(p_path_str, (pf_s8*)"", 1U, 1, 1U) == 0)) {
|
||||
err = PFENT_GetRootDir(p_vol, &entry_dir);
|
||||
if (err != 0) {
|
||||
@@ -669,11 +683,11 @@ pf_s32 PFDIR_p_chdir(PF_VOLUME* p_vol, PFDIR_STR* p_path_str) {
|
||||
|
||||
return 0;
|
||||
}
|
||||
if ((PFSTR_StrNumChar(p_path_str, 1U) == 2) && (PFSTR_StrNCmp(p_path_str, (pf_s8*)":", 1U, 1, 1U) == 0)) {
|
||||
if ((PFSTR_StrNumChar(p_path_str, 1U) == 2) && (PFSTR_StrNCmp(p_path_str, pf_dir_volume_sep, 1U, 1, 1U) == 0)) {
|
||||
return 0;
|
||||
}
|
||||
if ((PFSTR_StrNumChar(p_path_str, 1U) == 3) && (PFSTR_StrNCmp(p_path_str, (pf_s8*)":", 1U, 1, 1U) == 0) &&
|
||||
((PFSTR_StrNCmp(p_path_str, (pf_s8*)"\\", 1U, 2, 1U) == 0) || (PFSTR_StrNCmp(p_path_str, (pf_s8*)"/", 1U, 2, 1U) == 0))) {
|
||||
if ((PFSTR_StrNumChar(p_path_str, 1U) == 3) && (PFSTR_StrNCmp(p_path_str, pf_dir_volume_sep, 1U, 1, 1U) == 0) &&
|
||||
((PFSTR_StrNCmp(p_path_str, pf_dir_sep_backslash, 1U, 2, 1U) == 0) || (PFSTR_StrNCmp(p_path_str, pf_dir_sep_slash, 1U, 2, 1U) == 0))) {
|
||||
err = PFENT_GetRootDir(p_vol, &entry_dir);
|
||||
if (err != 0) {
|
||||
return err;
|
||||
@@ -685,8 +699,8 @@ pf_s32 PFDIR_p_chdir(PF_VOLUME* p_vol, PFDIR_STR* p_path_str) {
|
||||
|
||||
return 0;
|
||||
}
|
||||
if ((PFSTR_StrNCmp(p_path_str, (pf_s8*)":", 1U, 1, 1U) == 0) &&
|
||||
((PFSTR_StrNCmp(p_path_str, (pf_s8*)"\\", 1U, 2, 1U) == 0) || (PFSTR_StrNCmp(p_path_str, (pf_s8*)"/", 1U, 2, 1U) == 0))) {
|
||||
if ((PFSTR_StrNCmp(p_path_str, pf_dir_volume_sep, 1U, 1, 1U) == 0) &&
|
||||
((PFSTR_StrNCmp(p_path_str, pf_dir_sep_backslash, 1U, 2, 1U) == 0) || (PFSTR_StrNCmp(p_path_str, pf_dir_sep_slash, 1U, 2, 1U) == 0))) {
|
||||
PFSTR_MoveStrPos(p_path_str, 2);
|
||||
}
|
||||
err = PFENT_ITER_GetEntryOfPath(&iter, &entry_dir, p_vol, p_path_str, 0);
|
||||
@@ -869,17 +883,18 @@ pf_s32 PFDIR_p_rename(PF_VOLUME* volume, PF_STR* old_path, PF_STR* new_path) {
|
||||
pf_u32 position;
|
||||
pf_u32 found;
|
||||
pf_u16 time;
|
||||
pf_u8 deleted_marker[1] = {0xE5};
|
||||
pf_u16 saved_initial_char = 0;
|
||||
pf_u8 deleted_marker[1];
|
||||
pf_u32 sector;
|
||||
pf_u32* next_sector;
|
||||
pf_s32 filename_length;
|
||||
pf_s32 parse_error;
|
||||
pf_s32 allocation_error = 0;
|
||||
pf_u16 saved_initial_char = 0;
|
||||
pf_s32 error;
|
||||
pf_u32 index;
|
||||
PF_DIR_ENT* update_entry;
|
||||
|
||||
deleted_marker[0] = pf_dir_rename_marker[0];
|
||||
error = PFPATH_SplitPath((PFDIR_STR*)old_path, &directory, &source_name);
|
||||
if (error != 0) { return error; }
|
||||
if (PFSTR_GetCodeMode(&source_name) == 2) {
|
||||
@@ -900,8 +915,9 @@ pf_s32 PFDIR_p_rename(PF_VOLUME* volume, PF_STR* old_path, PF_STR* new_path) {
|
||||
if (found == 0) { return 3; }
|
||||
if ((source_entry.attr & 8) != 0) { return 3; }
|
||||
if ((source_entry.attr & 1) != 0) { return 0x18; }
|
||||
if (PFSTR_StrNCmp((PFDIR_STR*)new_path, (const pf_s8*)":", 1, 1, 1) == 0 &&
|
||||
volume != PFPATH_GetVolumeFromPath(new_path)) { return 0x1F; }
|
||||
if (PFSTR_StrNCmp((PFDIR_STR*)new_path, pf_dir_volume_sep, 1, 1, 1) == 0) {
|
||||
if (volume != PFPATH_GetVolumeFromPath(new_path)) { return 0x1F; }
|
||||
}
|
||||
error = PFPATH_SplitPath((PFDIR_STR*)new_path, &directory, &destination_name);
|
||||
if (error != 0) { return error; }
|
||||
if (PFSTR_GetCodeMode(&destination_name) == 2) {
|
||||
@@ -925,7 +941,7 @@ pf_s32 PFDIR_p_rename(PF_VOLUME* volume, PF_STR* old_path, PF_STR* new_path) {
|
||||
}
|
||||
destination_entry.start_cluster = source_parent.start_cluster;
|
||||
PFFAT_InitFFD(&destination_iter.ffd, &destination_hint, volume, &destination_entry.start_cluster);
|
||||
error = PFENT_findEntry(&destination_iter.ffd, &destination_entry, 0, &destination_name, 0x7F, 0, 0);
|
||||
error = PFENT_findEntry(&destination_iter.ffd, &destination_entry, 0, &destination_name, 0x7F, 0);
|
||||
if (error == 0) { return 8; }
|
||||
if (error != 0 && error != 3) { return error; }
|
||||
if ((source_entry.attr & 0x10) == 0) {
|
||||
@@ -933,15 +949,15 @@ pf_s32 PFDIR_p_rename(PF_VOLUME* volume, PF_STR* old_path, PF_STR* new_path) {
|
||||
} else {
|
||||
if (directory_is_open(&source_entry) != 0) { return 0x13; }
|
||||
if (current_directory_is_open(source_entry.p_vol, source_entry.start_cluster) != 0) { return 0x1C; }
|
||||
if (PFSTR_StrNCmp(&source_name, (const pf_s8*)"..", 1, 0, 2) == 0) { return 0x1C; }
|
||||
if (PFSTR_StrNCmp(&source_name, (const pf_s8*)".", 1, 0, 1) == 0) { return 0x1C; }
|
||||
if (PFSTR_StrNCmp(&source_name, pf_dir_parent_name, 1, 0, 2) == 0) { return 0x1C; }
|
||||
if (PFSTR_StrNCmp(&source_name, pf_dir_current_name, 1, 0, 1) == 0) { return 0x1C; }
|
||||
{
|
||||
PFDIR_SFD* file = ((PFDIR_VOLUME_DIRS*)volume)->sfds;
|
||||
pf_u32 directory_sector = volume->bpb.first_data_sector +
|
||||
((source_entry.start_cluster - 2) << volume->bpb.log2_sectors_per_cluster);
|
||||
for (index = 0; index < 5; index++, file++) {
|
||||
if ((file->stat & 1) != 0 && (file->stat & 2) != 0) {
|
||||
if (file->dir_entry.p_vol == volume && file->dir_entry.entry_sector == directory_sector) { return 0x13; }
|
||||
if (volume == file->dir_entry.p_vol && directory_sector == file->dir_entry.entry_sector) { return 0x13; }
|
||||
found = 0;
|
||||
error = PFENT_ITER_FindCluster(&file->dir_entry, source_entry.start_cluster, &found);
|
||||
if (error != 0) { return error; }
|
||||
@@ -961,6 +977,7 @@ pf_s32 PFDIR_p_rename(PF_VOLUME* volume, PF_STR* old_path, PF_STR* new_path) {
|
||||
destination_entry.num_entry_LFNs = 0;
|
||||
PFENT_getcurrentDateTimeForEnt(&destination_entry.access_date, &time);
|
||||
error = PFENT_updateEntry(&destination_entry, 1);
|
||||
if (error != 0) { return error; }
|
||||
goto finish_rename;
|
||||
}
|
||||
if (source_entry.num_entry_LFNs != 0 && (source_entry.small_letter_flag & 0x18) == 0) {
|
||||
@@ -969,13 +986,13 @@ pf_s32 PFDIR_p_rename(PF_VOLUME* volume, PF_STR* old_path, PF_STR* new_path) {
|
||||
for (index = 1; index <= source_entry.num_entry_LFNs; index++) {
|
||||
error = PFENT_ITER_Retreat(&source_iter, 0);
|
||||
if (error != 0) { return error; }
|
||||
error = PFSEC_WriteData(volume, deleted_marker, source_iter.sector,
|
||||
error = PFSEC_WriteData(volume, (pf_u8*)&deleted_marker, source_iter.sector,
|
||||
source_iter.offset, 1, &written, 0);
|
||||
if (error != 0) { return error; }
|
||||
if (written != 1) { return 0x11; }
|
||||
}
|
||||
}
|
||||
error = PFSEC_WriteData(volume, deleted_marker, source_entry.entry_sector,
|
||||
error = PFSEC_WriteData(volume, (pf_u8*)&deleted_marker, source_entry.entry_sector,
|
||||
source_entry.entry_offset, 1, &written, 0);
|
||||
if (error != 0) { return error; }
|
||||
if (written != 1) { return 0x11; }
|
||||
@@ -1034,7 +1051,7 @@ pf_s32 PFDIR_p_rename(PF_VOLUME* volume, PF_STR* old_path, PF_STR* new_path) {
|
||||
}
|
||||
error = PFENT_updateEntry(update_entry, 1);
|
||||
finish_rename:
|
||||
if (error != 0) { allocation_error = error; }
|
||||
if (error != 0) { return error; }
|
||||
return allocation_error;
|
||||
}
|
||||
pf_s32 PFDIR_p_move(PF_VOLUME* volume, PF_STR* old_path, PF_STR* new_path) {
|
||||
@@ -1056,8 +1073,7 @@ pf_s32 PFDIR_p_move(PF_VOLUME* volume, PF_STR* old_path, PF_STR* new_path) {
|
||||
pf_u32 position;
|
||||
pf_u32 found;
|
||||
pf_u16 time;
|
||||
pf_u8 deleted_marker[1] = {0xE5};
|
||||
pf_u16 saved_initial_char = 0;
|
||||
pf_u8 deleted_marker[1];
|
||||
pf_u32 sector;
|
||||
pf_u32* next_sector;
|
||||
pf_s32 filename_length;
|
||||
@@ -1066,8 +1082,10 @@ pf_s32 PFDIR_p_move(PF_VOLUME* volume, PF_STR* old_path, PF_STR* new_path) {
|
||||
pf_s32 error;
|
||||
pf_u32 index;
|
||||
pf_u32 lfn_index;
|
||||
pf_u16 saved_initial_char = 0;
|
||||
PF_DIR_ENT* update_entry;
|
||||
|
||||
deleted_marker[0] = pf_dir_move_marker[0];
|
||||
error = PFENT_ITER_GetEntryOfPath(&source_iter, &source_entry, volume, (PFDIR_STR*)old_path, 0);
|
||||
if (error != 0) { return error; }
|
||||
if (volume != PFPATH_GetVolumeFromPath(new_path)) { return 0x1F; }
|
||||
@@ -1083,7 +1101,7 @@ pf_s32 PFDIR_p_move(PF_VOLUME* volume, PF_STR* old_path, PF_STR* new_path) {
|
||||
if (error != 0) { return error; }
|
||||
destination_entry.start_cluster = destination_parent.start_cluster;
|
||||
PFFAT_InitFFD(&destination_iter.ffd, &destination_hint, volume, &destination_entry.start_cluster);
|
||||
error = PFENT_findEntry(&destination_iter.ffd, &destination_entry, 0, &destination_name, 0x7F, 0, 0);
|
||||
error = PFENT_findEntry(&destination_iter.ffd, &destination_entry, 0, &destination_name, 0x7F, 0);
|
||||
if (error == 0) {
|
||||
if (destination_entry.entry_sector == source_entry.entry_sector &&
|
||||
destination_entry.entry_offset == source_entry.entry_offset) { return 0; }
|
||||
@@ -1097,15 +1115,15 @@ pf_s32 PFDIR_p_move(PF_VOLUME* volume, PF_STR* old_path, PF_STR* new_path) {
|
||||
if (current_directory_is_open(source_entry.p_vol, source_entry.start_cluster) != 0) { return 0x1C; }
|
||||
error = PFPATH_SplitPath((PFDIR_STR*)old_path, &directory, &source_name);
|
||||
if (error != 0) { return error; }
|
||||
if (PFSTR_StrNCmp(&source_name, (const pf_s8*)"..", 1, 0, 2) == 0) { return 10; }
|
||||
if (PFSTR_StrNCmp(&source_name, (const pf_s8*)".", 1, 0, 1) == 0) { return 10; }
|
||||
if (PFSTR_StrNCmp(&source_name, pf_dir_parent_name, 1, 0, 2) == 0) { return 10; }
|
||||
if (PFSTR_StrNCmp(&source_name, pf_dir_current_name, 1, 0, 1) == 0) { return 10; }
|
||||
{
|
||||
PFDIR_SFD* file = ((PFDIR_VOLUME_DIRS*)volume)->sfds;
|
||||
pf_u32 directory_sector = volume->bpb.first_data_sector +
|
||||
((source_entry.start_cluster - 2) << volume->bpb.log2_sectors_per_cluster);
|
||||
for (index = 0; index < 5; index++, file++) {
|
||||
if ((file->stat & 1) != 0 && (file->stat & 2) != 0) {
|
||||
if (file->dir_entry.p_vol == volume && file->dir_entry.entry_sector == directory_sector) { return 0x13; }
|
||||
if (volume == file->dir_entry.p_vol && directory_sector == file->dir_entry.entry_sector) { return 0x13; }
|
||||
found = 0;
|
||||
error = PFENT_ITER_FindCluster(&file->dir_entry, source_entry.start_cluster, &found);
|
||||
if (error != 0) { return error; }
|
||||
@@ -1118,9 +1136,9 @@ pf_s32 PFDIR_p_move(PF_VOLUME* volume, PF_STR* old_path, PF_STR* new_path) {
|
||||
pf_u32 parent_cluster;
|
||||
if (destination_entry.start_cluster == 1 || destination_entry.start_cluster == 0) { break; }
|
||||
PFFAT_InitFFD(&destination_iter.ffd, &destination_hint, volume, &destination_entry.start_cluster);
|
||||
PFSTR_InitStr(&parent_name, (const pf_s8*)"..", 1);
|
||||
PFSTR_InitStr(&parent_name, pf_dir_parent_name, 1);
|
||||
PFSTR_SetLocalStr(&parent_name, 0);
|
||||
error = PFENT_findEntry(&destination_iter.ffd, &destination_entry, 0, &parent_name, 0x7F, 0, 0);
|
||||
error = PFENT_findEntry(&destination_iter.ffd, &destination_entry, 0, &parent_name, 0x7F, 0);
|
||||
if (error != 0) { return error; }
|
||||
parent_cluster = destination_entry.start_cluster;
|
||||
if (parent_cluster == 1 || parent_cluster == 0) { break; }
|
||||
@@ -1145,13 +1163,13 @@ pf_s32 PFDIR_p_move(PF_VOLUME* volume, PF_STR* old_path, PF_STR* new_path) {
|
||||
for (index = 1; index <= source_entry.num_entry_LFNs; index++) {
|
||||
error = PFENT_ITER_Retreat(&source_iter, 0);
|
||||
if (error != 0) { return error; }
|
||||
error = PFSEC_WriteData(volume, deleted_marker, source_iter.sector,
|
||||
error = PFSEC_WriteData(volume, (pf_u8*)&deleted_marker, source_iter.sector,
|
||||
source_iter.offset, 1, &written, 0);
|
||||
if (error != 0) { return error; }
|
||||
if (written != 1) { return 0x11; }
|
||||
}
|
||||
}
|
||||
error = PFSEC_WriteData(volume, deleted_marker, source_entry.entry_sector,
|
||||
error = PFSEC_WriteData(volume, (pf_u8*)&deleted_marker, source_entry.entry_sector,
|
||||
source_entry.entry_offset, 1, &written, 0);
|
||||
if (error != 0) { return error; }
|
||||
if (written != 1) { return 0x11; }
|
||||
@@ -1180,7 +1198,7 @@ pf_s32 PFDIR_p_move(PF_VOLUME* volume, PF_STR* old_path, PF_STR* new_path) {
|
||||
if (allocation_error != 0) {
|
||||
if (source_entry.num_entry_LFNs != 0 && (source_entry.small_letter_flag & 0x18) == 0) {
|
||||
source_entry.long_name[0] = saved_initial_char;
|
||||
source_entry.entry_offset -= (source_entry.num_entry_LFNs & 0xff) * 32;
|
||||
source_entry.entry_offset -= (pf_u16)((source_entry.num_entry_LFNs & 0xff) * 32);
|
||||
}
|
||||
update_entry = &source_entry;
|
||||
} else {
|
||||
@@ -1190,9 +1208,9 @@ pf_s32 PFDIR_p_move(PF_VOLUME* volume, PF_STR* old_path, PF_STR* new_path) {
|
||||
update_entry = &destination_entry;
|
||||
if ((source_entry.attr & 0x10) != 0) {
|
||||
PFFAT_InitFFD(&source_iter.ffd, &source_hint, volume, &source_entry.start_cluster);
|
||||
PFSTR_InitStr(&parent_name, (const pf_s8*)"..", 1);
|
||||
PFSTR_InitStr(&parent_name, pf_dir_parent_name, 1);
|
||||
PFSTR_SetLocalStr(&parent_name, 0);
|
||||
error = PFENT_findEntry(&source_iter.ffd, &source_entry, 0, &parent_name, 0x7F, 0, 0);
|
||||
error = PFENT_findEntry(&source_iter.ffd, &source_entry, 0, &parent_name, 0x7F, 0);
|
||||
if (error != 0) { return error; }
|
||||
if (destination_parent.start_cluster == 1 || destination_parent.start_cluster == 0 ||
|
||||
(destination_parent.start_cluster == 2 && volume->bpb.fat_type == FAT_32)) {
|
||||
|
||||
@@ -29,6 +29,12 @@ typedef struct PFITER_ENT_ITER {
|
||||
pf_u8 log2_entries_per_sector;
|
||||
} PFITER_ENT_ITER;
|
||||
|
||||
__declspec(section ".sdata") pf_s8 g_pfent_iter_parent_dir[] = "..";
|
||||
__declspec(section ".sdata") pf_s8 g_pfent_iter_current_dir[] = ".";
|
||||
__declspec(section ".sdata") pf_s8 g_pfent_iter_colon[] = ":";
|
||||
__declspec(section ".sdata") pf_s8 g_pfent_iter_backslash[] = "\\";
|
||||
__declspec(section ".sdata") pf_s8 g_pfent_iter_slash[] = "/";
|
||||
|
||||
typedef struct PFITER_BPB {
|
||||
pf_u16 bytes_per_sector;
|
||||
pf_u16 num_reserved_sectors;
|
||||
@@ -234,8 +240,8 @@ pf_s32 PFENT_ITER_DoFindEntry(PFITER_ENT_ITER* p_iter, PF_DIR_ENT* p_ent, PF_STR
|
||||
pf_u32 index_search_from;
|
||||
pf_u32 is_extsfn = 0;
|
||||
*p_is_found = 0;
|
||||
if (PFSTR_StrCmp(p_pattern, (pf_s8*)"..") == 0 && (p_ent->attr & 0x10) && p_ent->start_cluster == 1) return 2;
|
||||
if (PFSTR_StrCmp(p_pattern, (pf_s8*)".") == 0) {
|
||||
if (PFSTR_StrCmp(p_pattern, g_pfent_iter_parent_dir) == 0 && (p_ent->attr & 0x10) && p_ent->start_cluster == 1) return 2;
|
||||
if (PFSTR_StrCmp(p_pattern, g_pfent_iter_current_dir) == 0) {
|
||||
*p_is_found = 1;
|
||||
return 0;
|
||||
}
|
||||
@@ -339,10 +345,10 @@ pf_s32 PFENT_ITER_DoGetEntry(PFITER_ENT_ITER* p_iter, PF_DIR_ENT* p_ent, PF_VOLU
|
||||
pf_s32 err;
|
||||
pf_u32 code_mode;
|
||||
|
||||
if (PFSTR_StrNCmp(p_path, (pf_s8*)":", 1, 1, 1) == 0) {
|
||||
if (PFSTR_StrNCmp(p_path, g_pfent_iter_colon, 1, 1, 1) == 0) {
|
||||
PFSTR_MoveStrPos(p_path, 2);
|
||||
}
|
||||
if ((PFSTR_StrNCmp(p_path, (pf_s8*)"\\", 1, 0, 1) == 0 || PFSTR_StrNCmp(p_path, (pf_s8*)"/", 1, 0, 1) == 0)) {
|
||||
if ((PFSTR_StrNCmp(p_path, g_pfent_iter_backslash, 1, 0, 1) == 0 || PFSTR_StrNCmp(p_path, g_pfent_iter_slash, 1, 0, 1) == 0)) {
|
||||
err = PFENT_GetRootDir(p_vol, p_ent);
|
||||
if (err != 0) {
|
||||
return err;
|
||||
@@ -528,7 +534,7 @@ pf_s32 PFENT_ITER_FindCluster(PF_DIR_ENT* p_ent, pf_u32 cluster, pf_bool* p_is_f
|
||||
while (iter.index != 0) {
|
||||
err = PFENT_ITER_LoadEntry(&iter);
|
||||
if (err != 0) return err;
|
||||
if (pf_strncmp((pf_s8*)iter.buf, (pf_s8*)"..", 2) == 0) break;
|
||||
if (pf_strncmp((pf_s8*)iter.buf, g_pfent_iter_parent_dir, 2) == 0) break;
|
||||
err = PFENT_ITER_Retreat(&iter, 0);
|
||||
if (err != 0) return err;
|
||||
if (current_cluster == cluster) {
|
||||
@@ -552,7 +558,7 @@ pf_s32 PFENT_ITER_FindCluster(PF_DIR_ENT* p_ent, pf_u32 cluster, pf_bool* p_is_f
|
||||
while (current_cluster > 2) {
|
||||
err = PFENT_ITER_LoadEntry(&iter);
|
||||
if (err != 0) return err;
|
||||
if (pf_strncmp((pf_s8*)iter.buf, (pf_s8*)"..", 2) == 0) {
|
||||
if (pf_strncmp((pf_s8*)iter.buf, g_pfent_iter_parent_dir, 2) == 0) {
|
||||
if (current_cluster == cluster) {
|
||||
*p_is_found = 1;
|
||||
return 0;
|
||||
@@ -685,8 +691,8 @@ pf_s32 PFENT_ITER_FindEntry(PFITER_ENT_ITER* p_iter, PF_DIR_ENT* p_ent, PF_STR*
|
||||
pf_s32 err;
|
||||
*p_is_found = 0;
|
||||
if (attr_required & attr_forbidden) return 10;
|
||||
if (PFSTR_StrNCmp(p_pattern, (pf_s8*)":", 1, 1, 1) == 0) PFSTR_MoveStrPos(p_pattern, 2);
|
||||
if (PFSTR_StrNCmp(p_pattern, (pf_s8*)"\\", 1, 0, 1) == 0 || PFSTR_StrNCmp(p_pattern, (pf_s8*)"/", 1, 0, 1) == 0) {
|
||||
if (PFSTR_StrNCmp(p_pattern, g_pfent_iter_colon, 1, 1, 1) == 0) PFSTR_MoveStrPos(p_pattern, 2);
|
||||
if (PFSTR_StrNCmp(p_pattern, g_pfent_iter_backslash, 1, 0, 1) == 0 || PFSTR_StrNCmp(p_pattern, g_pfent_iter_slash, 1, 0, 1) == 0) {
|
||||
err = PFENT_GetRootDir(p_iter->p_vol, p_ent);
|
||||
if (err != 0) return err;
|
||||
if (PFSTR_StrNumChar(p_pattern, 1) == 1 && PFSTR_StrNCmp(p_pattern, (pf_s8*)"\0\0\0", 2, 0, 1) == 0) return 0;
|
||||
@@ -727,24 +733,23 @@ pf_s32 PFENT_ITER_GetEntryOfIter(PFITER_ENT_ITER* p_iter, PF_DIR_ENT* p_ent) {
|
||||
}
|
||||
|
||||
pf_s32 PFENT_ITER_GetLFNEntryName(PFITER_ENT_ITER* p_iter, PF_DIR_ENT* p_ent) {
|
||||
pf_u16* destination;
|
||||
pf_u32 i;
|
||||
pf_u32 index;
|
||||
pf_s32 err;
|
||||
if (p_ent->num_entry_LFNs != 0 && !(p_ent->small_letter_flag & 0x18)) {
|
||||
index = 0;
|
||||
for (i = 0; i < p_ent->num_entry_LFNs; ++i) {
|
||||
pf_u16* destination;
|
||||
err = PFENT_ITER_Retreat(p_iter, 0);
|
||||
if (err != 0) return err;
|
||||
err = PFENT_ITER_LoadEntry(p_iter);
|
||||
if (err != 0) return err;
|
||||
index = i * 13;
|
||||
destination = &p_ent->long_name[index];
|
||||
pf_memcpy(destination, &p_iter->buf[1], 10);
|
||||
pf_memcpy(destination + 5, &p_iter->buf[14], 12);
|
||||
pf_memcpy(destination + 11, &p_iter->buf[28], 4);
|
||||
index += 13;
|
||||
}
|
||||
p_ent->long_name[index] = 0;
|
||||
p_ent->long_name[p_ent->num_entry_LFNs * 26 >> 1] = 0;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -94,18 +94,13 @@ typedef struct PFFAT_FFD {
|
||||
PF_VOLUME* p_vol;
|
||||
} PFFAT_FFD;
|
||||
|
||||
static const struct {
|
||||
u32 bad;
|
||||
u32 eoc1;
|
||||
u32 eoc2;
|
||||
u32 fat0_mask;
|
||||
u32 fat1;
|
||||
} fat_special_values[FAT_MAX] = {
|
||||
{0xFF7, 0xFF8, 0xFFF, 0xF00, 0xFFF},
|
||||
{0xFFF7, 0xFFF8, 0xFFFF, 0xFF00, 0xFFFF},
|
||||
{0xFFFFFF7, 0xFFFFFF8, 0xFFFFFFF, 0xFFFFF00, 0xFFFFFFF}
|
||||
const u32 fat_special_values[FAT_MAX*5+1] = {
|
||||
0xFF7, 0xFF8, 0xFFF, 0xF00, 0xFFF,
|
||||
0xFFF7, 0xFFF8, 0xFFFF, 0xFF00, 0xFFFF,
|
||||
0xFFFFFF7, 0xFFFFFF8, 0xFFFFFFF, 0xFFFFF00, 0xFFFFFFF, 0
|
||||
};
|
||||
|
||||
|
||||
extern s32 PFSEC_ReadFAT(PF_VOLUME* volume, u8* buffer, u32 sector, u16 offset,
|
||||
u16 size);
|
||||
extern s32 PFCACHE_AllocateDataPage(PF_VOLUME* volume, u32 sector,
|
||||
@@ -404,7 +399,7 @@ s32 PFFAT_FindClusterLink(PFFAT_FFD* file, u32 chainIndex, u32* cluster,
|
||||
if (nextCluster == 0) {
|
||||
return 13;
|
||||
}
|
||||
if (nextCluster == fat_special_values[file->p_vol->bpb.fat_type].eoc2) {
|
||||
if (nextCluster == fat_special_values[file->p_vol->bpb.fat_type*5+2]) {
|
||||
return 0;
|
||||
}
|
||||
*cluster = nextCluster;
|
||||
@@ -471,7 +466,7 @@ s32 PFFAT_FindClusterLinkWithBuf(PFFAT_FFD* file, u32 chainIndex,
|
||||
if (nextCluster == 0) {
|
||||
return 13;
|
||||
}
|
||||
if (nextCluster == fat_special_values[file->p_vol->bpb.fat_type].eoc2) {
|
||||
if (nextCluster == fat_special_values[file->p_vol->bpb.fat_type*5+2]) {
|
||||
return 0;
|
||||
}
|
||||
*cluster = nextCluster;
|
||||
@@ -525,7 +520,7 @@ s32 PFFAT_ReadCluster(PFFAT_FFD* file, u32 cluster, u32 chainIndex,
|
||||
return 6;
|
||||
}
|
||||
if (file->cluster_link.buffer != 0 &&
|
||||
value != fat_special_values[file->p_vol->bpb.fat_type].eoc2) {
|
||||
value != fat_special_values[file->p_vol->bpb.fat_type*5+2]) {
|
||||
if (file->cluster_link.max_count > file->cluster_link.position &&
|
||||
file->cluster_link.max_count != 0) {
|
||||
if (chainIndex == file->cluster_link.position *
|
||||
@@ -588,7 +583,7 @@ s32 PFFAT_ReadClusterWithBuf(PFFAT_FFD* file, u32 cluster, u32 chainIndex,
|
||||
return 6;
|
||||
}
|
||||
if (file->cluster_link.buffer != 0 &&
|
||||
value != fat_special_values[file->p_vol->bpb.fat_type].eoc2) {
|
||||
value != fat_special_values[file->p_vol->bpb.fat_type*5+2]) {
|
||||
if (file->cluster_link.max_count > file->cluster_link.position &&
|
||||
file->cluster_link.max_count != 0) {
|
||||
if (chainIndex == file->cluster_link.position *
|
||||
@@ -667,7 +662,7 @@ s32 PFFAT_WriteCluster(PFFAT_FFD* file, u32 cluster, u32 chainIndex,
|
||||
}
|
||||
}
|
||||
} else if (cluster !=
|
||||
fat_special_values[file->p_vol->bpb.fat_type].eoc2) {
|
||||
fat_special_values[file->p_vol->bpb.fat_type*5+2]) {
|
||||
error = PFFAT_FindClusterLink(file, chainIndex, &accessCluster,
|
||||
&useClusterLink);
|
||||
if (error != 0) {
|
||||
@@ -757,7 +752,7 @@ s32 PFFAT_WriteClusterWithBuf(PFFAT_FFD* file, u32 cluster, u32 chainIndex,
|
||||
}
|
||||
}
|
||||
} else if (cluster !=
|
||||
fat_special_values[file->p_vol->bpb.fat_type].eoc2) {
|
||||
fat_special_values[file->p_vol->bpb.fat_type*5+2]) {
|
||||
error = PFFAT_FindClusterLinkWithBuf(
|
||||
file, chainIndex, &accessCluster, &useClusterLink, page);
|
||||
if (error != 0) {
|
||||
@@ -814,7 +809,7 @@ s32 PFFAT_DoAllocateChain(PFFAT_FFD* file, u32 chainLength, u32 chainIndex,
|
||||
PF_CACHE_PAGE* page;
|
||||
|
||||
volume = file->p_vol;
|
||||
eoc2 = fat_special_values[volume->bpb.fat_type].eoc2;
|
||||
eoc2 = fat_special_values[volume->bpb.fat_type*5+2];
|
||||
*firstAllocatedCluster = -1;
|
||||
*lastAllocatedCluster = -1;
|
||||
lastFreeCluster = -1;
|
||||
@@ -919,8 +914,8 @@ s32 PFFAT_GetClusterInChain(PFFAT_FFD* file, u32 chainIndex, u32 mode,
|
||||
PF_CACHE_PAGE* page;
|
||||
s32 error;
|
||||
|
||||
badCluster = fat_special_values[file->p_vol->bpb.fat_type].bad;
|
||||
eoc1 = fat_special_values[file->p_vol->bpb.fat_type].eoc1;
|
||||
badCluster = fat_special_values[file->p_vol->bpb.fat_type*5+0];
|
||||
eoc1 = fat_special_values[file->p_vol->bpb.fat_type*5+1];
|
||||
*locateEnd = -1;
|
||||
*locateStart = -1;
|
||||
|
||||
@@ -950,7 +945,7 @@ s32 PFFAT_GetClusterInChain(PFFAT_FFD* file, u32 chainIndex, u32 mode,
|
||||
appendCount = file->last_cluster.max_chain_index + numClusters -
|
||||
chainIndex;
|
||||
currentCluster = file->last_cluster.num_last_cluster;
|
||||
nextCluster = fat_special_values[file->p_vol->bpb.fat_type].eoc2;
|
||||
nextCluster = fat_special_values[file->p_vol->bpb.fat_type*5+2];
|
||||
searchIndex = file->last_cluster.max_chain_index + 1;
|
||||
}
|
||||
} else {
|
||||
@@ -984,7 +979,7 @@ s32 PFFAT_GetClusterInChain(PFFAT_FFD* file, u32 chainIndex, u32 mode,
|
||||
}
|
||||
} else {
|
||||
nextCluster =
|
||||
fat_special_values[file->p_vol->bpb.fat_type].eoc2;
|
||||
fat_special_values[file->p_vol->bpb.fat_type*5+2];
|
||||
searchIndex--;
|
||||
}
|
||||
if ((nextCluster < 2 ||
|
||||
@@ -1060,7 +1055,7 @@ s32 PFFAT_GetClusterContinuousSectorInChain(PFFAT_FFD* file,
|
||||
}
|
||||
if (cluster + 1 != nextCluster) {
|
||||
if (nextCluster ==
|
||||
fat_special_values[volume->bpb.fat_type].eoc2) {
|
||||
fat_special_values[volume->bpb.fat_type*5+2]) {
|
||||
file->last_cluster.num_last_cluster = cluster;
|
||||
file->last_cluster.max_chain_index = chainIndex - 1;
|
||||
}
|
||||
@@ -1107,7 +1102,7 @@ s32 PFFAT_GetClusterAllocatedInChain(PFFAT_FFD* file, u32 initialCluster,
|
||||
return error;
|
||||
}
|
||||
if (nextCluster ==
|
||||
fat_special_values[volume->bpb.fat_type].eoc2) {
|
||||
fat_special_values[volume->bpb.fat_type*5+2]) {
|
||||
file->last_cluster.num_last_cluster = cluster;
|
||||
file->last_cluster.max_chain_index = chainIndex - 1;
|
||||
break;
|
||||
@@ -1475,7 +1470,7 @@ s32 PFFAT_FreeChain(PFFAT_FFD* file, u32 startCluster, u32 chainIndex,
|
||||
if (startCluster == 0) {
|
||||
return 0;
|
||||
}
|
||||
eoc1 = fat_special_values[volume->bpb.fat_type].eoc1;
|
||||
eoc1 = fat_special_values[volume->bpb.fat_type*5+1];
|
||||
if (size != 0) {
|
||||
fileSize = size;
|
||||
clusterSize = volume->bpb.bytes_per_sector
|
||||
@@ -1551,24 +1546,26 @@ s32 PFFAT_FreeChain(PFFAT_FFD* file, u32 startCluster, u32 chainIndex,
|
||||
0, 1, page);
|
||||
chainIndex++;
|
||||
} else {
|
||||
s32 entryError;
|
||||
currentPage = page;
|
||||
switch (volume->bpb.fat_type) {
|
||||
case FAT_12:
|
||||
error = PFFAT12_WriteFATEntryWithBuf(
|
||||
entryError = PFFAT12_WriteFATEntryWithBuf(
|
||||
volume, (u16)startCluster, 0, currentPage);
|
||||
break;
|
||||
case FAT_16:
|
||||
error = PFFAT16_WriteFATEntryWithBuf(volume, startCluster, 0,
|
||||
entryError = PFFAT16_WriteFATEntryWithBuf(volume, startCluster, 0,
|
||||
currentPage);
|
||||
break;
|
||||
case FAT_32:
|
||||
error = PFFAT32_WriteFATEntryWithBuf(volume, startCluster, 0,
|
||||
entryError = PFFAT32_WriteFATEntryWithBuf(volume, startCluster, 0,
|
||||
currentPage);
|
||||
break;
|
||||
default:
|
||||
error = 15;
|
||||
entryError = 15;
|
||||
break;
|
||||
}
|
||||
error = entryError;
|
||||
}
|
||||
if (error != 0) {
|
||||
PFCACHE_FreeDataPage(volume, page);
|
||||
@@ -1588,9 +1585,9 @@ s32 PFFAT_FreeChain(PFFAT_FFD* file, u32 startCluster, u32 chainIndex,
|
||||
}
|
||||
{
|
||||
s32 firstFlushError;
|
||||
u32 fatSector;
|
||||
u16 fatIndex;
|
||||
PF_CACHE_PAGE* flushPage;
|
||||
u16 fatIndex;
|
||||
u32 fatSector;
|
||||
|
||||
firstFlushError = 0;
|
||||
flushPage = page;
|
||||
@@ -1630,7 +1627,7 @@ s32 PFFAT_getBeforeChain(PF_VOLUME* volume, u32 startCluster,
|
||||
s32 alreadyAllocated;
|
||||
s32 error;
|
||||
|
||||
eoc1 = fat_special_values[volume->bpb.fat_type].eoc1;
|
||||
eoc1 = fat_special_values[volume->bpb.fat_type*5+1];
|
||||
*cluster = -1;
|
||||
error = PFCACHE_AllocateDataPage(volume, -1, &page,
|
||||
&alreadyAllocated);
|
||||
@@ -1702,7 +1699,7 @@ s32 PFFAT_InitFATRegion(PF_VOLUME* volume)
|
||||
}
|
||||
PFCACHE_FreeFATPage(volume, page);
|
||||
fatValue = volume->bpb.media |
|
||||
fat_special_values[volume->bpb.fat_type].fat0_mask;
|
||||
fat_special_values[volume->bpb.fat_type*5+3];
|
||||
switch (volume->bpb.fat_type) {
|
||||
case FAT_12:
|
||||
if (fatValue > 0xFFF) {
|
||||
@@ -1732,7 +1729,7 @@ s32 PFFAT_InitFATRegion(PF_VOLUME* volume)
|
||||
if (error != 0) {
|
||||
return error;
|
||||
}
|
||||
fatValue = fat_special_values[volume->bpb.fat_type].fat1;
|
||||
fatValue = fat_special_values[volume->bpb.fat_type*5+4];
|
||||
switch (volume->bpb.fat_type) {
|
||||
case FAT_12:
|
||||
if (fatValue > 0xFFF) {
|
||||
@@ -1778,7 +1775,7 @@ s32 PFFAT_MakeRootDir(PF_VOLUME* volume)
|
||||
s32 error;
|
||||
|
||||
rootCluster = volume->bpb.root_dir_cluster;
|
||||
fatValue = fat_special_values[volume->bpb.fat_type].eoc2;
|
||||
fatValue = fat_special_values[volume->bpb.fat_type*5+2];
|
||||
switch (volume->bpb.fat_type) {
|
||||
case FAT_12:
|
||||
if (fatValue > 0xFFF) {
|
||||
@@ -1940,7 +1937,7 @@ s32 PFFAT_TraceClustersChain(PFFAT_FFD* file, u32 startCluster, u32 size,
|
||||
volume = file->p_vol;
|
||||
if (size == -1 && file->last_cluster.num_last_cluster != 0) {
|
||||
*targetCluster = file->last_cluster.num_last_cluster;
|
||||
*nextClusterOutput = fat_special_values[volume->bpb.fat_type].eoc2;
|
||||
*nextClusterOutput = fat_special_values[volume->bpb.fat_type*5+2];
|
||||
return 0;
|
||||
}
|
||||
clusterSize = volume->bpb.bytes_per_sector *
|
||||
@@ -1964,7 +1961,7 @@ s32 PFFAT_TraceClustersChain(PFFAT_FFD* file, u32 startCluster, u32 size,
|
||||
}
|
||||
savedCluster = startCluster;
|
||||
if (nextCluster ==
|
||||
fat_special_values[volume->bpb.fat_type].eoc2) {
|
||||
fat_special_values[volume->bpb.fat_type*5+2]) {
|
||||
file->last_cluster.num_last_cluster = startCluster;
|
||||
file->last_cluster.max_chain_index = chainIndex - 1;
|
||||
break;
|
||||
@@ -2125,5 +2122,5 @@ s32 PFFAT_FinalizeFFD(PFFAT_FFD* file)
|
||||
|
||||
u32 PFFAT_GetValueOfEOC2(PF_VOLUME* volume)
|
||||
{
|
||||
return fat_special_values[volume->bpb.fat_type].eoc2;
|
||||
return fat_special_values[volume->bpb.fat_type*5+2];
|
||||
}
|
||||
|
||||
@@ -1015,25 +1015,35 @@ void PFPATH_SetSearchPattern(pf_s8* p_buf_local, pf_u16* p_buf_unicode, PF_STR*
|
||||
PFPATH_transformFromUnicodeToNormal(p_buf_local, p_buf_unicode);
|
||||
}
|
||||
|
||||
pf_s8 pf_path_sig_byte0 = 1;
|
||||
pf_s8 pf_path_sig_byte1 = 2;
|
||||
|
||||
pf_u32 PFPATH_CheckExtShortNameSignature(PF_STR* p_str) {
|
||||
pf_u32 result = 0;
|
||||
pf_s8 sig[2] = "\x01\x02";
|
||||
pf_s8 sig[2];
|
||||
|
||||
sig[0] = pf_path_sig_byte0;
|
||||
sig[1] = pf_path_sig_byte1;
|
||||
if (PFSTR_StrNCmp(p_str, sig, 1, 0, 2) == 0) {
|
||||
result = 1;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
__declspec(section ".sdata2") pf_s8 pf_path_sig_c0 = 1;
|
||||
__declspec(section ".sdata2") pf_s8 pf_path_sig_c1 = 2;
|
||||
__declspec(export) const pf_u16 pf_path_sig_z0 = 0;
|
||||
pf_u32 PFPATH_CheckExtShortName(PF_STR* p_str, pf_u32 target, pf_bool wildcard) {
|
||||
pf_u32 result = 0;
|
||||
pf_s16 i;
|
||||
pf_s16 num;
|
||||
pf_bool is_wildcard = PF_FALSE;
|
||||
pf_s8 sig[2] = "\x01\x02";
|
||||
pf_s8 sig[2];
|
||||
pf_s8* p_c;
|
||||
pf_u16* p_wc;
|
||||
|
||||
sig[0] = pf_path_sig_c0;
|
||||
sig[1] = pf_path_sig_c1;
|
||||
if (PFSTR_StrNCmp(p_str, sig, target, 0, 2) == 0 ||
|
||||
(PFSTR_StrNCmp(p_str, (pf_s8*)"?", target, 0, 1) == 0 &&
|
||||
(PFSTR_StrNCmp(p_str, (pf_s8*)"?", target, 1, 1) == 0 || PFSTR_StrNCmp(p_str, (pf_s8*)"*", target, 0, 1) == 0)) ||
|
||||
@@ -1071,15 +1081,21 @@ pf_u32 PFPATH_CheckExtShortName(PF_STR* p_str, pf_u32 target, pf_bool wildcard)
|
||||
return result;
|
||||
}
|
||||
|
||||
__declspec(section ".sdata2") pf_s8 pf_path_idx_sig0 = 1;
|
||||
__declspec(section ".sdata2") pf_s8 pf_path_idx_sig1 = 2;
|
||||
__declspec(export) const pf_u16 pf_path_sig_z1 = 0;
|
||||
|
||||
pf_u32 PFPATH_GetExtShortNameIndex(PF_STR* p_str, pf_u32* p_index) {
|
||||
pf_bool result = PF_FALSE;
|
||||
pf_s16 i;
|
||||
pf_s16 num;
|
||||
pf_u32 index;
|
||||
pf_s8 sig[2] = "\x01\x02";
|
||||
pf_s8 sig[2];
|
||||
pf_s8* p_c;
|
||||
pf_u16* p_wc;
|
||||
|
||||
sig[0] = pf_path_idx_sig0;
|
||||
sig[1] = pf_path_idx_sig1;
|
||||
if (PFSTR_StrNCmp(p_str, sig, 1, 0, 2) == 0) {
|
||||
index = 0;
|
||||
|
||||
|
||||
@@ -224,8 +224,8 @@ typedef struct PFVOL_SET {
|
||||
|
||||
PFVOL_SET pf_vol_set;
|
||||
|
||||
static s8 default_volume_label[12] = "NO NAME ";
|
||||
static const u8 deleted_entry_mark[8] = {0xE5};
|
||||
static s8 default_volume_label[16] = "NO NAME ";
|
||||
__declspec(section ".sdata2") u8 deleted_entry_mark[8] = {0xE5};
|
||||
extern s32 PFDRV_mount(PFVOL_VOLUME* volume);
|
||||
extern s32 PFDRV_unmount(PFVOL_VOLUME* volume, u32 mode);
|
||||
extern s32 PFDRV_format(PFVOL_VOLUME* volume, const u8* format_options);
|
||||
@@ -1052,8 +1052,21 @@ static inline s32 initialize_volume_cache(PFVOL_VOLUME* volume, PFVOL_DRIVER* dr
|
||||
}
|
||||
|
||||
static inline s32 attach_mount(PFVOL_VOLUME* volume, PFVOL_DRIVER* driver) {
|
||||
s32 error = clear_mount(volume);
|
||||
if (error != 0) { pf_vol_set.last_error = error; volume->last_error = error; return error; }
|
||||
s32 error;
|
||||
if ((volume->flags & 8) == 0) {
|
||||
s32 result = PFVOL_DoMountVolume(volume);
|
||||
if (result != 0) {
|
||||
error = result;
|
||||
goto done;
|
||||
}
|
||||
volume->fsi_flag &= ~7;
|
||||
PFDRV_ClearUnmountRequested(volume);
|
||||
pf_vol_set.num_mounted_volumes++;
|
||||
}
|
||||
PFDRV_ClearMountRequested(volume);
|
||||
error = 0;
|
||||
done:
|
||||
if (error != 0) { pf_vol_set.last_error = error; volume->last_error = error; return 0; }
|
||||
driver->stat |= 2;
|
||||
return 0;
|
||||
}
|
||||
@@ -1472,17 +1485,17 @@ s32 PFVOL_setcode(PFVOL_CHARCODE* code_set) {
|
||||
|
||||
s32 PFVOL_regctx(void) {
|
||||
s32 context_id;
|
||||
s32 free_context_index;
|
||||
u32 context_index;
|
||||
s32 free_context_index;
|
||||
s32 error;
|
||||
error = PFSYS_GetCurrentContextID(&context_id);
|
||||
if (error != 0) { pf_vol_set.last_error = 26; return 26; }
|
||||
free_context_index = 0;
|
||||
for (context_index = 1; context_index < 4; context_index++) {
|
||||
u32 stat;
|
||||
stat = pf_vol_set.context[context_index - 1].stat & 1;
|
||||
if (stat != 0 && pf_vol_set.context[context_index - 1].context_id == context_id) { break; }
|
||||
if (stat == 0 && free_context_index == 0) { free_context_index = context_index; }
|
||||
if ((pf_vol_set.context[context_index - 1].stat & 1) != 0 &&
|
||||
pf_vol_set.context[context_index - 1].context_id == context_id) { break; }
|
||||
if ((pf_vol_set.context[context_index - 1].stat & 1) == 0 && free_context_index == 0) { free_context_index = context_index; }
|
||||
}
|
||||
if (context_index == 4) {
|
||||
if (free_context_index != 0) {
|
||||
|
||||
@@ -669,9 +669,10 @@ CDBErr CDBCryptBuffer(void* buffer, u32 size, void* iv, u32* processedSize, BOOL
|
||||
CDBErr CDBRecordEncrypt(CDBRecord* record, void* buffer, CDBRecordKey* key, u32 size, u32* encryptedSize) {
|
||||
CDBRecordFile* recordFile;
|
||||
CDBErr err;
|
||||
u32 fileSize;
|
||||
u32 dataSize;
|
||||
u32 fileSize;
|
||||
u32 cryptSize;
|
||||
u32 authenticatedSize;
|
||||
int fileOffset;
|
||||
u8 iv[0x10];
|
||||
u8 wiiIdKey[0x40] ATTRIBUTE_ALIGN(64);
|
||||
@@ -760,10 +761,11 @@ CDBErr CDBRecordEncrypt(CDBRecord* record, void* buffer, CDBRecordKey* key, u32
|
||||
if ((s32)record->file == 0) {
|
||||
err = CDB_ERROR_27;
|
||||
} else {
|
||||
fileOffset = CDBRecordFileTellData(record);
|
||||
if (fileOffset < 0) {
|
||||
int position = CDBRecordFileTellData(record);
|
||||
if (position < 0) {
|
||||
err = CDB_ERROR_CANNOT_OPEN_FILE;
|
||||
} else {
|
||||
fileOffset = position;
|
||||
err = CDB_ERROR_OK;
|
||||
}
|
||||
}
|
||||
@@ -810,8 +812,9 @@ CDBErr CDBRecordEncrypt(CDBRecord* record, void* buffer, CDBRecordKey* key, u32
|
||||
CDBGetWiiIdKey((char*)wiiIdKey);
|
||||
CDBGetDeviceKey((char*)&wiiIdKey[12]);
|
||||
CDBAttrClearSignature((CDBAttr*)buffer);
|
||||
authenticatedSize = cryptSize + CDB_RECORD_BUFFER_SIZE;
|
||||
NETHMACInit(&hmac, NETGetSHA1Interface(), wiiIdKey, 0x40);
|
||||
NETHMACUpdate(&hmac, buffer, cryptSize + CDB_RECORD_BUFFER_SIZE);
|
||||
NETHMACUpdate(&hmac, buffer, authenticatedSize);
|
||||
NETHMACGetDigest(&hmac, digest);
|
||||
memcpy(((CDBAttrBuf*)buffer)->signature.sha1Hmac, digest, sizeof(digest));
|
||||
if (encryptedSize != 0) {
|
||||
|
||||
@@ -168,7 +168,7 @@ s32 NHTTPi_SocSend_sub(s32 socket, const char* data, u32 length, s32 flags) {
|
||||
return sent;
|
||||
}
|
||||
|
||||
s32 NHTTPi_SocSend(NHTTPRequestInfo* request, s32 socket, const char* data, s32 length, s32 flags) {
|
||||
s32 NHTTPi_SocSend(const NHTTPRequestInfo* request, s32 socket, const void* data, s32 length, s32 flags) {
|
||||
s32 result;
|
||||
SSLId ssl=request->sslId;
|
||||
if(ssl>0) result=SSLWrite(ssl,data,length);
|
||||
|
||||
@@ -82,7 +82,7 @@ s32 NHTTPi_ReceivedCallback(void* mutex, NHTTPConnectionInfo* connection);
|
||||
void NHTTPi_NotifyCompletion(NHTTPConnectionInfo* connection);
|
||||
void NHTTPi_SetVirtualContentLength(NHTTPConnectionInfo* connection, u32 length);
|
||||
BOOL NHTTPi_isRecvBufFull(NHTTPResponseInfo* response, s32 offset);
|
||||
s32 NHTTPi_SocSend(NHTTPRequestInfo* request, s32 socket, const void* buffer, s32 length, s32 flags);
|
||||
s32 NHTTPi_SocSend(const NHTTPRequestInfo* request, s32 socket, const void* buffer, s32 length, s32 flags);
|
||||
s32 NHTTPi_SocRecv(void* mutex, NHTTPRequestInfo* request, s32 socket, void* buffer, s32 length, s32 flags);
|
||||
s32 NHTTPi_SocClose(void* mutex, NHTTPRequestInfo* request, s32 socket);
|
||||
s32 NHTTPi_SocOpen(NHTTPRequestInfo* request);
|
||||
@@ -986,9 +986,16 @@ static BOOL NHTTPi_ThreadParseHeaderProc(NHTTPThreadContext* context)
|
||||
if (length > 0x100) context->keepAlive = FALSE;
|
||||
else if (length > 0)
|
||||
{
|
||||
struct TokenMatch {
|
||||
BOOL matched;
|
||||
};
|
||||
struct TokenMatch match = {FALSE};
|
||||
if (NHTTPi_compareTokenN_HdrRecvBuf(response, offset, offset + length, "Keep-Alive", 0) == 0)
|
||||
context->keepAlive = TRUE;
|
||||
else context->keepAlive = FALSE;
|
||||
{
|
||||
match.matched = TRUE;
|
||||
context->keepAlive = match.matched;
|
||||
}
|
||||
else context->keepAlive = match.matched;
|
||||
}
|
||||
else context->keepAlive = FALSE;
|
||||
}
|
||||
|
||||
@@ -555,14 +555,14 @@ NWC24Err NWC24iMBoxFlushHeader(NWC24MBoxType type) {
|
||||
return result != NWC24_OK ? result : closeResult;
|
||||
}
|
||||
|
||||
static inline void GetOldestMsgId(const MBCHeader* header, u32* id) {
|
||||
static inline void GetOldestMsgId(const MBCHeader* header, volatile u32* id) {
|
||||
*id = header->oldestId;
|
||||
}
|
||||
|
||||
NWC24Err NWC24iMBoxCheck(NWC24MBoxType type, u32 size) {
|
||||
u32 required;
|
||||
struct {
|
||||
u32 oldestId;
|
||||
volatile u32 oldestId;
|
||||
MBCHeader* header;
|
||||
} mailbox;
|
||||
NWC24Err err;
|
||||
|
||||
@@ -619,7 +619,7 @@ vmFloat VmIntToFloat(vmU64 integer) {
|
||||
return result;
|
||||
}
|
||||
|
||||
static s32 CHANSVmParseInt(CHANSVmObjHdr* obj, s32 base, u64* out) {
|
||||
static s32 CHANSVmParseInt(const CHANSVmObjHdr* obj, s32 base, u64* out) {
|
||||
u8 type = obj->type;
|
||||
u32 stringLength;
|
||||
u32 charCount;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -135,3 +135,403 @@ NETHMACGetDigest src 0x1a4 base 0x1a4 insns 105/105; diffs 0: [];
|
||||
SOGetHostByName src 0x140 base 0x140 insns 80/80; diffs 0: [];
|
||||
SOGetAddrInfo src 0x2e4 base 0x2e4 insns 185/185; diffs 0: [];
|
||||
Final gate PASS; zero regressions, zero net forbidden patterns, zero readability warnings. Full DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d.
|
||||
|
||||
# fz8 followup round
|
||||
Baseline 2cc9824045aee4d546a31b5859a7cfe480d8c75e
|
||||
libs/NW4R/src/ut/ut_ArchiveFontBase POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
src/scene/setting/iplRakuRakuThread POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
libs/RVL_SDK/src/fa/pf_cluster POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
libs/RevoEX/src/nhttp/NHTTP_thread POOL IDENTICAL up to 8 (mine=8 base=8)
|
||||
libs/MSL/src/MSL_Common/wprintf POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
libs/RevoEX/src/cdb/CDBRecord FIRST DIVERGENCE at index 10
|
||||
8 mine=0x1b0 base=0x1b0
|
||||
M "can't get file size of the record ; the record is closed\n"
|
||||
B "can't get file size of the record ; the record is closed\n"
|
||||
9 mine=0x1ec base=0x1ec
|
||||
M "can't get data size of the record ; the record is closed\n"
|
||||
B "can't get data size of the record ; the record is closed\n"
|
||||
* 10 mine=0x228 base=0x228
|
||||
M "can't remove the record ; the record is opened\n"
|
||||
B "can't reduce file size of the record ; the record is closed\n"
|
||||
* 11 mine=0x258 base=0x268
|
||||
M "can't remove the record ; permission denied\n"
|
||||
B "can't reduce file size of the record ; the record is opened as READONL"
|
||||
* 12 mine=0x288 base=0x2b8
|
||||
M "can't get CDBId of the record ; the record is closed\n"
|
||||
B "can't reduce file size of the record ; file size must be over %d bytes"
|
||||
* 13 mine=0x2c0 base=0x300
|
||||
M "can't get maker code of the record ; the record is closed\n"
|
||||
B "can't reduce data size of the record ; the record is closed\n"
|
||||
* 14 mine=0x2fc base=0x340
|
||||
M "can't set modified time of the record; the database is opened as READO"
|
||||
B "can't reduce data size of the record ; the record is opened as READONL"
|
||||
|
||||
mine has 19 strings, base has 47
|
||||
|
||||
## Followup PFCLUSTER_DeleteCluster
|
||||
Pool empty, 108/108 and same frame, normalized structural 0. Remaining 35 differences are register choices. Declaration search 71 builds unchanged.
|
||||
Attempt 2: real inline deleteCluster helper, permuting helper argument declaration and call order together while preserving public ABI.
|
||||
Helper argument order ('p_iter', 'p_ent', 'cluster_index', 'num_clusters', 'p_deleted_clusters'): 108/108, structural/exact (11, 53)
|
||||
src/scene/setting/iplRakuRakuThread start__Q33ipl5scene14RakuRakuThreadFv | socket allocator aggregate initialization | 95/96 instructions, structural/exact (17, 87) | restored
|
||||
src/scene/setting/iplRakuRakuThread start__Q33ipl5scene14RakuRakuThreadFv | restore interrupts through success branch | 97/96 instructions, structural/exact (18, 90) | restored
|
||||
src/scene/setting/iplRakuRakuThread start__Q33ipl5scene14RakuRakuThreadFv | time sampled before interrupt local initialized | 97/96 instructions, structural/exact (13, 88) | restored
|
||||
libs/RVL_SDK/src/fa/pf_cluster PFCLUSTER_DeleteCluster | separate deleted byte count from cluster-count argument | 108/108 instructions, structural/exact (0, 35) | restored
|
||||
libs/RVL_SDK/src/fa/pf_cluster PFCLUSTER_DeleteCluster | typed iterator and entry aliases | 108/108 instructions, structural/exact (0, 35) | restored
|
||||
libs/RVL_SDK/src/fa/pf_cluster PFCLUSTER_DeleteCluster | local rounded deleted-cluster count before output store | 107/108 instructions, structural/exact (8, 49) | restored
|
||||
libs/MSL/src/MSL_Common/wprintf __wpformatter | long conversion-length local rather than int | 593/593 instructions, structural/exact (0, 98) | restored
|
||||
libs/MSL/src/MSL_Common/wprintf __wpformatter | separate narrow string-length local from wide output length | 593/593 instructions, structural/exact (2, 170) | restored
|
||||
libs/MSL/src/MSL_Common/wprintf __wpformatter | count-output pointer has independent scope | 593/593 instructions, structural/exact (0, 98) | restored
|
||||
src/scene/setting/iplRakuRakuThread finish__Q33ipl5scene14RakuRakuThreadFP11NCDApConfigPi | configuration switch instead of security if ladder | 138/133 instructions, structural/exact (53, 130) | restored
|
||||
src/scene/setting/iplRakuRakuThread finish__Q33ipl5scene14RakuRakuThreadFP11NCDApConfigPi | share key-loop index across security branches | 135/133 instructions, structural/exact (34, 127) | restored
|
||||
src/scene/setting/iplRakuRakuThread finish__Q33ipl5scene14RakuRakuThreadFP11NCDApConfigPi | inline configuration-copy boundary | 134/133 instructions, structural/exact (41, 98) | restored
|
||||
libs/NW4R/src/ut/ut_ArchiveFontBase ConstructOpAnalyzeGLGR__Q44nw4r2ut6detail15ArchiveFontBaseFPQ54nw4r2ut6detail15ArchiveFontBase16ConstructContextPQ54nw4r2ut6detail15ArchiveFontBase18CachedStreamReader | read group metadata through parsed header pointer | 239/239 instructions, structural/exact (32, 98) | restored
|
||||
libs/NW4R/src/ut/ut_ArchiveFontBase ConstructOpAnalyzeGLGR__Q44nw4r2ut6detail15ArchiveFontBaseFPQ54nw4r2ut6detail15ArchiveFontBase16ConstructContextPQ54nw4r2ut6detail15ArchiveFontBase18CachedStreamReader | typed end and start pointers for scratch allocation | 239/239 instructions, structural/exact (22, 99) | restored
|
||||
libs/NW4R/src/ut/ut_ArchiveFontBase ConstructOpAnalyzeGLGR__Q44nw4r2ut6detail15ArchiveFontBaseFPQ54nw4r2ut6detail15ArchiveFontBase16ConstructContextPQ54nw4r2ut6detail15ArchiveFontBase18CachedStreamReader | sheet-flag helper takes stride before flag pointer | 239/239 instructions, structural/exact (22, 99) | restored
|
||||
|
||||
## Followup CDB data and code
|
||||
First pool divergence at 0x228 is missing ReduceFileSize diagnostics. Target 47 strings vs source 19; existing target .data total 2496 retained. Missing strings come from dead-stripped reduction, setter/getter, duplication and owner functions, not misnamed equivalent objects. No surviving reduction body or backing truncation API located. No rename/extent change justified. CDBCryptBuffer has only three literal offsets different; source experiments below cannot fill the missing earlier pool.
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBCryptBuffer | for-loop owns chunk offset advancement | 119/119 instructions, structural/exact (3, 3) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBCryptBuffer | name the AES operation success result | 119/119 instructions, structural/exact (3, 3) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBCryptBuffer | typed chunk pointer shared by input and output copies | 120/119 instructions, structural/exact (10, 76) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | declare data size before file size to match target stack slots | 283/284 instructions, structural/exact (21, 89) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | save tell position only on successful tell result | 283/284 instructions, structural/exact (24, 92) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | cache authenticated byte count before SHA interface call | 284/284 instructions, structural/exact (9, 53) | restored
|
||||
|
||||
## Followup NHTTPi_ThreadParseHeaderProc
|
||||
Pool identical 504/504 data. Same frame and 191/191 initially; the sole structural difference is zero held in a saved register across Keep-Alive comparison. Request/base registers differ too.
|
||||
Attempt 1: local keepAlive initialized false, conditional assignment and shared store: 189/191, rejected.
|
||||
Attempt 2: local false only in false branch: identical 191/191, 20 diffs, rejected.
|
||||
Attempt 3: local boolean through complete length branch: 186/191, comparison lowered to cntlzw, rejected.
|
||||
Attempt 4: leading locals separated from initialization; declaration search 71 builds, structural/exact 3/20 unchanged.
|
||||
Attempt 5: real inline connection-header parser: 196/191, additional success-result branches, rejected.
|
||||
|
||||
## Followup __wpformatter
|
||||
Pool identical 836/836 data. Same frame and 593/593, structural 0; 98 register differences, including num_chars, write callback/data, constant bases and count-output pointer.
|
||||
Attempt 1: independent count destination scope: unchanged 98 diffs.
|
||||
Attempt 2: split leading locals and declaration search, 71 builds: unchanged 98 diffs.
|
||||
Attempt 3: conversion length long instead of int: unchanged 98 diffs.
|
||||
Attempt 4: separate narrow string conversion length: structural/exact 2/170, rejected.
|
||||
Attempt 5: count destination declared at function entry: unchanged 98 diffs.
|
||||
Attempt 6: inline count-output store helper: unchanged 98 diffs.
|
||||
CDBRecordEncrypt combined stack-slot, successful tell assignment and cached authenticated length: 284/284 instructions, structural/exact 0/44. Leading declaration search 71 builds unchanged; remaining differences are registers.
|
||||
CDBRecordEncrypt genuine encryptRecord inline helper; 1 parameter-order variants; best structural/exact (0, 44); restored combined structural candidate
|
||||
encryptRecord helper first invocation selected a forward declaration and failed compilation; corrected definition extraction before testing.
|
||||
CDBRecordEncrypt genuine encryptRecord inline helper; 120 parameter-order variants; best structural/exact (0, 44); restored combined structural candidate
|
||||
libs/RevoEX/src/nhttp/NHTTP_thread NHTTPi_ThreadParseHeaderProc | inline Keep-Alive token boolean return | 189/191 instructions, structural/exact (16, 72) | restored
|
||||
libs/RevoEX/src/nhttp/NHTTP_thread NHTTPi_ThreadParseHeaderProc | initialize fallback before comparison: BOOL keepAlive = FALSE | 191/191 instructions, structural/exact (3, 20) | restored
|
||||
libs/RevoEX/src/nhttp/NHTTP_thread NHTTPi_ThreadParseHeaderProc | initialize fallback before comparison: BOOL keepAlive | 191/191 instructions, structural/exact (3, 20) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | inline attribute helpers (0,) | 284/284 instructions, structural/exact (0, 42) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | inline attribute helpers (1,) | 284/284 instructions, structural/exact (0, 44) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | inline attribute helpers (2,) | 284/284 instructions, structural/exact (0, 44) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | inline attribute helpers (0, 1, 2) | 284/284 instructions, structural/exact (0, 42) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | attribute pointer lifetime variant 0 | 284/284 instructions, structural/exact (0, 44) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | attribute pointer lifetime variant 1 | 284/284 instructions, structural/exact (0, 44) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | attribute pointer lifetime variant 2 | 284/284 instructions, structural/exact (0, 42) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | inline file-operation boundaries (0,) | 284/284 instructions, structural/exact (0, 44) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | inline file-operation boundaries (1,) | 284/284 instructions, structural/exact (0, 44) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | inline file-operation boundaries (2,) | 284/284 instructions, structural/exact (0, 44) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | inline file-operation boundaries (3,) | 284/284 instructions, structural/exact (0, 44) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | inline file-operation boundaries (4,) | 284/284 instructions, structural/exact (0, 44) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | inline file-operation boundaries (0, 1, 2, 3, 4) | 284/284 instructions, structural/exact (0, 44) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | structural named diagnostic pointers (0,) entry | 285/284 instructions, structural/exact (5, 276) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | structural named diagnostic pointers (0,) after_file | compile failed (C89 declaration after statement); restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | structural named diagnostic pointers (1,) entry | 285/284 instructions, structural/exact (5, 276) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | structural named diagnostic pointers (1,) after_file | compile failed (C89 declaration after statement); restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | structural named diagnostic pointers (0, 1) entry | 286/284 instructions, structural/exact (6, 270) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | structural named diagnostic pointers (0, 1) after_file | compile failed (C89 declaration after statement); restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | attrhelper named diagnostic pointers (0,) entry | 285/284 instructions, structural/exact (5, 276) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | attrhelper named diagnostic pointers (0,) after_file | compile failed (C89 declaration after statement); restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | attrhelper named diagnostic pointers (1,) entry | 285/284 instructions, structural/exact (5, 276) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | attrhelper named diagnostic pointers (1,) after_file | compile failed (C89 declaration after statement); restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | attrhelper named diagnostic pointers (0, 1) entry | 286/284 instructions, structural/exact (6, 270) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | attrhelper named diagnostic pointers (0, 1) after_file | compile failed (C89 declaration after statement); restored
|
||||
Final candidate keeps only three structural corrections in CDBRecordEncrypt (stack slots, tell success lifetime, HMAC input length evaluated before interface getter). Normalized instruction structure now identical, 44 register differences; helper variants were reverted to keep the source diff small. Exact-function count has not increased.
|
||||
CDB quick gate: PASS; fuzzy code 97.19718% -> 99.19014% for Encrypt; 27/29 instruction-exact unchanged, data 144/2640 unchanged, regressions/forbidden/readability all zero.
|
||||
|
||||
## Followup completion audit
|
||||
All eight open functions have at least three distinct, built source attempts above; no untried function remains.
|
||||
Archive ConstructOpAnalyzeGLGR: parsed metadata, typed scratch bounds, helper argument boundary; remains structural 22 and total positional 99 differences.
|
||||
Raku start: allocator aggregate, positive success branch, interrupt/time local ordering; finish: security switch, shared key-loop index, inline configuration boundary. Both retain shared target BSS addressing differences; finish additionally has a frame-size difference.
|
||||
PFCLUSTER_DeleteCluster: separate deleted-byte count, typed aliases, rounded output local; 108/108, structural 0, register 35 differences.
|
||||
NHTTP parse: initialized/shared boolean, false-branch local, full branch boolean; additional declaration/helper attempts. 191/191; zero's lifetime across comparison and base/request registers remain.
|
||||
__wpformatter: count destination scope, declaration splitting/search, long length, independent narrow length, count-store helper; 593/593, structural 0, register 98 differences.
|
||||
CDBCryptBuffer: for loop, named AES success, typed chunk pointer; 119/119, only three diagnostic literal offsets remain.
|
||||
CDBRecordEncrypt: data/file local order, successful tell assignment, pre-call authenticated length; combined kept after quick gate. 284/284, structural 0, register 44 differences. Additional 120 helper argument orders and file/attribute helper boundaries did not match.
|
||||
Owned data: Archive 96/96; Raku 456/456 including correctly named and sized BSS objects; cluster has no data; NHTTP 504/504; wprintf 836/836. CDB 144/2640: missing diagnostic pool from dead-stripped functions, not unpaired equivalent named symbols. No symbol rename or extent change justified; config unchanged.
|
||||
No exact-function gain in this followup; retained structural CDB improvement remains fuzzy. Definition of done is not achieved.
|
||||
|
||||
## Final full gate and open-function re-list
|
||||
ConstructOpAnalyzeGLGR__Q44nw4r2ut6detail15ArchiveFontBaseFPQ54nw4r2ut6detail15ArchiveFontBase16ConstructContextPQ54nw4r2ut6detail15ArchiveFontBase18CachedStreamReader: 90.03766% open; 3 distinct compiled source attempts; src 0x3bc base 0x3bc insns 239/239
|
||||
start__Q33ipl5scene14RakuRakuThreadFv: 88.635414% open; 3 distinct compiled source attempts; src 0x184 base 0x180 insns 97/96
|
||||
finish__Q33ipl5scene14RakuRakuThreadFP11NCDApConfigPi: 86.56391% open; 3 distinct compiled source attempts; src 0x21c base 0x214 insns 135/133
|
||||
PFCLUSTER_DeleteCluster: 98.19444% open; 3 distinct compiled source attempts; src 0x1b0 base 0x1b0 insns 108/108
|
||||
NHTTPi_ThreadParseHeaderProc: 98.58639% open; 3 distinct compiled source attempts; src 0x2fc base 0x2fc insns 191/191
|
||||
__wpformatter: 99.13997% open; 3 distinct compiled source attempts; src 0x944 base 0x944 insns 593/593
|
||||
CDBCryptBuffer: 99.97479% open; 3 distinct compiled source attempts; src 0x1dc base 0x1dc insns 119/119
|
||||
CDBRecordEncrypt: 99.19014% open; 22 distinct compiled source attempts; src 0x470 base 0x470 insns 284/284
|
||||
Final full gate (non --quick), all six units:
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/NW4R/src/ut/ut_ArchiveFontBase] objdiff: code 4164/5120 data 96/96 functions 22/23 fuzzy 98.1398 linked code 0
|
||||
[src/scene/setting/iplRakuRakuThread] objdiff: code 1252/2168 data 456/456 functions 12/14 fuzzy 94.6900 linked code 0
|
||||
[libs/RVL_SDK/src/fa/pf_cluster] objdiff: code 4120/4552 data None/None functions 7/8 fuzzy 99.8286 linked code 0
|
||||
[libs/RevoEX/src/nhttp/NHTTP_thread] objdiff: code 10528/11292 data 504/504 functions 25/26 fuzzy 99.9044 linked code 0
|
||||
[libs/MSL/src/MSL_Common/wprintf] objdiff: code 6264/8636 data 836/836 functions 8/9 fuzzy 99.7638 linked code 0
|
||||
[libs/RevoEX/src/cdb/CDBRecord] objdiff: code 5464/7076 data 144/2640 functions 27/29 fuzzy 99.8683 linked code 0
|
||||
regressions vs baseline: 0
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
Before -> after: exact counts and objdiff matched code/data bytes unchanged for every unit; Encrypt fuzzy 97.19718 -> 99.19014. No new exact match; data pool reconstruction remains uncertain without stripped function bodies.
|
||||
|
||||
## HIGH round
|
||||
Same branch; medium structural CDB improvement retained. No new source changes in owned NHTTP unit on fetched origin/main. Pool identical (8 strings), 191/191, frame 0x30; target initializes zero before Keep-Alive comparison and reuses request register, ours initializes zero after. Main difference is boolean-expression/inline boundary before register allocation.
|
||||
libs/RevoEX/src/nhttp/NHTTP_thread NHTTPi_ThreadParseHeaderProc | HIGH ternary bool | 187/191 instructions, structural/exact (19, 75) | restored
|
||||
libs/RevoEX/src/nhttp/NHTTP_thread NHTTPi_ThreadParseHeaderProc | HIGH comparison bool | 187/191 instructions, structural/exact (19, 75) | restored
|
||||
libs/RevoEX/src/nhttp/NHTTP_thread NHTTPi_ThreadParseHeaderProc | HIGH logical and length first | 190/191 instructions, structural/exact (19, 77) | restored
|
||||
libs/RevoEX/src/nhttp/NHTTP_thread NHTTPi_ThreadParseHeaderProc | HIGH logical and compare first | 191/191 instructions, structural/exact (4, 15) | restored
|
||||
libs/RevoEX/src/nhttp/NHTTP_thread NHTTPi_ThreadParseHeaderProc | HIGH logical or constant false | 187/191 instructions, structural/exact (19, 75) | restored
|
||||
libs/RevoEX/src/nhttp/NHTTP_thread NHTTPi_ThreadParseHeaderProc | HIGH boolean helper argument | 187/191 instructions, structural/exact (19, 75) | restored
|
||||
libs/RevoEX/src/nhttp/NHTTP_thread NHTTPi_ThreadParseHeaderProc | HIGH explicit bool cast | 187/191 instructions, structural/exact (19, 75) | restored
|
||||
libs/RevoEX/src/nhttp/NHTTP_thread NHTTPi_ThreadParseHeaderProc | HIGH invert comparison branches | 191/191 instructions, structural/exact (5, 20) | restored
|
||||
libs/RevoEX/src/nhttp/NHTTP_thread NHTTPi_ThreadParseHeaderProc | HIGH local compare and separate assignment | 191/191 instructions, structural/exact (3, 20) | restored
|
||||
libs/RevoEX/src/nhttp/NHTTP_thread NHTTPi_ThreadParseHeaderProc | HIGH unsigned comparison zero | 191/191 instructions, structural/exact (3, 20) | restored
|
||||
libs/RevoEX/src/nhttp/NHTTP_thread NHTTPi_ThreadParseHeaderProc | HIGH branch on logical NOT | 191/191 instructions, structural/exact (3, 20) | restored
|
||||
libs/RevoEX/src/nhttp/NHTTP_thread NHTTPi_ThreadParseHeaderProc | HIGH nested bool branch | 195/191 instructions, structural/exact (19, 76) | restored
|
||||
libs/RevoEX/src/nhttp/NHTTP_thread NHTTPi_ThreadParseHeaderProc | HIGH logical AND true conditional | 191/191 instructions, structural/exact (3, 20) | restored
|
||||
libs/RevoEX/src/nhttp/NHTTP_thread NHTTPi_ThreadParseHeaderProc | HIGH logical OR false conditional | 191/191 instructions, structural/exact (3, 20) | restored
|
||||
libs/RevoEX/src/nhttp/NHTTP_thread NHTTPi_ThreadParseHeaderProc | HIGH ternary local then branch | 192/191 instructions, structural/exact (19, 74) | restored
|
||||
libs/RevoEX/src/nhttp/NHTTP_thread NHTTPi_ThreadParseHeaderProc | HIGH nested ternary store | 187/191 instructions, structural/exact (19, 75) | restored
|
||||
libs/RevoEX/src/nhttp/NHTTP_thread NHTTPi_ThreadParseHeaderProc | HIGH bool compare zero reuse | 191/191 instructions, structural/exact (3, 20) | restored
|
||||
libs/RevoEX/src/nhttp/NHTTP_thread NHTTPi_ThreadParseHeaderProc | HIGH branch boolean result against true | 193/191 instructions, structural/exact (19, 77) | restored
|
||||
libs/RevoEX/src/nhttp/NHTTP_thread NHTTPi_ThreadParseHeaderProc | HIGH signed nonpositive comparison | 197/191 instructions, structural/exact (24, 78) | restored
|
||||
libs/RevoEX/src/nhttp/NHTTP_thread NHTTPi_ThreadParseHeaderProc | HIGH token equality inline helper 0 | 195/191 instructions, structural/exact (19, 76) | restored
|
||||
libs/RevoEX/src/nhttp/NHTTP_thread NHTTPi_ThreadParseHeaderProc | HIGH token equality inline helper 1 | 195/191 instructions, structural/exact (19, 76) | restored
|
||||
libs/RevoEX/src/nhttp/NHTTP_thread NHTTPi_ThreadParseHeaderProc | HIGH token equality inline helper 2 | 195/191 instructions, structural/exact (19, 76) | restored
|
||||
libs/RevoEX/src/nhttp/NHTTP_thread NHTTPi_ThreadParseHeaderProc | HIGH token equality inline helper 3 | 195/191 instructions, structural/exact (19, 76) | restored
|
||||
libs/RevoEX/src/nhttp/NHTTP_thread NHTTPi_ThreadParseHeaderProc | HIGH token equality inline helper 4 | 192/191 instructions, structural/exact (19, 74) | restored
|
||||
|
||||
HIGH PFCLUSTER_DeleteCluster: fetched origin/main; source unchanged upstream. Empty pool, frame 0x40 and 108/108 instructions, normalized structural zero. Target maps delete bytes r24, byte position r25, cluster size r26, iterator r27, entry r28, index r29, output r30, volume r31. Source has all eight lifetimes but different coloring. Diagnose temp/inline ownership before another register search.
|
||||
libs/RVL_SDK/src/fa/pf_cluster PFCLUSTER_DeleteCluster | HIGH initialize geometry locals | 108/108 instructions, structural/exact (0, 35) | restored
|
||||
libs/RVL_SDK/src/fa/pf_cluster PFCLUSTER_DeleteCluster | HIGH separate delete size and original count | 108/108 instructions, structural/exact (0, 35) | restored
|
||||
libs/RVL_SDK/src/fa/pf_cluster PFCLUSTER_DeleteCluster | HIGH signed cluster count local | 108/108 instructions, structural/exact (0, 35) | restored
|
||||
libs/RVL_SDK/src/fa/pf_cluster PFCLUSTER_DeleteCluster | HIGH operator assignment for bytes | 108/108 instructions, structural/exact (0, 35) | restored
|
||||
libs/RVL_SDK/src/fa/pf_cluster PFCLUSTER_DeleteCluster | HIGH divide result before output store | 108/108 instructions, structural/exact (0, 32) | restored
|
||||
libs/RVL_SDK/src/fa/pf_cluster PFCLUSTER_DeleteCluster | HIGH error assignments folded into conditions | 108/108 instructions, structural/exact (0, 35) | restored
|
||||
libs/RVL_SDK/src/fa/pf_cluster PFCLUSTER_DeleteCluster | HIGH byte position operand order | 108/108 instructions, structural/exact (0, 35) | restored
|
||||
libs/RVL_SDK/src/fa/pf_cluster PFCLUSTER_DeleteCluster | HIGH delete size operand order | 108/108 instructions, structural/exact (0, 35) | restored
|
||||
libs/RVL_SDK/src/fa/pf_cluster PFCLUSTER_DeleteCluster | HIGH geometry through explicit ushort casts | 108/108 instructions, structural/exact (0, 35) | restored
|
||||
|
||||
HIGH __wpformatter: fetched origin/main, source unchanged; empty narrow-string pool and 593/593, same frame. Operand relationship matters despite normalized register score 0: target narrow alternate string path loads length from r25, while narrow source pointer lives in r24. Target r25 is the previous output pointer or narrow-length temporary; source loads the current narrow pointer. This may be a genuine SDK stale-pointer bug rather than a register tie-break. Do not add an uninitialized pointer read to force this register pattern. Test honest pointer-lifetime changes and record unresolved semantics.
|
||||
libs/MSL/src/MSL_Common/wprintf __wpformatter | HIGH reuse output pointer for wide source | compile failed | restored
|
||||
libs/MSL/src/MSL_Common/wprintf __wpformatter | HIGH distinct narrow character count | compile failed | restored
|
||||
libs/MSL/src/MSL_Common/wprintf __wpformatter | HIGH narrow char pointer mutable | 593/593 instructions, structural/exact (0, 98) | restored
|
||||
libs/MSL/src/MSL_Common/wprintf __wpformatter | HIGH wide source pointer hoisted | compile failed | restored
|
||||
libs/MSL/src/MSL_Common/wprintf __wpformatter | HIGH count destination shares string-end pointer | 593/593 instructions, structural/exact (0, 98) | restored
|
||||
libs/MSL/src/MSL_Common/wprintf __wpformatter | HIGH wide input independent unsigned length | 581/593 instructions, structural/exact (50, 564) | restored
|
||||
libs/MSL/src/MSL_Common/wprintf __wpformatter | HIGH reuse output pointer for wide source | 593/593 instructions, structural/exact (0, 120) | restored
|
||||
libs/MSL/src/MSL_Common/wprintf __wpformatter | HIGH distinct narrow character count | 593/593 instructions, structural/exact (2, 170) | restored
|
||||
libs/MSL/src/MSL_Common/wprintf __wpformatter | HIGH narrow char pointer mutable | 593/593 instructions, structural/exact (0, 98) | restored
|
||||
libs/MSL/src/MSL_Common/wprintf __wpformatter | HIGH wide source pointer hoisted | 593/593 instructions, structural/exact (0, 98) | restored
|
||||
libs/MSL/src/MSL_Common/wprintf __wpformatter | HIGH count destination shares string-end pointer | 593/593 instructions, structural/exact (0, 98) | restored
|
||||
libs/MSL/src/MSL_Common/wprintf __wpformatter | HIGH wide input independent unsigned length | 593/593 instructions, structural/exact (1, 67) | restored
|
||||
libs/RVL_SDK/src/fa/pf_cluster PFCLUSTER_DeleteCluster | HIGH inline geometry/entry/count boundaries 0 | 108/108 instructions, structural/exact (0, 32) | restored
|
||||
libs/RVL_SDK/src/fa/pf_cluster PFCLUSTER_DeleteCluster | HIGH inline geometry/entry/count boundaries 1 | 108/108 instructions, structural/exact (0, 35) | restored
|
||||
libs/RVL_SDK/src/fa/pf_cluster PFCLUSTER_DeleteCluster | HIGH inline geometry/entry/count boundaries 2 | 108/108 instructions, structural/exact (0, 35) | restored
|
||||
libs/RVL_SDK/src/fa/pf_cluster PFCLUSTER_DeleteCluster | HIGH inline geometry/entry/count boundaries 3 | 108/108 instructions, structural/exact (0, 32) | restored
|
||||
|
||||
HIGH CDBRecordEncrypt: fetch checked; only owned medium changes differ from origin/main. Pool still diverges first at reduction diagnostics; all literals used by Encrypt are before divergence and correct. Medium has same frame/slots, 284/284, normalized structure zero. Test realistic wrapper and diagnostic inline boundaries to place key and first-file pointer lifetimes, then register search.
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | HIGH first attribute inline helper temp/result lifetime 0 | 284/284 instructions, structural/exact (0, 42) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | HIGH first attribute inline helper temp/result lifetime 1 | 284/284 instructions, structural/exact (4, 57) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | HIGH first attribute inline helper temp/result lifetime 2 | 284/284 instructions, structural/exact (0, 42) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | HIGH first attribute inline helper temp/result lifetime 3 | 284/284 instructions, structural/exact (0, 42) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | HIGH first attribute inline helper temp/result lifetime 4 | 284/284 instructions, structural/exact (0, 42) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | HIGH inline closed diagnostic reports (0,) | 284/284 instructions, structural/exact (0, 44) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | HIGH inline closed diagnostic reports (1,) | 284/284 instructions, structural/exact (0, 44) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | HIGH inline closed diagnostic reports (0, 1) | 284/284 instructions, structural/exact (0, 44) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | HIGH leading geometry/error/position declaration 0 | 284/284 instructions, structural/exact (0, 44) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | HIGH leading geometry/error/position declaration 1 | 284/284 instructions, structural/exact (0, 44) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | HIGH leading geometry/error/position declaration 2 | 284/284 instructions, structural/exact (0, 44) | restored
|
||||
HIGH PFCLUSTER_DeleteCluster declaration search after output-count lifetime split: 93 builds, best structural/exact 0/32 unchanged. Restored original rather than retaining a register-only fuzzy experiment.
|
||||
libs/RevoEX/src/nhttp/NHTTP_thread NHTTPi_ThreadParseHeaderProc | HIGH store false before conditional | 190/191 instructions, structural/exact (20, 78) | restored
|
||||
libs/RevoEX/src/nhttp/NHTTP_thread NHTTPi_ThreadParseHeaderProc | HIGH false initialized before ternary | 187/191 instructions, structural/exact (19, 75) | restored
|
||||
libs/RevoEX/src/nhttp/NHTTP_thread NHTTPi_ThreadParseHeaderProc | HIGH result initially true | 189/191 instructions, structural/exact (18, 99) | restored
|
||||
libs/RevoEX/src/nhttp/NHTTP_thread NHTTPi_ThreadParseHeaderProc | HIGH conditional default using byte | 191/191 instructions, structural/exact (3, 20) | restored
|
||||
|
||||
HIGH ConstructOpAnalyzeGLGR: origin/main fetch verified owned source unchanged; pool empty and all 96 data bytes exact. Same 239/239 frame/branches. Remaining calculation schedule interleaves name-count, sheet-count, context workspace and glyph-count differently. Target forms byte-aligned flag pointer by adding font after alignment. Test offset-expression tree and scratch helper boundaries before any register search.
|
||||
libs/NW4R/src/ut/ut_ArchiveFontBase ConstructOpAnalyzeGLGR__Q44nw4r2ut6detail15ArchiveFontBaseFPQ54nw4r2ut6detail15ArchiveFontBase16ConstructContextPQ54nw4r2ut6detail15ArchiveFontBase18CachedStreamReader | HIGH explicit nested offset calculation | 239/239 instructions, structural/exact (22, 99) | restored
|
||||
libs/NW4R/src/ut/ut_ArchiveFontBase ConstructOpAnalyzeGLGR__Q44nw4r2ut6detail15ArchiveFontBaseFPQ54nw4r2ut6detail15ArchiveFontBase16ConstructContextPQ54nw4r2ut6detail15ArchiveFontBase18CachedStreamReader | HIGH sequential flag offsets | 239/239 instructions, structural/exact (21, 99) | restored
|
||||
libs/NW4R/src/ut/ut_ArchiveFontBase ConstructOpAnalyzeGLGR__Q44nw4r2ut6detail15ArchiveFontBaseFPQ54nw4r2ut6detail15ArchiveFontBase16ConstructContextPQ54nw4r2ut6detail15ArchiveFontBase18CachedStreamReader | HIGH named glyph-group counts | 239/239 instructions, structural/exact (22, 99) | restored
|
||||
libs/NW4R/src/ut/ut_ArchiveFontBase ConstructOpAnalyzeGLGR__Q44nw4r2ut6detail15ArchiveFontBaseFPQ54nw4r2ut6detail15ArchiveFontBase16ConstructContextPQ54nw4r2ut6detail15ArchiveFontBase18CachedStreamReader | HIGH scratch size through SDK helper | 239/239 instructions, structural/exact (22, 104) | restored
|
||||
libs/NW4R/src/ut/ut_ArchiveFontBase ConstructOpAnalyzeGLGR__Q44nw4r2ut6detail15ArchiveFontBaseFPQ54nw4r2ut6detail15ArchiveFontBase16ConstructContextPQ54nw4r2ut6detail15ArchiveFontBase18CachedStreamReader | HIGH byte flags pointer aligned offset | 239/239 instructions, structural/exact (22, 99) | restored
|
||||
libs/NW4R/src/ut/ut_ArchiveFontBase ConstructOpAnalyzeGLGR__Q44nw4r2ut6detail15ArchiveFontBaseFPQ54nw4r2ut6detail15ArchiveFontBase16ConstructContextPQ54nw4r2ut6detail15ArchiveFontBase18CachedStreamReader | HIGH full group span named local | 239/239 instructions, structural/exact (22, 99) | restored
|
||||
libs/NW4R/src/ut/ut_ArchiveFontBase ConstructOpAnalyzeGLGR__Q44nw4r2ut6detail15ArchiveFontBaseFPQ54nw4r2ut6detail15ArchiveFontBase16ConstructContextPQ54nw4r2ut6detail15ArchiveFontBase18CachedStreamReader | HIGH scratch metadata inline helper with typed references | 239/239 instructions, structural/exact (22, 104) | restored
|
||||
|
||||
HIGH Raku start/finish: origin/main checked unchanged; string pool identical, 456/456 data and named BSS extents already correct. Target start retains allocator base through status initialization. Target finish saves 7 registers in frame 0x30 and explicitly carries WEP source/destination strides plus loop index; ours uses smaller frame and direct indexed arrays. No fake aggregate data or offset aliases added.
|
||||
src/scene/setting/iplRakuRakuThread start__Q33ipl5scene14RakuRakuThreadFv | HIGH heap allocator initialized through saved heap handle | 97/96 instructions, structural/exact (13, 88) | restored
|
||||
src/scene/setting/iplRakuRakuThread start__Q33ipl5scene14RakuRakuThreadFv | HIGH zero progress through aggregate assignment | 99/96 instructions, structural/exact (22, 92) | restored
|
||||
src/scene/setting/iplRakuRakuThread start__Q33ipl5scene14RakuRakuThreadFv | HIGH initialize socket callbacks in declaration | 95/96 instructions, structural/exact (17, 87) | restored
|
||||
src/scene/setting/iplRakuRakuThread start__Q33ipl5scene14RakuRakuThreadFv | HIGH named start priority | 97/96 instructions, structural/exact (13, 88) | restored
|
||||
src/scene/setting/iplRakuRakuThread finish__Q33ipl5scene14RakuRakuThreadFP11NCDApConfigPi | HIGH explicit WEP source and destination strides 0 | 136/133 instructions, structural/exact (43, 127) | restored
|
||||
src/scene/setting/iplRakuRakuThread finish__Q33ipl5scene14RakuRakuThreadFP11NCDApConfigPi | HIGH explicit WEP source and destination strides 1 | 136/133 instructions, structural/exact (43, 126) | restored
|
||||
src/scene/setting/iplRakuRakuThread finish__Q33ipl5scene14RakuRakuThreadFP11NCDApConfigPi | HIGH explicit WEP source and destination strides 2 | 136/133 instructions, structural/exact (35, 127) | restored
|
||||
libs/RevoEX/src/nhttp/NHTTP_thread NHTTPi_ThreadParseHeaderProc | HIGH header token out-parameter boundary 0 | 189/191 instructions, structural/exact (16, 99) | restored
|
||||
libs/RevoEX/src/nhttp/NHTTP_thread NHTTPi_ThreadParseHeaderProc | HIGH header token out-parameter boundary 1 | 187/191 instructions, structural/exact (19, 75) | restored
|
||||
src/scene/setting/iplRakuRakuThread finish__Q33ipl5scene14RakuRakuThreadFP11NCDApConfigPi | HIGH explicit WEP source and destination strides 3 | 136/133 instructions, structural/exact (43, 126) | restored
|
||||
libs/RevoEX/src/nhttp/NHTTP_thread NHTTPi_ThreadParseHeaderProc | HIGH header token out-parameter boundary 2 | 189/191 instructions, structural/exact (16, 72) | restored
|
||||
libs/RevoEX/src/nhttp/NHTTP_thread NHTTPi_ThreadParseHeaderProc | HIGH header token out-parameter boundary 3 | 190/191 instructions, structural/exact (18, 78) | restored
|
||||
libs/RevoEX/src/nhttp/NHTTP_thread NHTTPi_ThreadParseHeaderProc | HIGH header token out-parameter boundary 4 | 195/191 instructions, structural/exact (19, 76) | restored
|
||||
libs/RevoEX/src/nhttp/NHTTP_thread NHTTPi_ThreadParseHeaderProc | HIGH header token out-parameter boundary 5 | 189/191 instructions, structural/exact (16, 99) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBCryptBuffer | HIGH increment output count after selecting chunk length | 119/119 instructions, structural/exact (13, 18) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBCryptBuffer | HIGH explicit output pointer null comparisons | 120/119 instructions, structural/exact (10, 93) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBCryptBuffer | HIGH loop remainder local | 119/119 instructions, structural/exact (6, 8) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | HIGH HMAC lifetime and inline boundary 0 | 284/284 instructions, structural/exact (3, 52) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | HIGH HMAC lifetime and inline boundary 1 | 284/284 instructions, structural/exact (0, 44) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | HIGH HMAC lifetime and inline boundary 2 | 284/284 instructions, structural/exact (0, 44) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | HIGH HMAC lifetime and inline boundary 3 | 285/284 instructions, structural/exact (15, 102) | restored
|
||||
HIGH __wpformatter leading declaration search: 71 builds after split scalar declarations; unchanged 593/593 structural/exact 0/98. Original source restored. Target narrow-alternate load reads r25 while input pointer is r24; proof is at target 0x1d54 versus 0x1d74. No stale/uninitialized pointer read introduced.
|
||||
HIGH NHTTP final declaration search after initialized-getter statements split: 71 builds, best structural/exact 3/20 unchanged. Reverted split.
|
||||
libs/RevoEX/src/nhttp/NHTTP_thread NHTTPi_ThreadParseHeaderProc | HIGH fallback token-match struct | 191/191 instructions, structural/exact (0, 0) | kept candidate
|
||||
HIGH NHTTP exact gain: initialized token-match aggregate holds the fallback FALSE across comparison, while success stores TRUE. No new global data, inline assembly, volatile, uninitialized value or symbol edit. Same 191/191, ctxdiff 0, objdiff 100%, pool identical, data 504/504. Quick gate PASS, zero regressions/forbidden/readability; DOL hash correct.
|
||||
libs/RVL_SDK/src/fa/pf_cluster PFCLUSTER_DeleteCluster | HIGH cluster-deletion aggregate (0,) reversed False | 108/108 instructions, structural/exact (0, 35) | restored
|
||||
libs/RVL_SDK/src/fa/pf_cluster PFCLUSTER_DeleteCluster | HIGH cluster-deletion aggregate (0,) reversed True | 108/108 instructions, structural/exact (0, 35) | restored
|
||||
libs/RVL_SDK/src/fa/pf_cluster PFCLUSTER_DeleteCluster | HIGH cluster-deletion aggregate (0, 2) reversed False | 108/108 instructions, structural/exact (0, 35) | restored
|
||||
libs/RVL_SDK/src/fa/pf_cluster PFCLUSTER_DeleteCluster | HIGH cluster-deletion aggregate (0, 2) reversed True | 108/108 instructions, structural/exact (0, 35) | restored
|
||||
libs/RVL_SDK/src/fa/pf_cluster PFCLUSTER_DeleteCluster | HIGH cluster-deletion aggregate (0, 1, 2) reversed False | 108/108 instructions, structural/exact (0, 14) | restored
|
||||
libs/RVL_SDK/src/fa/pf_cluster PFCLUSTER_DeleteCluster | HIGH cluster-deletion aggregate (0, 1, 2) reversed True | 108/108 instructions, structural/exact (0, 14) | restored
|
||||
libs/RVL_SDK/src/fa/pf_cluster PFCLUSTER_DeleteCluster | HIGH cluster-deletion aggregate (1, 2) reversed False | 108/108 instructions, structural/exact (0, 32) | restored
|
||||
libs/RVL_SDK/src/fa/pf_cluster PFCLUSTER_DeleteCluster | HIGH cluster-deletion aggregate (1, 2) reversed True | 108/108 instructions, structural/exact (0, 32) | restored
|
||||
libs/RVL_SDK/src/fa/pf_cluster PFCLUSTER_DeleteCluster | HIGH cluster-deletion aggregate (0, 5) reversed False | 108/108 instructions, structural/exact (0, 35) | restored
|
||||
libs/RVL_SDK/src/fa/pf_cluster PFCLUSTER_DeleteCluster | HIGH cluster-deletion aggregate (0, 5) reversed True | 108/108 instructions, structural/exact (0, 35) | restored
|
||||
libs/RVL_SDK/src/fa/pf_cluster PFCLUSTER_DeleteCluster | HIGH cluster-deletion aggregate (3, 4) reversed False | 108/108 instructions, structural/exact (0, 35) | restored
|
||||
libs/RVL_SDK/src/fa/pf_cluster PFCLUSTER_DeleteCluster | HIGH cluster-deletion aggregate (3, 4) reversed True | 108/108 instructions, structural/exact (0, 35) | restored
|
||||
libs/RVL_SDK/src/fa/pf_cluster PFCLUSTER_DeleteCluster | HIGH cluster-deletion aggregate (3, 4, 5, 6) reversed False | 108/108 instructions, structural/exact (0, 35) | restored
|
||||
libs/RVL_SDK/src/fa/pf_cluster PFCLUSTER_DeleteCluster | HIGH cluster-deletion aggregate (3, 4, 5, 6) reversed True | 108/108 instructions, structural/exact (0, 35) | restored
|
||||
libs/RVL_SDK/src/fa/pf_cluster PFCLUSTER_DeleteCluster | HIGH cluster-deletion aggregate (0, 3, 4, 5, 6) reversed False | 108/108 instructions, structural/exact (0, 35) | restored
|
||||
libs/RVL_SDK/src/fa/pf_cluster PFCLUSTER_DeleteCluster | HIGH cluster-deletion aggregate (0, 3, 4, 5, 6) reversed True | 108/108 instructions, structural/exact (0, 35) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | HIGH encryption input aggregate (2,) reversed False | 284/284 instructions, structural/exact (0, 44) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | HIGH encryption input aggregate (2,) reversed True | 284/284 instructions, structural/exact (0, 44) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | HIGH encryption input aggregate (0, 2) reversed False | 287/284 instructions, structural/exact (35, 250) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | HIGH encryption input aggregate (0, 2) reversed True | 288/284 instructions, structural/exact (34, 255) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | HIGH encryption input aggregate (0, 1) reversed False | 291/284 instructions, structural/exact (55, 262) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | HIGH encryption input aggregate (0, 1) reversed True | 292/284 instructions, structural/exact (53, 254) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | HIGH encryption input aggregate (1, 3, 4) reversed False | 291/284 instructions, structural/exact (42, 264) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | HIGH encryption input aggregate (1, 3, 4) reversed True | 291/284 instructions, structural/exact (42, 264) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | HIGH encryption input aggregate (0, 1, 2, 3, 4) reversed False | 298/284 instructions, structural/exact (89, 278) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | HIGH encryption input aggregate (0, 1, 2, 3, 4) reversed True | 299/284 instructions, structural/exact (88, 285) | restored
|
||||
libs/RVL_SDK/src/fa/pf_cluster PFCLUSTER_DeleteCluster | HIGH initialized deletion geometry ('length', 'cluster_size', 'position') entry_values | compile failed | restored
|
||||
libs/RVL_SDK/src/fa/pf_cluster PFCLUSTER_DeleteCluster | HIGH initialized deletion geometry ('length', 'cluster_size', 'position') zero_values | 118/108 instructions, structural/exact (29, 106) | restored
|
||||
libs/RVL_SDK/src/fa/pf_cluster PFCLUSTER_DeleteCluster | HIGH initialized deletion geometry ('length', 'cluster_size', 'position') length_only | compile failed | restored
|
||||
libs/RVL_SDK/src/fa/pf_cluster PFCLUSTER_DeleteCluster | HIGH initialized deletion geometry ('length', 'position', 'cluster_size') entry_values | compile failed | restored
|
||||
libs/RVL_SDK/src/fa/pf_cluster PFCLUSTER_DeleteCluster | HIGH initialized deletion geometry ('length', 'position', 'cluster_size') zero_values | 118/108 instructions, structural/exact (29, 106) | restored
|
||||
libs/RVL_SDK/src/fa/pf_cluster PFCLUSTER_DeleteCluster | HIGH initialized deletion geometry ('length', 'position', 'cluster_size') length_only | compile failed | restored
|
||||
libs/RVL_SDK/src/fa/pf_cluster PFCLUSTER_DeleteCluster | HIGH initialized deletion geometry ('cluster_size', 'length', 'position') entry_values | compile failed | restored
|
||||
libs/RVL_SDK/src/fa/pf_cluster PFCLUSTER_DeleteCluster | HIGH initialized deletion geometry ('cluster_size', 'length', 'position') zero_values | 118/108 instructions, structural/exact (29, 106) | restored
|
||||
libs/RVL_SDK/src/fa/pf_cluster PFCLUSTER_DeleteCluster | HIGH initialized deletion geometry ('cluster_size', 'position', 'length') entry_values | compile failed | restored
|
||||
libs/RVL_SDK/src/fa/pf_cluster PFCLUSTER_DeleteCluster | HIGH initialized deletion geometry ('cluster_size', 'position', 'length') zero_values | 118/108 instructions, structural/exact (29, 106) | restored
|
||||
libs/RVL_SDK/src/fa/pf_cluster PFCLUSTER_DeleteCluster | HIGH initialized deletion geometry ('position', 'length', 'cluster_size') entry_values | compile failed | restored
|
||||
libs/RVL_SDK/src/fa/pf_cluster PFCLUSTER_DeleteCluster | HIGH initialized deletion geometry ('position', 'length', 'cluster_size') zero_values | 118/108 instructions, structural/exact (29, 106) | restored
|
||||
libs/RVL_SDK/src/fa/pf_cluster PFCLUSTER_DeleteCluster | HIGH initialized deletion geometry ('position', 'cluster_size', 'length') entry_values | compile failed | restored
|
||||
libs/RVL_SDK/src/fa/pf_cluster PFCLUSTER_DeleteCluster | HIGH initialized deletion geometry ('position', 'cluster_size', 'length') zero_values | 118/108 instructions, structural/exact (29, 106) | restored
|
||||
First CDB input-aggregate rewrite accidentally replaced identifier words inside two diagnostic literals in some variants; those variants were reverted and excluded as pool-invalid. Re-run shields string tokens.
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | HIGH encryption input aggregate preserving literals (0, 2) reversed False | 287/284 instructions, structural/exact (33, 250) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | HIGH encryption input aggregate preserving literals (0, 2) reversed True | 288/284 instructions, structural/exact (32, 255) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | HIGH encryption input aggregate preserving literals (0, 1) reversed False | 291/284 instructions, structural/exact (53, 262) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | HIGH encryption input aggregate preserving literals (0, 1) reversed True | 292/284 instructions, structural/exact (51, 254) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | HIGH encryption input aggregate preserving literals (1, 3, 4) reversed False | 291/284 instructions, structural/exact (41, 264) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | HIGH encryption input aggregate preserving literals (1, 3, 4) reversed True | 291/284 instructions, structural/exact (41, 264) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | HIGH encryption input aggregate preserving literals (0, 1, 2, 3, 4) reversed False | 298/284 instructions, structural/exact (87, 278) | restored
|
||||
libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt | HIGH encryption input aggregate preserving literals (0, 1, 2, 3, 4) reversed True | 299/284 instructions, structural/exact (86, 285) | restored
|
||||
libs/RVL_SDK/src/fa/pf_cluster PFCLUSTER_DeleteCluster | HIGH separate immutable input count from byte length | 108/108 instructions, structural/exact (0, 0) | kept candidate
|
||||
HIGH PFCLUSTER exact gain: ClusterDeletion owns byte position, cluster size and deleted byte length; the incoming cluster count stays immutable until byte conversion after the first trace. This separates count and byte lifetimes instead of overloading the argument. Same 108/108, ctxdiff 0, objdiff 100%, empty pool. Quick gate PASS, zero regressions/forbidden/readability, DOL hash correct. All fields initialized before use; no extra data object or symbol edit.
|
||||
libs/MSL/src/MSL_Common/wprintf __wpformatter | HIGH format output aggregate (0,) reversed False | 593/593 instructions, structural/exact (0, 98) | restored
|
||||
libs/MSL/src/MSL_Common/wprintf __wpformatter | HIGH format output aggregate (0,) reversed True | 593/593 instructions, structural/exact (0, 98) | restored
|
||||
libs/MSL/src/MSL_Common/wprintf __wpformatter | HIGH format output aggregate (0, 1) reversed False | compile failed | restored
|
||||
libs/MSL/src/MSL_Common/wprintf __wpformatter | HIGH format output aggregate (0, 1) reversed True | compile failed | restored
|
||||
libs/MSL/src/MSL_Common/wprintf __wpformatter | HIGH format output aggregate (0, 2) reversed False | 593/593 instructions, structural/exact (0, 98) | restored
|
||||
libs/MSL/src/MSL_Common/wprintf __wpformatter | HIGH format output aggregate (0, 2) reversed True | 593/593 instructions, structural/exact (0, 98) | restored
|
||||
libs/MSL/src/MSL_Common/wprintf __wpformatter | HIGH format output aggregate (0, 1, 2) reversed False | compile failed | restored
|
||||
libs/MSL/src/MSL_Common/wprintf __wpformatter | HIGH format output aggregate (0, 1, 2) reversed True | compile failed | restored
|
||||
libs/RevoEX/src/nhttp/NHTTP_thread NHTTPi_ThreadParseHeaderProc | HIGH fill token match result before storing successful connection state | 191/191 instructions, structural/exact (0, 0) | kept candidate
|
||||
libs/NW4R/src/ut/ut_ArchiveFontBase ConstructOpAnalyzeGLGR__Q44nw4r2ut6detail15ArchiveFontBaseFPQ54nw4r2ut6detail15ArchiveFontBase16ConstructContextPQ54nw4r2ut6detail15ArchiveFontBase18CachedStreamReader | HIGH glyph sheet layout aggregate (0, 1, 2) reversed False | compile failed | restored
|
||||
libs/NW4R/src/ut/ut_ArchiveFontBase ConstructOpAnalyzeGLGR__Q44nw4r2ut6detail15ArchiveFontBaseFPQ54nw4r2ut6detail15ArchiveFontBase16ConstructContextPQ54nw4r2ut6detail15ArchiveFontBase18CachedStreamReader | HIGH glyph sheet layout aggregate (0, 1, 2) reversed True | compile failed | restored
|
||||
libs/NW4R/src/ut/ut_ArchiveFontBase ConstructOpAnalyzeGLGR__Q44nw4r2ut6detail15ArchiveFontBaseFPQ54nw4r2ut6detail15ArchiveFontBase16ConstructContextPQ54nw4r2ut6detail15ArchiveFontBase18CachedStreamReader | HIGH glyph sheet layout aggregate (3, 4, 5) reversed False | 239/239 instructions, structural/exact (22, 103) | restored
|
||||
libs/NW4R/src/ut/ut_ArchiveFontBase ConstructOpAnalyzeGLGR__Q44nw4r2ut6detail15ArchiveFontBaseFPQ54nw4r2ut6detail15ArchiveFontBase16ConstructContextPQ54nw4r2ut6detail15ArchiveFontBase18CachedStreamReader | HIGH glyph sheet layout aggregate (3, 4, 5) reversed True | 239/239 instructions, structural/exact (22, 103) | restored
|
||||
libs/NW4R/src/ut/ut_ArchiveFontBase ConstructOpAnalyzeGLGR__Q44nw4r2ut6detail15ArchiveFontBaseFPQ54nw4r2ut6detail15ArchiveFontBase16ConstructContextPQ54nw4r2ut6detail15ArchiveFontBase18CachedStreamReader | HIGH glyph sheet layout aggregate (0, 3, 5) reversed False | 239/239 instructions, structural/exact (22, 88) | restored
|
||||
libs/NW4R/src/ut/ut_ArchiveFontBase ConstructOpAnalyzeGLGR__Q44nw4r2ut6detail15ArchiveFontBaseFPQ54nw4r2ut6detail15ArchiveFontBase16ConstructContextPQ54nw4r2ut6detail15ArchiveFontBase18CachedStreamReader | HIGH glyph sheet layout aggregate (0, 3, 5) reversed True | 239/239 instructions, structural/exact (22, 88) | restored
|
||||
libs/NW4R/src/ut/ut_ArchiveFontBase ConstructOpAnalyzeGLGR__Q44nw4r2ut6detail15ArchiveFontBaseFPQ54nw4r2ut6detail15ArchiveFontBase16ConstructContextPQ54nw4r2ut6detail15ArchiveFontBase18CachedStreamReader | HIGH glyph sheet layout aggregate (0, 1, 2, 3, 4, 5, 6) reversed False | compile failed | restored
|
||||
libs/NW4R/src/ut/ut_ArchiveFontBase ConstructOpAnalyzeGLGR__Q44nw4r2ut6detail15ArchiveFontBaseFPQ54nw4r2ut6detail15ArchiveFontBase16ConstructContextPQ54nw4r2ut6detail15ArchiveFontBase18CachedStreamReader | HIGH glyph sheet layout aggregate (0, 1, 2, 3, 4, 5, 6) reversed True | compile failed | restored
|
||||
libs/NW4R/src/ut/ut_ArchiveFontBase ConstructOpAnalyzeGLGR__Q44nw4r2ut6detail15ArchiveFontBaseFPQ54nw4r2ut6detail15ArchiveFontBase16ConstructContextPQ54nw4r2ut6detail15ArchiveFontBase18CachedStreamReader | HIGH glyph sheet layout aggregate (0, 1, 2) reversed False | 239/239 instructions, structural/exact (22, 89) | restored
|
||||
libs/NW4R/src/ut/ut_ArchiveFontBase ConstructOpAnalyzeGLGR__Q44nw4r2ut6detail15ArchiveFontBaseFPQ54nw4r2ut6detail15ArchiveFontBase16ConstructContextPQ54nw4r2ut6detail15ArchiveFontBase18CachedStreamReader | HIGH glyph sheet layout aggregate (0, 1, 2) reversed True | 239/239 instructions, structural/exact (22, 99) | restored
|
||||
libs/NW4R/src/ut/ut_ArchiveFontBase ConstructOpAnalyzeGLGR__Q44nw4r2ut6detail15ArchiveFontBaseFPQ54nw4r2ut6detail15ArchiveFontBase16ConstructContextPQ54nw4r2ut6detail15ArchiveFontBase18CachedStreamReader | HIGH glyph sheet layout aggregate (3, 4, 5) reversed False | 239/239 instructions, structural/exact (22, 103) | restored
|
||||
libs/NW4R/src/ut/ut_ArchiveFontBase ConstructOpAnalyzeGLGR__Q44nw4r2ut6detail15ArchiveFontBaseFPQ54nw4r2ut6detail15ArchiveFontBase16ConstructContextPQ54nw4r2ut6detail15ArchiveFontBase18CachedStreamReader | HIGH glyph sheet layout aggregate (3, 4, 5) reversed True | 239/239 instructions, structural/exact (22, 103) | restored
|
||||
libs/NW4R/src/ut/ut_ArchiveFontBase ConstructOpAnalyzeGLGR__Q44nw4r2ut6detail15ArchiveFontBaseFPQ54nw4r2ut6detail15ArchiveFontBase16ConstructContextPQ54nw4r2ut6detail15ArchiveFontBase18CachedStreamReader | HIGH glyph sheet layout aggregate (0, 3, 5) reversed False | 239/239 instructions, structural/exact (22, 88) | restored
|
||||
libs/NW4R/src/ut/ut_ArchiveFontBase ConstructOpAnalyzeGLGR__Q44nw4r2ut6detail15ArchiveFontBaseFPQ54nw4r2ut6detail15ArchiveFontBase16ConstructContextPQ54nw4r2ut6detail15ArchiveFontBase18CachedStreamReader | HIGH glyph sheet layout aggregate (0, 3, 5) reversed True | 239/239 instructions, structural/exact (22, 88) | restored
|
||||
libs/NW4R/src/ut/ut_ArchiveFontBase ConstructOpAnalyzeGLGR__Q44nw4r2ut6detail15ArchiveFontBaseFPQ54nw4r2ut6detail15ArchiveFontBase16ConstructContextPQ54nw4r2ut6detail15ArchiveFontBase18CachedStreamReader | HIGH glyph sheet layout aggregate (0, 1, 2, 3, 4, 5, 6) reversed False | 239/239 instructions, structural/exact (22, 109) | restored
|
||||
libs/NW4R/src/ut/ut_ArchiveFontBase ConstructOpAnalyzeGLGR__Q44nw4r2ut6detail15ArchiveFontBaseFPQ54nw4r2ut6detail15ArchiveFontBase16ConstructContextPQ54nw4r2ut6detail15ArchiveFontBase18CachedStreamReader | HIGH glyph sheet layout aggregate (0, 1, 2, 3, 4, 5, 6) reversed True | 239/239 instructions, structural/exact (22, 109) | restored
|
||||
libs/MSL/src/MSL_Common/wprintf __wpformatter | HIGH format output aggregate (0,) reversed False | 593/593 instructions, structural/exact (0, 98) | restored
|
||||
libs/MSL/src/MSL_Common/wprintf __wpformatter | HIGH format output aggregate (0,) reversed True | 593/593 instructions, structural/exact (0, 98) | restored
|
||||
libs/MSL/src/MSL_Common/wprintf __wpformatter | HIGH format output aggregate (0, 1) reversed False | 593/593 instructions, structural/exact (0, 117) | restored
|
||||
libs/MSL/src/MSL_Common/wprintf __wpformatter | HIGH format output aggregate (0, 1) reversed True | 593/593 instructions, structural/exact (0, 117) | restored
|
||||
libs/MSL/src/MSL_Common/wprintf __wpformatter | HIGH format output aggregate (0, 2) reversed False | 593/593 instructions, structural/exact (0, 98) | restored
|
||||
libs/MSL/src/MSL_Common/wprintf __wpformatter | HIGH format output aggregate (0, 2) reversed True | 593/593 instructions, structural/exact (0, 98) | restored
|
||||
libs/MSL/src/MSL_Common/wprintf __wpformatter | HIGH format output aggregate (0, 1, 2) reversed False | 593/593 instructions, structural/exact (0, 117) | restored
|
||||
libs/MSL/src/MSL_Common/wprintf __wpformatter | HIGH format output aggregate (0, 1, 2) reversed True | 593/593 instructions, structural/exact (0, 117) | restored
|
||||
|
||||
## HIGH completion audit
|
||||
libs/NW4R/src/ut/ut_ArchiveFontBase: origin/main source unchanged from initial owned baseline = True.
|
||||
src/scene/setting/iplRakuRakuThread: origin/main source unchanged from initial owned baseline = True.
|
||||
libs/RVL_SDK/src/fa/pf_cluster: origin/main source unchanged from initial owned baseline = True.
|
||||
libs/RevoEX/src/nhttp/NHTTP_thread: origin/main source unchanged from initial owned baseline = True.
|
||||
libs/MSL/src/MSL_Common/wprintf: origin/main source unchanged from initial owned baseline = True.
|
||||
libs/RevoEX/src/cdb/CDBRecord: origin/main source unchanged from initial owned baseline = True.
|
||||
NHTTPi_ThreadParseHeaderProc exact 191/191, ctxdiff 0; genuine TokenMatch tracks FALSE fallback and TRUE match before assigning keepAlive. All unit code/data 100%.
|
||||
PFCLUSTER_DeleteCluster exact 108/108, ctxdiff 0; byte geometry object separates immutable requested count from byte position/cluster size/deletion length. All unit code 100%; no data section.
|
||||
All six remaining open functions have at least three distinct compiled HIGH source attempts, excluding failed compilations and token-rewrite mistakes.
|
||||
Archive: offset expression tree, sequential offsets, metadata locals, scratch helper and layout aggregates; remaining 22 normalized structural differences, 99 total positional differences.
|
||||
Raku start: heap handle, progress aggregate, socket callback initialization, named priority. Finish: explicit WEP source/destination strides, independent index and zero lifetime; shared BSS base and frame/branch schedule still differ.
|
||||
wprintf: pointer reuse/hoisting, independent wide/narrow lengths, count destination scope, output aggregates, 71 declaration builds. Target narrow alternate load has a stale-pointer operand relationship; no uninitialized read added to force it.
|
||||
CDB Encrypt: first attribute wrapper lifetimes, closed diagnostic wrappers, HMAC helper/input lifetimes, protected-literal input aggregates; 284/284, normalized structure zero, 44 register differences. Medium 99.19014% retained.
|
||||
CDB Crypt: output count scheduling, explicit null comparison, loop remainder; original 119/119 has only three wrong literal offsets from missing earlier diagnostics.
|
||||
All rejected source variations restored. Local initialized result/range types emit no new global data. No data-symbol rename or extent correction justified; owned data scores unchanged, config untouched.
|
||||
HIGH gains: NHTTP exact 25 -> 26 and code 10528 -> 11292; cluster exact 7 -> 8 and code 4120 -> 4552. Other exact/code/data counts unchanged. No linking/configure change.
|
||||
|
||||
## HIGH final full gate and open-function re-list
|
||||
ConstructOpAnalyzeGLGR__Q44nw4r2ut6detail15ArchiveFontBaseFPQ54nw4r2ut6detail15ArchiveFontBase16ConstructContextPQ54nw4r2ut6detail15ArchiveFontBase18CachedStreamReader: 90.03766% open; 19 compiled HIGH attempts; src 0x3bc base 0x3bc insns 239/239
|
||||
libs/NW4R/src/ut/ut_ArchiveFontBase matched_functions: 22 -> 22
|
||||
libs/NW4R/src/ut/ut_ArchiveFontBase matched_code: 4164 -> 4164
|
||||
libs/NW4R/src/ut/ut_ArchiveFontBase matched_data: 96 -> 96
|
||||
start__Q33ipl5scene14RakuRakuThreadFv: 88.635414% open; 4 compiled HIGH attempts; src 0x184 base 0x180 insns 97/96
|
||||
finish__Q33ipl5scene14RakuRakuThreadFP11NCDApConfigPi: 86.56391% open; 4 compiled HIGH attempts; src 0x21c base 0x214 insns 135/133
|
||||
src/scene/setting/iplRakuRakuThread matched_functions: 12 -> 12
|
||||
src/scene/setting/iplRakuRakuThread matched_code: 1252 -> 1252
|
||||
src/scene/setting/iplRakuRakuThread matched_data: 456 -> 456
|
||||
libs/RVL_SDK/src/fa/pf_cluster matched_functions: 7 -> 8
|
||||
libs/RVL_SDK/src/fa/pf_cluster matched_code: 4120 -> 4552
|
||||
libs/RVL_SDK/src/fa/pf_cluster matched_data: 0 -> 0
|
||||
libs/RevoEX/src/nhttp/NHTTP_thread matched_functions: 25 -> 26
|
||||
libs/RevoEX/src/nhttp/NHTTP_thread matched_code: 10528 -> 11292
|
||||
libs/RevoEX/src/nhttp/NHTTP_thread matched_data: 504 -> 504
|
||||
__wpformatter: 99.13997% open; 21 compiled HIGH attempts; src 0x944 base 0x944 insns 593/593
|
||||
libs/MSL/src/MSL_Common/wprintf matched_functions: 8 -> 8
|
||||
libs/MSL/src/MSL_Common/wprintf matched_code: 6264 -> 6264
|
||||
libs/MSL/src/MSL_Common/wprintf matched_data: 836 -> 836
|
||||
CDBCryptBuffer: 99.97479% open; 3 compiled HIGH attempts; src 0x1dc base 0x1dc insns 119/119
|
||||
CDBRecordEncrypt: 99.19014% open; 25 valid compiled HIGH attempts (8 accidental literal-rewrite variants excluded); src 0x470 base 0x470 insns 284/284
|
||||
libs/RevoEX/src/cdb/CDBRecord matched_functions: 27 -> 27
|
||||
libs/RevoEX/src/cdb/CDBRecord matched_code: 5464 -> 5464
|
||||
libs/RevoEX/src/cdb/CDBRecord matched_data: 144 -> 144
|
||||
NHTTPi_ThreadParseHeaderProc final src 0x2fc base 0x2fc insns 191/191; diffs 0: []
|
||||
PFCLUSTER_DeleteCluster final src 0x1b0 base 0x1b0 insns 108/108; diffs 0: []
|
||||
Final full gate (non --quick) over all six owned units:
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/NW4R/src/ut/ut_ArchiveFontBase] objdiff: code 4164/5120 data 96/96 functions 22/23 fuzzy 98.1398 linked code 0
|
||||
[src/scene/setting/iplRakuRakuThread] objdiff: code 1252/2168 data 456/456 functions 12/14 fuzzy 94.6900 linked code 0
|
||||
[libs/RVL_SDK/src/fa/pf_cluster] objdiff: code 4552/4552 data None/None functions 8/8 fuzzy 100.0000 linked code 0
|
||||
[libs/RevoEX/src/nhttp/NHTTP_thread] objdiff: code 11292/11292 data 504/504 functions 26/26 fuzzy 100.0000 linked code 0
|
||||
[libs/MSL/src/MSL_Common/wprintf] objdiff: code 6264/8636 data 836/836 functions 8/9 fuzzy 99.7638 linked code 0
|
||||
[libs/RevoEX/src/cdb/CDBRecord] objdiff: code 5464/7076 data 144/2640 functions 27/29 fuzzy 99.8683 linked code 0
|
||||
regressions vs baseline: 0
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
Remaining CDB pool reconstruction and wprintf alternate-string pointer semantics remain unresolved; no unsupported data rename/extent change or uninitialized read retained.
|
||||
|
||||
Reference in New Issue
Block a user