cherriesandmochi / gdmaim

GDMaim is a GDScript obfuscation plugin for the Godot Engine.
MIT License
85 stars 7 forks source link

Remove unnecessary spaces #9

Closed Ethosa closed 4 months ago

Ethosa commented 5 months ago

Removing spaces from obfuscate code can be helpful Before

var test   : Vector2  = Vector2  (   123232.0   , 13.0  )

func test_func   ( a1 : int = 10 , a2 := "s"  )     ->   void    :
    print ( a1 , ", ", a2)

After

var _SdgF89_:Vector2=Vector2(123232.0,13.0)
func _sfeDzf8(_xdeffsde:int=10,_dsfee9:="s")->void:
    print(_xdeffsde,", ",_dsfee9)
Ethosa commented 5 months ago

After #8 it can be also translated to:

var _SdgF89_:Vector2=Vector2(123232.0,13.0);func _sfeDzf8(_xdeffsde:int=10,_dsfee9:="s")->void:print(_xdeffsde,", ",_dsfee9)
Ethosa commented 5 months ago

After #7 it can be translated to:

func _sfeDzf8(_xdeffsde:int=10,_dsfee9:="s")->void:
    print(_xdeffsde,", ",_dsfee9)
var _SdgF89_:Vector2=Vector2(123232.0,13.0)

And after #8 to:

func _sfeDzf8(_xdeffsde:int=10,_dsfee9:="s")->void:print(_xdeffsde,", ",_dsfee9)
var _SdgF89_:Vector2=Vector2(123232.0,13.0)
cherriesandmochi commented 4 months ago

Thanks for the suggestion!