connorh315 / DATManager

C# program for extracting files from newer Traveller's Tales videogames
14 stars 2 forks source link

[enhancement] "Open With" support #2

Closed SirYodaJedi closed 2 years ago

SirYodaJedi commented 2 years ago

I noticed the application doesn't open a DAT file if you drag a DAT file onto the executable or use the file manager's "Open With" feature. This is just a simple command line argument with the path (ex: DATManager.exe "C:\GOG Games\LEGO Star Wars - The Clone Wars\GAME1.DAT"), so it should just be a matter of adding an argument check on launch.

silly poorly-written psuedocode to demonstrate

if(exists %1):
    try:
        file.open(%1)
        app.launch()
    catch(file.ReadError):
        app.launch()
else:
    app.launch()
connorh315 commented 2 years ago

Agreed, I should have had this from the beginning honestly. I'll add it ASAP, just need to fix my local repo first!

aideniscool2 commented 2 years ago

I got the newest version and how do we use it for lego dimensions? I tired just opening with the exe but it didnt open.

connorh315 commented 2 years ago

Version 2.3.0 now implements this, sorry Yui, I completely forgot about this.