jac3km4 / redscript

Compiler/decompiler toolkit for redscript
MIT License
408 stars 37 forks source link

Suggestion: better overwrite/conflict logs #107

Open v1ld opened 1 week ago

v1ld commented 1 week ago
[WARN - Fri, 25 Oct 2024 21:04:58 -0400] At C:\games\steam\steamapps\common\Cyberpunk 2077\r6\scripts\Pre-2p0AccessPointScaling\Pre-2p0_Access_Point_Scaling.reds:441:1:
@replaceMethod(AccessPointControllerPS)
^^^
this method replacement overwrites a previous annotation targeting the same method, only one replacement per method can be active at a time

Would be useful to also log:

  1. Method name
  2. Conflicting source file
  3. Which method won? The first or the one that the warning is being generated for?

Realize neither 1 nor 2 may be available at point of detection, so no big deal if not possible. A quick grep answers the question anyhow.

3 would be good to log, however.

Thanks!