From bb19a7607c0198e14a5eed7ca5c8f624516dd78b Mon Sep 17 00:00:00 2001 From: luboslenco Date: Fri, 17 May 2019 15:41:48 +0200 Subject: [PATCH] Fix gpu name --- Sources/arm/ui/UIMenu.hx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Sources/arm/ui/UIMenu.hx b/Sources/arm/ui/UIMenu.hx index 90c93344..6b288da1 100644 --- a/Sources/arm/ui/UIMenu.hx +++ b/Sources/arm/ui/UIMenu.hx @@ -168,8 +168,10 @@ class UIMenu { Krom.sysCommand('wmic path win32_VideoController get name' + ' > "' + save + '"'); var bytes = haxe.io.Bytes.ofData(Krom.loadBlob(save)); var gpu = ""; - for (i in 32...Std.int(bytes.length / 2)) { - gpu += String.fromCharCode(bytes.get(i * 2)); + for (i in 30...Std.int(bytes.length / 2)) { + var c = String.fromCharCode(bytes.get(i * 2)); + if (c == '\n') continue; + gpu += c; } msg += '\n$gpu'; }