parent
ead6ff6dc5
commit
4828b29338
|
@ -546,13 +546,14 @@ void Disassemble(HWND hWnd, int id, int scrollid, unsigned int addr)
|
||||||
{
|
{
|
||||||
// make a copy
|
// make a copy
|
||||||
strcpy(debug_str_decoration_comment, node->comment);
|
strcpy(debug_str_decoration_comment, node->comment);
|
||||||
strcat(debug_str_decoration_comment, "\n");
|
strcat(debug_str_decoration_comment, "\r\n");
|
||||||
// divide the debug_str_decoration_comment into strings (Comment1, Comment2, ...)
|
// divide the debug_str_decoration_comment into strings (Comment1, Comment2, ...)
|
||||||
debug_decoration_comment = debug_str_decoration_comment;
|
debug_decoration_comment = debug_str_decoration_comment;
|
||||||
debug_decoration_comment_end_pos = strstr(debug_decoration_comment, "\n");
|
debug_decoration_comment_end_pos = strstr(debug_decoration_comment, "\r\n");
|
||||||
while (debug_decoration_comment_end_pos)
|
while (debug_decoration_comment_end_pos)
|
||||||
{
|
{
|
||||||
debug_decoration_comment_end_pos[0] = 0; // set \0 instead of \r
|
debug_decoration_comment_end_pos[0] = 0; // set \0 instead of \r
|
||||||
|
debug_decoration_comment_end_pos[1] = 0; // set \0 instead of \n
|
||||||
strcat(debug_str, "; ");
|
strcat(debug_str, "; ");
|
||||||
strcat(debug_str, debug_decoration_comment);
|
strcat(debug_str, debug_decoration_comment);
|
||||||
strcat(debug_str, "\n");
|
strcat(debug_str, "\n");
|
||||||
|
@ -563,7 +564,7 @@ void Disassemble(HWND hWnd, int id, int scrollid, unsigned int addr)
|
||||||
|
|
||||||
debug_decoration_comment_end_pos += 2;
|
debug_decoration_comment_end_pos += 2;
|
||||||
debug_decoration_comment = debug_decoration_comment_end_pos;
|
debug_decoration_comment = debug_decoration_comment_end_pos;
|
||||||
debug_decoration_comment_end_pos = strstr(debug_decoration_comment_end_pos, "\n");
|
debug_decoration_comment_end_pos = strstr(debug_decoration_comment_end_pos, "\r\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -485,7 +485,6 @@ Name* parseNameFile(const char* filename)
|
||||||
n = parse(buffer, filename);
|
n = parse(buffer, filename);
|
||||||
|
|
||||||
fclose(f);
|
fclose(f);
|
||||||
|
|
||||||
free(buffer);
|
free(buffer);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2429,7 +2429,7 @@ LRESULT CALLBACK MemViewCallB(HWND hwnd, UINT message, WPARAM wParam, LPARAM lPa
|
||||||
if (discardBookmarkCount || outOfRangeBookmarkCount)
|
if (discardBookmarkCount || outOfRangeBookmarkCount)
|
||||||
{
|
{
|
||||||
char reason[64];
|
char reason[64];
|
||||||
sprintf(buffer, "Import complete, but %d bookmark%s %s are not imported:\n", discardBookmarkCount + outOfRangeBookmarkCount, discardBookmarkCount + outOfRangeBookmarkCount == 1 ? "" : "s", discardBookmarkCount + outOfRangeBookmarkCount == 1 ? "is" : "are");
|
sprintf(buffer, "Import complete, but %d bookmark%s %s not imported:\n", discardBookmarkCount + outOfRangeBookmarkCount, discardBookmarkCount + outOfRangeBookmarkCount == 1 ? "" : "s", discardBookmarkCount + outOfRangeBookmarkCount == 1 ? "is" : "are");
|
||||||
if (outOfRangeBookmarkCount)
|
if (outOfRangeBookmarkCount)
|
||||||
{
|
{
|
||||||
sprintf(reason, "%d %s outside the valid address range of the game.", outOfRangeBookmarkCount, outOfRangeBookmarkCount == 1 ? "is" : "are");
|
sprintf(reason, "%d %s outside the valid address range of the game.", outOfRangeBookmarkCount, outOfRangeBookmarkCount == 1 ? "is" : "are");
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue