changeset 214:f1f35e9f5335

fix: resources on windows
author Sam <sam@basx.dev>
date Wed, 10 May 2023 10:13:23 -0700
parents b5d9410a8184
children 888924431164
files config.nims src/semicongine/core/buildconfig.nim src/semicongine/platform/windows/audio.nim src/semicongine/platform/windows/window.nim
diffstat 4 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/config.nims	Wed May 10 22:36:59 2023 +0700
+++ b/config.nims	Wed May 10 10:13:23 2023 -0700
@@ -52,7 +52,7 @@
           exec &"zip -r {outputfile} ."
         elif defined(windows):
           # TODO: test this
-          exec &"powershell Compress-Archive {inputfile} {outputfile}"
+          exec &"powershell Compress-Archive * {outputfile}"
         cd(oldcwd)
 
 task build_all_debug, "build all examples for debug":
--- a/src/semicongine/core/buildconfig.nim	Wed May 10 22:36:59 2023 +0700
+++ b/src/semicongine/core/buildconfig.nim	Wed May 10 10:13:23 2023 -0700
@@ -23,7 +23,7 @@
   if defined(linux):
     assert defined(VK_USE_PLATFORM_XLIB_KHR), ENGINENAME & " requires --d:VK_USE_PLATFORM_XLIB_KHR for linux builds"
   elif defined(windows):
-    assert defined(VK_USE_PLATFORM_XLIB_KHR), ENGINENAME & " requires --d:VK_USE_PLATFORM_WIN32_KHR for windows builds"
+    assert defined(VK_USE_PLATFORM_WIN32_KHR), ENGINENAME & " requires --d:VK_USE_PLATFORM_WIN32_KHR for windows builds"
   else:
     assert false, "trying to build on unsupported platform"
 
--- a/src/semicongine/platform/windows/audio.nim	Wed May 10 22:36:59 2023 +0700
+++ b/src/semicongine/platform/windows/audio.nim	Wed May 10 10:13:23 2023 -0700
@@ -1,7 +1,7 @@
 import winim
 import winim/extra
 
-import ../../core
+import ../../core/audiotypes
 
 template checkWinMMResult*(call: untyped) =
   let value = call
--- a/src/semicongine/platform/windows/window.nim	Wed May 10 22:36:59 2023 +0700
+++ b/src/semicongine/platform/windows/window.nim	Wed May 10 10:13:23 2023 -0700
@@ -1,7 +1,7 @@
 import std/options
 import winim
 
-import ../../core
+import ../../core/vector
 import ./virtualkey_map
 import ../../events