mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-13 14:07:01 -04:00
init sockets in main function, otherwise the installer window doesn't work if updates were not checked first
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1469 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -142,7 +142,6 @@ void check_updates() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void check_updates_now(bool async) {
|
void check_updates_now(bool async) {
|
||||||
wxSocketBase::Initialize();
|
|
||||||
if (async) {
|
if (async) {
|
||||||
CheckUpdateThread* thread = new CheckUpdateThread;
|
CheckUpdateThread* thread = new CheckUpdateThread;
|
||||||
thread->Create();
|
thread->Create();
|
||||||
|
|||||||
@@ -26,6 +26,7 @@
|
|||||||
#include <wx/fs_inet.h>
|
#include <wx/fs_inet.h>
|
||||||
#include <wx/wfstream.h>
|
#include <wx/wfstream.h>
|
||||||
#include <wx/txtstrm.h>
|
#include <wx/txtstrm.h>
|
||||||
|
#include <wx/socket.h>
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : Main function/class
|
// ----------------------------------------------------------------------------- : Main function/class
|
||||||
|
|
||||||
@@ -82,6 +83,7 @@ int MSE::OnRun() {
|
|||||||
#endif
|
#endif
|
||||||
wxInitAllImageHandlers();
|
wxInitAllImageHandlers();
|
||||||
wxFileSystem::AddHandler(new wxInternetFSHandler); // needed for update checker
|
wxFileSystem::AddHandler(new wxInternetFSHandler); // needed for update checker
|
||||||
|
wxSocketBase::Initialize();
|
||||||
init_script_variables();
|
init_script_variables();
|
||||||
init_file_formats();
|
init_file_formats();
|
||||||
cli.init();
|
cli.init();
|
||||||
|
|||||||
Reference in New Issue
Block a user