changeset 996:d91a810db920

add: default application name
author sam <sam@basx.dev>
date Fri, 12 Apr 2024 19:44:27 +0700
parents 2a1de6cb5282
children fe48fb1bdfda
files semicongine/engine.nim
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/semicongine/engine.nim	Fri Apr 12 19:36:38 2024 +0700
+++ b/semicongine/engine.nim	Fri Apr 12 19:44:27 2024 +0700
@@ -1,3 +1,4 @@
+import std/compilesettings
 import std/algorithm
 import std/monotimes
 import std/options
@@ -78,7 +79,7 @@
 
 
 proc initEngine*(
-  applicationName: string,
+  applicationName = querySetting(projectName),
   debug = DEBUG,
   showFps = DEBUG,
   exitHandler: proc(engine: var Engine) = nil,