Skip to content

Instantly share code, notes, and snippets.

View DarsoX's full-sized avatar
💛
IRI | DBU

DarsoX DarsoX

💛
IRI | DBU
View GitHub Profile
@DarsoX
DarsoX / garant_wish.ps1
Last active November 24, 2021 23:41
garant_wish
$logLocation = "%userprofile%\AppData\LocalLow\miHoYo\Genshin Impact\output_log.txt";
$path = [System.Environment]::ExpandEnvironmentVariables($logLocation);
if (-Not [System.IO.File]::Exists($path)) {
Write-Host "Cannot find the log file! Make sure to open the wish history first!" -ForegroundColor Red
exit
}
$logs = Get-Content -Path $path
$match = $logs -match "^OnGetWebViewPageFinish.*log$"
if (-Not $match) {
Write-Host "Cannot find the wish history url! Make sure to open the wish history first!" -ForegroundColor Red