Magic is an Automatic Games Importer Compagnion for Playnite.
It “magically” detect all your games in a given folder(s) and add them all to playnite automatically.
The plugin handles game detection itself using a scoring-based system to determine the most likely .exe file for each game.
For each game folder, it:
- Scans all
.exefiles recursively. - Marks obvious utility or non-game executables.
- Uses only non-bad candidates for primary scoring when possible.
- Sorts candidates by highest score.
- Uses file size as a tiebreaker when scores are equal.
- Selects the best candidate if its score is at least
30. - Falls back to the largest
.exein the folder if the best score is below30.
Each .exe receives points based on how likely it is to be the main game executable. The candidate with the highest score is selected.
- Exact main folder name match:
+80 - Main folder name is contained in the executable name:
+60 - Cleaned game name is contained in the executable name:
+40 - Exact alternate parent-folder match:
+50 - Alternate parent-folder name is contained in the executable name:
+30 - Same first letter as the main, cleaned, or parent candidate name:
+35 - Path contains
Binaries,Win64, orx64:+50 - File size is at least
50 MB:+40 - File size is at least
150 MB:+60
- Obvious utility, crash, setup, launcher, or updater executables:
-200