# HG changeset patch # User Sam # Date 1683738803 25200 # Node ID f1f35e9f53355465076db3f0f5655e9c20b6aaf0 # Parent b5d9410a818408d6b926be2c6959aa76fd2ea3c8 fix: resources on windows diff -r b5d9410a8184 -r f1f35e9f5335 config.nims --- 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": diff -r b5d9410a8184 -r f1f35e9f5335 src/semicongine/core/buildconfig.nim --- 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" diff -r b5d9410a8184 -r f1f35e9f5335 src/semicongine/platform/windows/audio.nim --- 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 diff -r b5d9410a8184 -r f1f35e9f5335 src/semicongine/platform/windows/window.nim --- 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