feat: osu! updating and launching does now work

This commit is contained in:
2025-07-03 22:10:38 +02:00
parent bd5eb97f6e
commit 807485a7f3
7 changed files with 200 additions and 46 deletions

View File

@@ -1,3 +1,15 @@
export const clientNeedsUpdate = () => {
}
import { invoke } from '@tauri-apps/api/core';
export const setUserConfigValue = async (osuFolderPath: string, key: string, value: string) =>
await invoke('set_osu_user_config_value', {
osuFolderPath,
key,
value,
});
export const setConfigValue = async (osuFolderPath: string, key: string, value: string) =>
await invoke('set_osu_config_value', {
osuFolderPath,
key,
value,
});

View File

@@ -52,7 +52,8 @@ export const formatTimeReadable = (initialSeconds: number) => {
};
export const releaseStreamToReadable = (releaseStream: string) => {
if (releaseStream.toLowerCase() === 'cuttingedge') return 'Cutting Edge';
console.log(releaseStream.replaceAll(' ', '').toLowerCase());
if (releaseStream.replaceAll(' ', '').toLowerCase() === 'cuttingedge') return 'Cutting Edge';
return 'Stable';
};