Rev 3624 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3624 | Rev 4224 | ||
---|---|---|---|
Line 433... | Line 433... | ||
433 | if ((nsoption_int(window_width) != 0) && |
433 | if ((nsoption_int(window_width) != 0) && |
434 | (nsoption_int(window_height) != 0)) { |
434 | (nsoption_int(window_height) != 0)) { |
435 | fewidth = nsoption_int(window_width); |
435 | fewidth = nsoption_int(window_width); |
436 | feheight = nsoption_int(window_height); |
436 | feheight = nsoption_int(window_height); |
437 | } else { |
437 | } else { |
438 | fewidth = 800; //640; |
438 | fewidth = 790; //640; |
439 | feheight = 560; //400; |
439 | feheight = 560; //400; |
440 | } |
440 | } |
Line 441... | Line 441... | ||
441 | 441 | ||
442 | if ((nsoption_charp(homepage_url) != NULL) && |
442 | if ((nsoption_charp(homepage_url) != NULL) && |
Line 539... | Line 539... | ||
539 | 539 | ||
540 | freopen( "stderr.log", "w", stderr ); |
540 | freopen( "stderr.log", "w", stderr ); |
Line -... | Line 541... | ||
- | 541 | freopen( "stdout.log", "w", stdout ); |
|
- | 542 | ||
- | 543 | ||
- | 544 | char p[256]; |
|
- | 545 | char **z; |
|
- | 546 | z=0x20; |
|
- | 547 | strcpy(p, *z); |
|
- | 548 | ||
- | 549 | __menuet__debug_out("PATH1...\n"); |
|
- | 550 | __menuet__debug_out(p); |
|
- | 551 | __menuet__debug_out("PATH1...\n"); |
|
- | 552 | ||
- | 553 | *(strrchr(p, '/')+1)='\0'; |
|
- | 554 | ||
- | 555 | strcpy(strrchr(p, '/')+1, "res/"); |
|
- | 556 | ||
- | 557 | __menuet__debug_out("PATH1...\n"); |
|
- | 558 | __menuet__debug_out(p); |
|
- | 559 | __menuet__debug_out("PATH1...\n"); |
|
541 | freopen( "stdout.log", "w", stdout ); |
560 | |
Line 542... | Line 561... | ||
542 | 561 | asm volatile ("int $0x40"::"a"(30), "b"(1), "c"(p)); |
|
543 | 562 | ||
544 | LOG(("Registering surfaces for SDL and RAM..")); |
563 | LOG(("Registering surfaces for SDL and RAM..")); |
Line 551... | Line 570... | ||
551 | //_nsfb_register_surface(NSFB_SURFACE_SDL, &sdl_rtns, "sdl"); |
570 | //_nsfb_register_surface(NSFB_SURFACE_SDL, &sdl_rtns, "sdl"); |
552 | _nsfb_register_surface(NSFB_SURFACE_RAM, &ram_rtns, "ram"); |
571 | _nsfb_register_surface(NSFB_SURFACE_RAM, &ram_rtns, "ram"); |
553 | _nsfb_register_surface(NSFB_SURFACE_ABLE, &able_rtns, "able"); |
572 | _nsfb_register_surface(NSFB_SURFACE_ABLE, &able_rtns, "able"); |
554 | _nsfb_register_surface(NSFB_SURFACE_KOLIBRI, &kolibri_rtns, "kolibri"); |
573 | _nsfb_register_surface(NSFB_SURFACE_KOLIBRI, &kolibri_rtns, "kolibri"); |
Line -... | Line 574... | ||
- | 574 | ||
555 | 575 | ||
- | 576 | //respaths = fb_init_resource("/kolibrios/:/hd0/1/res/:/bd0/1/res/:/tmp9/1/netsurf/res/:res/:fonts/:"); |
|
Line 556... | Line 577... | ||
556 | respaths = fb_init_resource("/hd0/1/res/:/bd0/1/res/:/tmp9/1/netsurf/res/:res/:fonts/"); |
577 | respaths = fb_init_resource(p); |
557 | 578 | ||
Line -... | Line 579... | ||
- | 579 | options = filepath_find(respaths, "Choices"); |
|
- | 580 | messages = filepath_find(respaths, "messages"); |
|
558 | options = filepath_find(respaths, "Choices"); |
581 | |
559 | messages = filepath_find(respaths, "messages"); |
582 | __menuet__debug_out("===path to msg\n"); |
- | 583 | __menuet__debug_out(messages); |
|
- | 584 | __menuet__debug_out("\n===path to msg\n"); |
|
- | 585 | ||
- | 586 | //netsurf_init(&argc, &argv, options, "res/messages"); |
|
560 | 587 | netsurf_init(&argc, &argv, options, messages); |
|
Line 561... | Line 588... | ||
561 | netsurf_init(&argc, &argv, options, "res/messages"); |
588 | extern HTTP_INIT(); |
562 | 589 | HTTP_INIT(); |