From beee0db706280b6cdb93884f2af0bb09255145dd Mon Sep 17 00:00:00 2001 From: Made Baruna Date: Thu, 6 Jul 2023 11:31:19 +0800 Subject: [PATCH] Update import script --- src/locales/en.json | 2 +- src/locales/id.json | 2 +- src/routes/wish/import.svelte | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/locales/en.json b/src/locales/en.json index b5652ea2..e2c5b6b7 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -274,7 +274,7 @@ "Open Genshin Impact in this PC (If you use multiple accounts, please restart the game)", "Then open the wish history in the game and wait it to load", "Then open the folder where your game is installed (example: C:\\Games\\Genshin Impact)", - "Then open folder GenshinImpact_Data → webCaches → Cache → Cache_Data", + "Then open folder GenshinImpact_Data → webCaches → 2.13.0.1 → Cache → Cache_Data", "Right click \"data_2\" file then click \"Open with\" then select Notepad (If you get error like \"The process cannot access the file because it is being used by another process\" please exit the game first)", "Press CTRL+F then check \"Wrap around\" and select direction \"Up\" then in the input box search for \"e20190909gacha-v2\" (without the quote) then click Find Next", "Copy all the link from https://webstatic until game_biz=hk4e_global the url looks like this: https://webstatic-sea.hoyoverse.com/genshin/event/e20190909gacha-v2/index.html?.......&game_biz=hk4e_global", diff --git a/src/locales/id.json b/src/locales/id.json index 558b0624..8f75ce5e 100644 --- a/src/locales/id.json +++ b/src/locales/id.json @@ -274,7 +274,7 @@ "Buka Genshin Impact di PC ini (Jika mempunyai beberapa akun, restart dulu game nya)", "Buka riwayat history di dalam game nya, dan tunggu sampai selesai loading", "Kemudian buka folder dimana game nya ter-install (contoh: C:\\Games\\Genshin Impact)", - "Kemudian buka folder GenshinImpact_Data → webCaches → Cache → Cache_Data", + "Kemudian buka folder GenshinImpact_Data → webCaches → 2.13.0.1 → Cache → Cache_Data", "Klik kanan \"data_2\" kemudian klik \"Open with\" kemudian pilih Notepad (Jika kamu mendapatkan error seperti \"The process cannot access the file because it is being used by another process\" silahkan tutup dahulu game nya)", "Tekan CTRL+F kemudian centang \"Wrap around\" dan pilih direction \"Up\" dan di kotak input nya masukkan \"e20190909gacha-v2\" (tanpa petik) kemudian klik Find Next", "Copy semua link nya dari https://webstatic sampai game_biz=hk4e_global link nya seperti ini: https://webstatic-sea.hoyoverse.com/genshin/event/e20190909gacha-v2/index.html?.......&game_biz=hk4e_global", diff --git a/src/routes/wish/import.svelte b/src/routes/wish/import.svelte index 751e2faf..908f03e4 100644 --- a/src/routes/wish/import.svelte +++ b/src/routes/wish/import.svelte @@ -94,8 +94,8 @@ }, }; - let powershellScript = `Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex "&{$((New-Object System.Net.WebClient).DownloadString('https://gist.githubusercontent.com/MadeBaruna/1d75c1d37d19eca71591ec8a31178235/raw/702e34117b07294e6959928963b76cfdafdd94f3/getlink.ps1'))} global"`; - let powershellScriptChina = `Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex "&{$((New-Object System.Net.WebClient).DownloadString('https://gist.githubusercontent.com/MadeBaruna/1d75c1d37d19eca71591ec8a31178235/raw/702e34117b07294e6959928963b76cfdafdd94f3/getlink.ps1'))} china"`; + let powershellScript = `Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex "&{$((New-Object System.Net.WebClient).DownloadString('https://gist.githubusercontent.com/MadeBaruna/1d75c1d37d19eca71591ec8a31178235/raw/649a9e3a4e88f3bffdd0fe6dd8eeed23737b15da/getlink.ps1'))} global"`; + let powershellScriptChina = `Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex "&{$((New-Object System.Net.WebClient).DownloadString('https://gist.githubusercontent.com/MadeBaruna/1d75c1d37d19eca71591ec8a31178235/raw/649a9e3a4e88f3bffdd0fe6dd8eeed23737b15da/getlink.ps1'))} china"`; let powershellScriptSource = 'https://gist.github.com/MadeBaruna/1d75c1d37d19eca71591ec8a31178235'; let powershellScriptAlt = `iex('Write-Host "Copy the wish history table!";while(1) { $c = Get-Clipboard -TextFormatType Html; if ($c -match "^SourceURL:https:/.+log") { break; }; for($i=5; $i -gt 0; $i--) { Write-Host "\`rChecking in $i" -NoNewline; Sleep 1; }; }; Write-Host " OK"; $m=(((Get-Clipboard -TextFormatType Html) | Select-String "(https:/.+log)").Matches[0].Value);$m; Set-Clipboard -Value $m;')`; let powershellScriptAlt2 = @@ -902,10 +902,10 @@
-
+

{$t('wish.import.header.0')}

{$t('wish.import.header.1')}

-
+
Paimon

{$t('wish.import.header.2')}

@@ -1391,7 +1391,7 @@