> compile NEMU

221220000 张三
Linux zzy 5.15.146.1-microsoft-standard-WSL2 #1 SMP Thu Jan 11 04:09:03 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
 11:14:36 up 7 days, 11:15,  1 user,  load average: 0.41, 0.22, 0.13
This commit is contained in:
tracer-ics2023
2024-09-25 11:14:36 +08:00
committed by zzy
parent da901f7922
commit 56373d1d34

View File

@ -57,6 +57,7 @@ void NDL_OpenCanvas(int *w, int *h) {
fread(buf, 1, sizeof(buf), fp);
int life = 2;
while (sscanf(pos, "%[^:]:%d\n", name, &num) == 2 && life--) {
printf("log:%s,%d\n", name, num);
pos = strchr(pos, '\n');
if (pos == NULL) break;
if (strcmp(name, "WIDTH") == 0) { dev_w = num; }