mirror of
https://github.com/ysoftdevs/cpp-examples.git
synced 2026-01-14 15:53:32 +01:00
add SDL2 samples
This commit is contained in:
14
sdl/DownloadLibrary.ps1
Normal file
14
sdl/DownloadLibrary.ps1
Normal file
@@ -0,0 +1,14 @@
|
||||
Write-Host("Downloading library")
|
||||
$workingPath = (Get-Location).path
|
||||
$clnt = new-object System.Net.WebClient
|
||||
$url = "http://libsdl.org/release/SDL2-devel-2.0.1-VC.zip"
|
||||
$file = $workingPath + "\SDL2-devel-2.0.1-VC.zip"
|
||||
$clnt.DownloadFile($url,$file)
|
||||
|
||||
Write-Host("Unzip the file to local directory")
|
||||
$shell_app=new-object -com shell.application
|
||||
$zip_file = $shell_app.namespace($file)
|
||||
$destination = $shell_app.namespace($workingPath)
|
||||
$destination.Copyhere($zip_file.items())
|
||||
|
||||
Write-Host("Done")
|
||||
Reference in New Issue
Block a user