| 205 | } |
| 206 | |
| 207 | void aithread::showDebug(int x, int y) |
| 208 | { |
| 209 | int _y = y; |
| 210 | int _x = x + this->threadId*200 + 4; |
| 211 | bw->setTextSize(Text::Size::Small); |
| 212 | for each ( char *s in this->debugQueue ) |
| 213 | { |
| 214 | char n[512]; |
| 215 | strcpy_s(n, 512, s); |
| 216 | |
| 217 | char *mid = strchr(n, ' '); |
| 218 | if ( mid ) |
| 219 | { |
| 220 | *mid = '\0'; |
| 221 | ++mid; |
| 222 | } |
| 223 | |
| 224 | bw->drawTextScreen(_x, _y, "%s", n); |
| 225 | if ( mid ) |
| 226 | bw->drawTextScreen(_x+100, _y, "%s", mid); |
| 227 | _y += 9; |
| 228 | } |
| 229 | bw->setTextSize(); |
| 230 | } |
| 231 | |
| 232 | void aithread::saveDebug(const char prefix, int iOpcode, const char *pszFormat, ...) |
| 233 | { |
no test coverage detected