lewisclark / glua-steal

Retrieves client-sided Lua files from Garry's Mod game servers
GNU General Public License v3.0
151 stars 15 forks source link

Lua being appended. #35

Closed wrefgtzweve closed 1 year ago

wrefgtzweve commented 1 year ago

Describe the bug If you join a server of whose files you already have it appends it to the file. This leads to a lot of double code in files and makes it painful to easily search through lua / files.

Preferably there would be an option to overwrite the file or make a new one with a new name, or even add a date per server folder so you can have multiple copies of the same server.

Additional details (please complete the following information): 64bit v1.9

lewisclark commented 1 year ago

Lua code is appended to prevent servers from overwriting Lua files using RunString and thus hiding their code: https://github.com/darkjacky/pwnscripthook/blob/e9932f7c83f5bae4b95c8d72c743f6348e6445ea/lua/autorun/client/cl_scripthookpwnd.lua#L17-L26. I'll definitely add an option in the config to choose between appending and overwriting, though.

lewisclark commented 1 year ago

Added in v2.0 - thanks for the issue.