-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from thunderstore-io/autolist-default-packages
Added autolistPackageIds
- Loading branch information
Showing
4 changed files
with
45 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
export const AUTOLIST_PACKAGE_CHOICES = [ | ||
{ | ||
value: "BepInEx-BepInExPack", | ||
name: "BepInEx 5 (use this for Unity mono games)", | ||
}, | ||
{ | ||
value: "BepInEx-BepInExPack_IL2CPP", | ||
name: "BepInEx 6 IL2CPP (use this for Unity IL2CPP games)", | ||
}, | ||
{ | ||
value: "Thunderstore-unreal_shimloader", | ||
name: "Unreal Engine shimloader", | ||
}, | ||
{ | ||
value: "LavaGang-MelonLoader", | ||
name: "MelonLoader", | ||
}, | ||
]; | ||
|
||
const AUTOLIST_PACKAGE_IDS = AUTOLIST_PACKAGE_CHOICES.map((x) => x.value); | ||
|
||
export function isAutolistPackageValid(autolistPackageId: string): boolean { | ||
return AUTOLIST_PACKAGE_IDS.indexOf(autolistPackageId) > -1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters