You've already forked AstralRinth
forked from didirus/AstralRinth
fix: correct parameter name for create function in profile helper (#4744)
Co-authored-by: Panyu <48863527+PanyuDev@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
386e6e50da
commit
29671347a0
@@ -18,7 +18,7 @@ import { install_to_existing_profile } from '@/helpers/pack.js'
|
|||||||
- icon is a path to an image file, which will be copied into the profile directory
|
- icon is a path to an image file, which will be copied into the profile directory
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export async function create(name, gameVersion, modloader, loaderVersion, iconPath, skipInstall) {
|
export async function create(name, gameVersion, modloader, loaderVersion, icon, skipInstall) {
|
||||||
//Trim string name to avoid "Unable to find directory"
|
//Trim string name to avoid "Unable to find directory"
|
||||||
name = name.trim()
|
name = name.trim()
|
||||||
return await invoke('plugin:profile-create|profile_create', {
|
return await invoke('plugin:profile-create|profile_create', {
|
||||||
@@ -26,7 +26,7 @@ export async function create(name, gameVersion, modloader, loaderVersion, iconPa
|
|||||||
gameVersion,
|
gameVersion,
|
||||||
modloader,
|
modloader,
|
||||||
loaderVersion,
|
loaderVersion,
|
||||||
iconPath,
|
icon,
|
||||||
skipInstall,
|
skipInstall,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user