evilC / AutoHotInterception

An AutoHotkey wrapper for the Interception driver
MIT License
707 stars 64 forks source link

set overwrite flag when creating library files #105

Closed tpensyl closed 1 year ago

tpensyl commented 1 year ago

This was my solution to https://github.com/evilC/AutoHotInterception/issues/102. Setting the flag to 1 causes it to overwrite any existing files instead of failing. (https://www.autohotkey.com/docs/v2/lib/FileInstall.htm)

Perhaps a better solution would be to check if the file already exists, and refrain from writing any file at all, but I am very new to AHK, so did not try.

[EDIT: sorry, the diff looks backwards, looking to see what I did wrong with this pr...]

tpensyl commented 1 year ago

sorry, I'm slow here, it looks like this commit already fixed the issue: https://github.com/evilC/AutoHotInterception/commit/c218f9f2b87f5e30bda24682d3a9debdadf25209

I also did the pr incorrectly so it actually reverts