From 98d6de640ff2b0096fd4ad69ccfc0bac5855dcfc Mon Sep 17 00:00:00 2001 From: paoda Date: Mon, 9 Sep 2024 03:34:00 -0500 Subject: [PATCH] fix(windows): "SDL.h" as opposed to "SDL2/SDL.h" --- dl_sdl2.ps1 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dl_sdl2.ps1 b/dl_sdl2.ps1 index f6737a0..95ac578 100644 --- a/dl_sdl2.ps1 +++ b/dl_sdl2.ps1 @@ -19,13 +19,17 @@ if (!(Test-Path -PathType Leaf $ArchiveFile)) { Expand-Archive $ArchiveFile -if (Test-Path -PathType Leaf .\SDL2) { +if (Test-Path -PathType Container .\SDL2) { Remove-Item -Recurse .\SDL2 } New-Item -Force -ItemType Directory -Path .\SDL2 Get-ChildItem -Path ".\SDL2-devel-mingw\SDL2-$SDL2Version\x86_64-w64-mingw32" | Move-Item -Destination .\SDL2 +# #include +Move-Item -Force -Path .\SDL2\include\SDL2\* -Destination .\SDL2\include +Remove-Item -Force .\SDL2\include\SDL2 + New-Item -Force .\sdl.json -Value $Json Remove-Item -Recurse .\SDL2-devel-mingw