mirror of
https://github.com/libretro/RetroArch
synced 2025-04-17 11:43:00 +00:00
Add call to network_init before setting up http connection
This commit is contained in:
parent
d9c150fc46
commit
8bf46e4424
@ -1406,7 +1406,10 @@ static int action_ok_disk_cycle_tray_status(const char *path,
|
||||
static int action_ok_close_content(const char *path,
|
||||
const char *label, unsigned type, size_t idx, size_t entry_idx)
|
||||
{
|
||||
return generic_action_ok_command(EVENT_CMD_UNLOAD_CORE);
|
||||
menu_list_t *menu_list = menu_list_get_ptr();
|
||||
int ret = generic_action_ok_command(EVENT_CMD_UNLOAD_CORE);
|
||||
menu_list_flush_stack(menu_list, NULL, MENU_SETTINGS);
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int action_ok_quit(const char *path,
|
||||
|
@ -20,6 +20,7 @@
|
||||
#include <compat/strl.h>
|
||||
#include <file/file_path.h>
|
||||
#include <rhash.h>
|
||||
#include <net/net_compat.h>
|
||||
|
||||
#include "../file_ops.h"
|
||||
#include "../general.h"
|
||||
@ -235,6 +236,9 @@ static int cb_http_conn_default(void *data_, size_t len)
|
||||
if (!http)
|
||||
return -1;
|
||||
|
||||
if (!network_init())
|
||||
return -1;
|
||||
|
||||
http->handle = net_http_new(http->connection.handle);
|
||||
|
||||
if (!http->handle)
|
||||
|
Loading…
x
Reference in New Issue
Block a user