feat: add osu skin retrieval functionality and integrate into loading and setup processes

This commit is contained in:
2025-07-04 10:16:51 +02:00
parent 8c5e7ca6f2
commit 41608afae2
6 changed files with 53 additions and 11 deletions

View File

@@ -17,7 +17,7 @@
userSettings,
} from '@/userSettings';
import Label from '@/components/ui/label/label.svelte';
import { beatmapSets, currentView, osuBuild, osuStream, skins } from '@/global';
import { beatmapSets, currentSkin, currentView, osuBuild, osuStream, skins } from '@/global';
import Launch from './Launch.svelte';
import Confetti from 'svelte-confetti';
@@ -92,6 +92,11 @@
skins.set(skinsCount);
}
const skin: string = await invoke('get_osu_skin', {
folder: $osuInstallationPath,
});
currentSkin.set(skin);
const osuReleaseStream: string = await invoke('get_osu_release_stream', {
folder: $osuInstallationPath,
});