FSGModding / FSG_Mod_Assistant

Farming Simulator 22 Mod Manager.
https://fsgmodding.github.io/FSG_Mod_Assistant/
ISC License
71 stars 11 forks source link

Button to empty log in log file viewer #160

Closed Williwillswisse closed 11 months ago

Williwillswisse commented 11 months ago

Is there an existing issue for this?

Is your feature request related to a problem? Please describe.

No response

Describe the solution you'd like

Great work! Thanks for the tool.

I am often involved in modding and would find it very helpful if the log file viewer had a button to empty the actual log.txt. Maybe in this area:

image

Anything else?

No response

jtsage commented 11 months ago

So, I did add a clear button - note that this is only going to work when the game isn't running. The game does indeed lock the log file - at least the giants e-shop version does. You might be able to get around this with permission escalation, but that's not something I have a way to support. (similar problem exists for symlink support) But, the button is now there - it just writes an empty string to the file, so it won't delete an existing file, just clear it.

jtsage commented 11 months ago

Implemented in 3.1, releasing this weekend