Do some stuff
This commit is contained in:
@@ -121,7 +121,7 @@ void renderState(CPU *cpu, BitmapFont *titleFont, SDL_Renderer *renderer, SDL_Te
|
||||
} else if (cpu->mode & CPU_MODE_HALTED) {
|
||||
strcat(valueStr, "HLT ");
|
||||
} else if (cpu->mode & CPU_MODE_PAUSED) {
|
||||
strcat(valueStr, "PS ");
|
||||
strcat(valueStr, "PAU ");
|
||||
} else {
|
||||
strcat(valueStr, "RUN ");
|
||||
}
|
||||
|
@@ -371,10 +371,8 @@ void generate_string(TextEditor *editor) {
|
||||
|
||||
for (int i = 0; i < editor->maxLines; i++) {
|
||||
if (editor->lines[i].active) {
|
||||
if (strlen(editor->lines[i].text)) {
|
||||
strcat(editor->outputString, editor->lines[i].text);
|
||||
strcat(editor->outputString, "\n");
|
||||
}
|
||||
strcat(editor->outputString, editor->lines[i].text);
|
||||
strcat(editor->outputString, "\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user