Properly initialize Winsock on startup

Also fix typo in _get_last_error which caused Winsock connect to fail.
This commit is contained in:
Fabio Alessandrelli 2018-09-13 15:47:00 +02:00
parent 9b31d2da1c
commit 01c3c1a07b
5 changed files with 24 additions and 1 deletions

View file

@ -139,6 +139,8 @@ void OS_Unix::initialize_core() {
}
void OS_Unix::finalize_core() {
NetSocketPosix::cleanup();
}
void OS_Unix::alert(const String &p_alert, const String &p_title) {