Skip to content
This repository has been archived by the owner on Dec 12, 2022. It is now read-only.

Commit

Permalink
V13RC6
Browse files Browse the repository at this point in the history
  • Loading branch information
Laf111 authored Feb 26, 2019
1 parent 6222752 commit d99e707
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 9 deletions.
1 change: 1 addition & 0 deletions Change.log
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
(ties DLC and UPDATE DATA in the game's folder)
- when a game is not listed in the database, add it to the database
- add a script to import transferable cache file
- add a script to monitor BatchFw execution (set launchGame.bat priority to high, define a timeout and propose to kill BatchFw if reached)

20/01/2019 V12-1 :
- Minor fix : cemuHook settings was not displayed correctlty in wizardFirstLaunch.bat
Expand Down
18 changes: 9 additions & 9 deletions tools/launchGame.bat
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ REM : main

REM : check a graphic pack update
set "script="!BFW_TOOLS_PATH:"=!\updateGraphicPacksFolder.bat""
wscript /nologo !StartHiddenWait! !script!
wscript /nologo !StartHiddenWait! !script! -silent

REM : GFX type to provide
set "gfxType=V2"
Expand Down Expand Up @@ -490,7 +490,14 @@ REM : main
wscript /nologo !StartHiddenCmd! "%windir%\system32\cmd.exe" /C robocopy !gtscf! !ctscf! /S /XF *.log /XF *.old /XF *emu* /XF *.rar

:loadOptions


REM : remove all links
REM : clean links in game's graphic pack folder
if exist !GAME_GP_FOLDER! for /F %%a in ('dir /A:L /B !GAME_GP_FOLDER! 2^>NUL') do (
set "gpLink="!GAME_GP_FOLDER:"=!\%%a""
rmdir /Q /S !gpLink! 2>NUL
)

if ["!gfxType!"] == ["V3"] (
@echo Search and load mods found for !GAME_TITLE! ^.^.^. >> !batchFwLog!
@echo Search and load mods found for !GAME_TITLE! ^.^.^.
Expand Down Expand Up @@ -686,13 +693,6 @@ REM : main
REM : link all missing graphic packs
REM : always import 16/9 graphic packs

REM : remove all links
REM : clean links in game's graphic pack folder
if exist !GAME_GP_FOLDER! for /F %%a in ('dir /A:L /B !GAME_GP_FOLDER! 2^>NUL') do (
set "gpLink="!GAME_GP_FOLDER:"=!\%%a""
rmdir /Q /S !gpLink! 2>NUL
)

call:importGraphicPacks > NUL

REM : get user defined ratios list
Expand Down
9 changes: 9 additions & 0 deletions tools/monitorBatchFw.bat
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,15 @@ REM : main
:waitingLoopProcesses
timeout /T 1 > NUL
for /F "delims=" %%i in ('wmic process get Commandline ^| find /V "wmic" ^| find /I "LaunchGame" ^| find /V "find"') do (

REM : set launchGame processes priority to high
wmic process where "Name like '%%cmd.exe%%' and CommandLine like '%%updateGamesGraphicPacks.bat%%'" call setpriority 128 > NUL
wmic process where "Name like '%%cmd.exe%%' and CommandLine like '%%createExtraGraphicPacks.bat%%'" call setpriority 128 > NUL
wmic process where "Name like '%%cmd.exe%%' and CommandLine like '%%createGameGraphicPacks%%'" call setpriority 128 > NUL
wmic process where "Name like '%%cmd.exe%%' and CommandLine like '%%instanciateResX2gp.bat%%'" call setpriority 128 > NUL
wmic process where "Name like '%%cmd.exe%%' and CommandLine like '%%createV2GraphicPacks.bat%%'" call setpriority 128 > NUL
wmic process where "Name like '%%cmd.exe%%' and CommandLine like '%%copy%%'" call setpriority 128 > NUL

REM : monitor Cemu.exe launch and exit
for /F "delims=" %%j in ('tasklist /FI "STATUS eq RUNNING" ^| find /I "cemu.exe"') do exit 0
set /A "duration+=1"
Expand Down

0 comments on commit d99e707

Please sign in to comment.