Sean-Kurian / OnlyLs

Lobby checker for League of Legends, useful for de-anonymizing names in champion select.
GNU General Public License v3.0
4 stars 1 forks source link

Detect and Close When Client Isn't Running #4

Open Sean-Kurian opened 1 year ago

Sean-Kurian commented 1 year ago

Currently if you launch while the client isn't running, the executable will throw an error. Catch this exception and handle gracefully instead.

cmrngoode commented 1 year ago

I'm getting this error when I try to run the program normally or as an admin while the client is open:

There was an error while processing your request: [Errno 2] No such file or directory: 'C:/Riot Games/League of Legends/lockfile'

Sean-Kurian commented 1 year ago

I will look into this today - do you have multiple drives, and is the Riot Games folder in a different one?

cmrngoode commented 1 year ago

I just have one drive and the riot folder is in it's default directory. I have the program on my desktop.

Sean-Kurian commented 1 year ago

Can you find your riot games installation folder while the client is running? Where is it? And is there a lockfile if you follow the subdirectories? (lockfile will only be present while the client is running)

EDIT: Also, what's your Operating System?

cmrngoode commented 1 year ago

yes it's in C:/Riot Games/League of Legends but there's no "lockfile"

I'm running Windows 11 Home.

retrohacking commented 11 months ago

Hi, I've created a pull request for this issue some days ago. Probably you missed it, let me know :D