When you right click a file, you can select the option to "open with..." any program/executable, which launches that program and automatically opens the file within that program. I guess everyone knows that.
Now I'm building a game in unity (scripts are in c#) and I want my finished build to support this functionality, so that my user/player can right click, say, a savegame file, select open with, and then select my game executable. The game should then start and load the saved game.
How do I implement this functionality?What happens under the hood when this option is used from the file system, and how do I handle it inside my game?
I'm not asking about how to actually load the game (that's different for every game anyway), I just need to know how I "catch" a case in which a user opens a file with my game.exe.