feat: osu! updating and launching does now work
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
@@ -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';
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user