godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
91.46k stars 21.26k forks source link

[UPNP] Allow disabling UPNP implementation on the Web #99597

Closed Faless closed 3 days ago

Faless commented 5 days ago

Make UPNP classes custom instance, so they can come with empty implementation on the Web (where the would not work anyway) without breaking scripts referencing it.

This results in smaller Web builds by not including the library which also results in the emscripten socket wrappers to be stipped away.

Repiteo commented 3 days ago

Thanks!