From b5c17c5f7946c8d9c27deb175964e7b69767490b Mon Sep 17 00:00:00 2001 From: Shaun Inman Date: Tue, 17 Dec 2024 20:47:55 -0500 Subject: [PATCH] silence faux-errors from screen clearing with cat --- workspace/m17/platform/platform.c | 2 +- workspace/magicmini/platform/platform.c | 2 +- workspace/my282/platform/platform.c | 2 +- workspace/rg35xxplus/platform/platform.c | 4 ++-- workspace/rgb30/platform/platform.c | 2 +- workspace/tg3040/platform/platform.c | 4 ++-- workspace/tg5040/platform/platform.c | 4 ++-- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/workspace/m17/platform/platform.c b/workspace/m17/platform/platform.c index 45b7b884..14bb7a20 100644 --- a/workspace/m17/platform/platform.c +++ b/workspace/m17/platform/platform.c @@ -268,7 +268,7 @@ void PLAT_quitVideo(void) { SDL_DestroyWindow(vid.window); SDL_Quit(); - system("cat /dev/zero > /dev/fb0"); + system("cat /dev/zero > /dev/fb0 2>/dev/null"); } void PLAT_clearVideo(SDL_Surface* screen) { diff --git a/workspace/magicmini/platform/platform.c b/workspace/magicmini/platform/platform.c index 7a9e9dcd..06e7d12e 100644 --- a/workspace/magicmini/platform/platform.c +++ b/workspace/magicmini/platform/platform.c @@ -356,7 +356,7 @@ void PLAT_quitVideo(void) { SDL_DestroyWindow(vid.window); - // system("cat /dev/zero > /dev/fb0"); + // system("cat /dev/zero > /dev/fb0 2>/dev/null"); SDL_Quit(); } diff --git a/workspace/my282/platform/platform.c b/workspace/my282/platform/platform.c index f446b5b6..2afd2ab2 100644 --- a/workspace/my282/platform/platform.c +++ b/workspace/my282/platform/platform.c @@ -317,7 +317,7 @@ void PLAT_quitVideo(void) { SDL_DestroyRenderer(vid.renderer); SDL_DestroyWindow(vid.window); - // system("cat /dev/zero > /dev/fb0"); + // system("cat /dev/zero > /dev/fb0 2>/dev/null"); SDL_Quit(); } diff --git a/workspace/rg35xxplus/platform/platform.c b/workspace/rg35xxplus/platform/platform.c index 8afc212b..1f8476e1 100644 --- a/workspace/rg35xxplus/platform/platform.c +++ b/workspace/rg35xxplus/platform/platform.c @@ -540,7 +540,7 @@ void PLAT_quitVideo(void) { SDL_DestroyRenderer(vid.renderer); SDL_DestroyWindow(vid.window); - // system("cat /dev/zero > /dev/fb0"); + // system("cat /dev/zero > /dev/fb0 2>/dev/null"); SDL_Quit(); } @@ -925,7 +925,7 @@ void PLAT_powerOff(void) { PWR_quit(); GFX_quit(); - // system("cat /dev/zero > /dev/fb0"); + // system("cat /dev/zero > /dev/fb0 2>/dev/null"); // system("shutdown"); // while (1) pause(); // lolwat diff --git a/workspace/rgb30/platform/platform.c b/workspace/rgb30/platform/platform.c index b184979a..e53a5f06 100644 --- a/workspace/rgb30/platform/platform.c +++ b/workspace/rgb30/platform/platform.c @@ -333,7 +333,7 @@ void PLAT_quitVideo(void) { SDL_DestroyRenderer(vid.renderer); SDL_DestroyWindow(vid.window); - // system("cat /dev/zero > /dev/fb0"); + // system("cat /dev/zero > /dev/fb0 2>/dev/null"); SDL_Quit(); } diff --git a/workspace/tg3040/platform/platform.c b/workspace/tg3040/platform/platform.c index b7a7ee14..010024a2 100644 --- a/workspace/tg3040/platform/platform.c +++ b/workspace/tg3040/platform/platform.c @@ -143,7 +143,7 @@ void PLAT_quitVideo(void) { SDL_DestroyWindow(vid.window); SDL_Quit(); - system("cat /dev/zero > /dev/fb0"); + system("cat /dev/zero > /dev/fb0 2>/dev/null"); } void PLAT_clearVideo(SDL_Surface* screen) { @@ -517,7 +517,7 @@ void PLAT_powerOff(void) { PWR_quit(); GFX_quit(); - system("cat /dev/zero > /dev/fb0"); + system("cat /dev/zero > /dev/fb0 2>/dev/null"); system("poweroff"); while (1) pause(); // lolwat } diff --git a/workspace/tg5040/platform/platform.c b/workspace/tg5040/platform/platform.c index 8745d2ae..9d08bea3 100644 --- a/workspace/tg5040/platform/platform.c +++ b/workspace/tg5040/platform/platform.c @@ -143,7 +143,7 @@ void PLAT_quitVideo(void) { SDL_DestroyWindow(vid.window); SDL_Quit(); - system("cat /dev/zero > /dev/fb0"); + system("cat /dev/zero > /dev/fb0 2>/dev/null"); } void PLAT_clearVideo(SDL_Surface* screen) { @@ -510,7 +510,7 @@ void PLAT_powerOff(void) { PWR_quit(); GFX_quit(); - system("cat /dev/zero > /dev/fb0"); + system("cat /dev/zero > /dev/fb0 2>/dev/null"); system("poweroff"); while (1) pause(); // lolwat }