Updated to new tox API. Fixed profile loading.

This commit is contained in:
Michael Raitza
2015-08-26 16:48:33 +02:00
parent ed96d36711
commit b376432f04
9 changed files with 248 additions and 216 deletions

View File

@@ -70,9 +70,10 @@ twc_bootstrap_tox(Tox *tox, const char *address, uint16_t port,
{
uint8_t binary_key[TOX_ADDRESS_SIZE];
twc_hex2bin(public_key, TOX_ADDRESS_SIZE, binary_key);
TOX_ERR_BOOTSTRAP err;
int result = tox_bootstrap_from_address(tox, address, port,
binary_key);
int result = tox_bootstrap(tox, address, port,
binary_key, &err);
return result;
}