From 1d484f17ad3b254ac081cfdd1b475e4fe82f01c8 Mon Sep 17 00:00:00 2001 From: Apache <93100547+Apachedrag427@users.noreply.github.com> Date: Thu, 16 Feb 2023 06:39:51 -0600 Subject: [PATCH] Update Machine.cs --- Capy64/Runtime/Libraries/Machine.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Capy64/Runtime/Libraries/Machine.cs b/Capy64/Runtime/Libraries/Machine.cs index 8810881..999ea5e 100644 --- a/Capy64/Runtime/Libraries/Machine.cs +++ b/Capy64/Runtime/Libraries/Machine.cs @@ -103,6 +103,8 @@ public class Machine : IPlugin if (!L.IsNoneOrNil(1)) { var newTitle = L.CheckString(1); + + L.ArgumentCheck(!string.IsNullOrEmpty(newTitle), 1, "string must not be empty"); Capy64.Instance.Window.Title = newTitle; }