mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-17 01:33:16 +03:00
Pass store path to netsurf_init()
This commit is contained in:
parent
48c48319e0
commit
771da43c43
@ -1054,6 +1054,7 @@ static struct gui_browser_table atari_browser_table = {
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
char messages[PATH_MAX];
|
||||
char store[PATH_MAX];
|
||||
const char *addr;
|
||||
char * file_url = NULL;
|
||||
struct stat stat_buf;
|
||||
@ -1091,6 +1092,7 @@ int main(int argc, char** argv)
|
||||
|
||||
atari_find_resource((char*)&messages, "messages", "res/messages");
|
||||
atari_find_resource((char*)&options, "Choices", "Choices");
|
||||
atari_find_resource((char*)&store, "cache", "res/cache");
|
||||
|
||||
/* initialise logging - not fatal if it fails but not much we can
|
||||
* do about it
|
||||
@ -1107,7 +1109,7 @@ int main(int argc, char** argv)
|
||||
|
||||
/* common initialisation */
|
||||
LOG(("Initialising core..."));
|
||||
ret = netsurf_init(messages, NULL);
|
||||
ret = netsurf_init(messages, store);
|
||||
if (ret != NSERROR_OK) {
|
||||
die("NetSurf failed to initialise");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user