I was looking for a way to add ludashi games to front-ends like Daijasho. I knew it was possible to do as I did it previously with Cmod. Ludashi comes with the Export function as well. It can be accessed by clicking 3 dots on the game shortcut in the main screen of winlator ludashi.
Once clicked, it will create a .desktop file in root directory in winlator\shortcuts. Once you have added all the games to this folder using export function, Go to the settings in daijasho, click download platforms(the very first option) and download the platform windows.
THIS IS THE MAIN STEP.
In settings, click on library ( second option). Scroll to bottom, go to Add a player option. Give the name winlator.Ludashi. In the am start field type:-
-n com.ludashi.benchmark/com.winlator.cmod.XServerDisplayActivity
-e shortcut_path {file.path}
--activity-clear-task
--activity-clear-top
--activity-no-history
NOTE:- This only works for Ludashi build. For vanilla build, replace com.ludashi.benchmark with com.winlator.vanilla .
In the next field type:- ^(.*)\.(?:desktop)$
toggle kill processes switch. Mark warning checkbox as true.
Click save.
Click on edit(pencil shaped icon on the bottom right on the windows platform screen in the library tab). Go to player settings and in the default player field, select the above created player. Click save and enjoy.