Skip to content

Commit 92a6f8b

Browse files
Add files via upload
1 parent 9583756 commit 92a6f8b

File tree

11 files changed

+85
-0
lines changed

11 files changed

+85
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
C:\Playnite-Shell\ffmpeg-6.0-essentials_build\bin\ffplay.exe
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
C:\Playnite\
78.4 KB
Binary file not shown.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
@ECHO OFF
2+
CD C:\Playnite-Shell\
3+
4+
ECHO Playnite installation folder (Please include \ at end)
5+
ECHO.
6+
ECHO Current location: %Playnite%
7+
set /p Playnite=Playnite Folder location:
8+
ECHO|set /p="%Playnite%">PLAYNITE.LOCATION
9+
ECHO.
10+
11+
ECHO FFPLAY Location
12+
ECHO NOTE: FFPLAY.EXE can be downloaded from: https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-essentials.zip
13+
ECHO.
14+
ECHO Current location: %FFPLAY%
15+
set /p FFPLAY=FFPLAY.exe location:
16+
ECHO|set /p="%FFPLAY%">FFPLAY.LOCATION
17+
ECHO.
18+
19+
ECHO Screen size
20+
ECHO Please format like: -x 1920 -y 1080
21+
ECHO.
22+
ECHO Current size: %SIZE%
23+
set /p SIZE=Screen size:
24+
ECHO|set /p="%SIZE%">SCREENSIZE.PIXELS
25+
ECHO.
26+
27+
ECHO Splash Video
28+
ECHO.
29+
ECHO Current video: %VIDEO%
30+
set /p VIDEO=Video location:
31+
ECHO|set /p="%VIDEO%">VIDEO.LOCATION
32+
ECHO.
33+
GOTO Config.json
34+
35+
:Config.json
36+
@ECHO OFF
37+
powershell.exe -noprofile -executionpolicy bypass -file .\config-Script.ps1
38+
EXIT
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-x 1920 -y 1080
92.5 KB
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
C:\USERS\%USERNAME%\Videos\PlayniteSplash.MOV
84.1 KB
Binary file not shown.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
$playniteDirectory = GET-CONTENT 'C:\Playnite-Shell\Playnite.LOCATION' -RAW
2+
$configPath = [System.IO.Path]::Combine($playniteDirectory, 'config.json')
3+
$config = [System.IO.File]::ReadAllLines($configPath) | ConvertFrom-Json
4+
$config.AppStartupScript = 'if((get-process "EXPLORER" -ea SilentlyContinue) -eq $Null){
5+
"Not Running"
6+
#not running
7+
}
8+
9+
else{
10+
"Running"
11+
if ($PlayniteApi.ApplicationInfo.Mode -eq "Fullscreen")
12+
{
13+
TASKKILL /IM EXPLORER.EXE /F
14+
}
15+
else
16+
{
17+
#DESKTOPmode
18+
}
19+
20+
}'
21+
$config.AppShutdownScript = 'if ($PlayniteApi.ApplicationInfo.Mode -eq "Fullscreen")
22+
{
23+
START-PROCESS "C:\Playnite-Shell\Windows-Shell.EXE"
24+
}
25+
else
26+
{
27+
# Execute when running in Fullscreen mode
28+
}'
29+
$config | ConvertTo-Json -depth 10 | Out-File $configPath -Encoding utf8
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
CD C:\Playnite-Shell\
2+
powershell.exe -noprofile -executionpolicy bypass -file .\config-Script.ps1

0 commit comments

Comments
 (0)