Skip to content

Commit d65cfb3

Browse files
Prefix QI output in Engine Output dialog
1 parent 6fd3347 commit d65cfb3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/de/haukerehfeld/quakeinjector/EngineOutputDialog.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141

4242
public class EngineOutputDialog extends JDialog {
4343
private final static String windowTitle = "Engine Output";
44+
private final static String outputQIPrefix = "[Quake Injector]: ";
4445

4546
private final InputStream engineOut;
4647

@@ -79,7 +80,7 @@ public Void doInBackground() {
7980
BufferedReader b = new BufferedReader(in);
8081

8182

82-
output.append("Starting engine...\n");
83+
output.append(outputQIPrefix+"Starting engine...\n");
8384
String line;
8485
int lineCount = 0;
8586
while ((line = b.readLine()) != null) {
@@ -96,15 +97,15 @@ public Void doInBackground() {
9697
});
9798
}
9899
if (lineCount == 0) {
99-
output.append("Done with no output.\n");
100+
output.append(outputQIPrefix+"Done with no output.\n");
100101
}
101102
else {
102-
output.append("Done.\n");
103+
output.append(outputQIPrefix+"Done.\n");
103104
}
104105

105106
}
106107
catch (java.io.IOException e) {
107-
output.append("Error: Couldn't read engine output from stream");
108+
output.append(outputQIPrefix+"Error: Couldn't read engine output from stream");
108109
}
109110

110111
return null;

0 commit comments

Comments
 (0)