aboutsummaryrefslogtreecommitdiff
path: root/textures/base/pack/zoom.png
blob: b27c8c8ba0c3310486973772dfc4de53555268b0 (plain)
ofshex dumpascii
0000 89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52 00 00 00 80 00 00 00 80 08 04 00 00 00 69 37 a9 .PNG........IHDR.............i7.
0020 40 00 00 00 02 73 42 49 54 08 08 55 ec 46 04 00 00 00 09 70 48 59 73 00 00 03 b1 00 00 03 b1 01 @....sBIT..U.F.....pHYs.........
0040 f5 83 ed 49 00 00 00 19 74 45 58 74 53 6f 66 74 77 61 72 65 00 77 77 77 2e 69 6e 6b 73 63 61 70 ...I....tEXtSoftware.www.inkscap
0060 65 2e 6f 72 67 9b ee 3c 1a 00 00 04 a7 49 44 41 54 78 01 ed c1 6b 68 d5 65 00 c7 f1 df 39 9b db e.org..<.....IDATx...kh.e....9..
0080 dc d2 a9 65 3a 35 4b 26 d3 b0 92 65 39 56 99 61 59 60 97 17 61 17 69 99 e0 a5 5e 48 2f 34 df b8 ...e:5K&...e9V.aY`..a.i...^H/4..
00a0 a4 c2 8a 4c c1 b0 37 79 59 98 a4 c5 98 82 11 56 ce 5b 6b 0a 5e d0 d4 29 2a 5a f3 b6 99 39 af 39 ...L..7yY......V.[k.^..)*Z...9.9
00c0 9d ce 7d 23 a8 f8 3f e7 6c c7 f3 df ce 91 67 ff 3d 9f 8f 1c c7 71 1c c7 71 1c c7 71 1c c7 71 1c ..}#..?.l.....g.=....q..q..q..q.
00e0 c7 71 1c c7 71 12 83 01 bc c0 0c 16 53 ca 5a 36 53 ce 6a 56 f0 31 13 28 20 5d 41 46 67 5e 61 29 .q..q.......S.Z6S.jV.1.(.]AFg^a)
0100 47 69 59 3d eb 98 c9 40 05 0f f9 94 70 9e 78 6d 66 12 e9 0a 0a 1e e3 07 fc 3b c9 74 32 d5 de 91 GiY=...@....p.xmf........;.t2...
0120 c3 32 9a 68 ad 13 8c 57 7b c6 24 2e d2 56 df d1 53 ed 11 5d 58 4e 62 9c 62 b4 da 1b fa b1 97 d8 .2.h...W{.$..V..S..]XNb.b.......
0140 6e 70 9c fd ec 60 17 47 b8 4c 6c d7 99 a8 f6 84 7b 39 4a 4b ce f1 0d 6f 32 94 0c fd 8f 10 fd 79 np...`.G.Ll.....{9JK...o2......y
0160 96 b9 ec a6 25 4d bc ab f6 82 81 d4 d2 bc f5 8c 25 43 31 30 84 79 5c a0 79 b3 d4 1e d0 87 df 68 ....%M..........%C10.y\.y......h
0180 ce 46 0a 14 17 ba f1 01 f5 34 e7 2d d9 8e 34 b6 11 ad 8e d7 08 c9 07 06 f0 23 d1 1a 79 52 76 63 .F.......4.-..4..........#..yRvc
01a0 01 d1 2a b9 4b be 11 62 06 d7 89 74 8a 1c d9 8b e7 89 f6 2d 69 6a 25 c6 f0 17 91 d6 11 92 9d c8 ..*.K..b...t.......-ij%.........
01c0 a2 9a 48 4b 08 ab 0d 28 e4 12 91 8a 64 27 e6 10 69 25 29 6a 23 46 d3 80 e9 14 dd 64 1f 7a 51 8f ..HK...(....d'..i%)j#F.....d.zQ.
01e0 a9 8a 4c 25 00 6f 13 e9 3d d9 87 b9 98 ea 19 ac 04 61 15 a6 b3 74 95 5d c8 e6 12 a6 62 25 0c 7d ..L%.o..=........a...t.]....b%.}
0200 b8 80 e9 1d d9 85 49 98 0e 93 a6 04 62 3a a6 7d b2 0b 95 98 26 2a a1 c8 a0 06 d3 43 b2 07 7d 69 ......I.....b:.}....&*.....C..}i
0220 c2 ab 86 34 25 18 c5 98 e6 c8 1e bc 8e e9 53 25 1c 7d 69 c4 6b bb ec c1 97 98 f2 95 04 fc 8c 57 ...4%.........S%.}i.k..........W
0240 23 dd 65 0b aa f0 3a 4d 48 49 40 31 a6 d1 b2 03 29 5c c5 ab 4c 49 c1 a3 98 a6 ca 0e e4 62 7a 5f #.e...:MHI@1....)\..LI.......bz_
0260 49 41 36 a6 cf 65 07 46 60 1a a7 24 e1 14 5e ab 64 07 c6 60 7a 4a 49 c2 5e bc ca 65 07 5e c5 54 IA6..e.F`..$..^.d..`zJI.^..e.^.T
0280 a0 24 61 33 5e 5b 65 07 c6 61 1a ae 24 e1 17 bc b6 cb 0e 3c 87 69 94 92 84 dd 78 6d 90 1d 18 89 .$a3^[e..a..$......<.i....xm....
02a0 69 ac 92 84 e3 78 ad 96 1d 18 8c 69 a6 92 82 2c 9a f0 5a 28 3b d0 89 6b 78 7d ad a4 60 18 a6 69 i....x.....i...,..Z(;..kx}..`..i
02c0 b2 05 07 f1 3a a6 a4 60 1a a6 31 b2 05 2b 30 e5 29 09 58 83 57 13 bd 65 0b 26 63 9a a5 84 a3 07 ....:..`..1..+0.).X.W..e.&c.....
02e0 0d 78 55 c9 1e e4 62 3a 4c 58 09 c6 54 4c 0b 64 13 7e c5 f4 a2 12 8a 14 0e 61 7a 42 36 61 1a a6 .xU...b:LX..TL.d.~.......azB6a..
0300 9d 84 95 40 4c c0 54 4d 58 36 a1 17 d7 30 4d 56 c2 90 4d 2d a6 d9 b2 0d 25 98 ea c8 51 82 b0 08 ...@L.TMX6...0MV..M-....%...Q...
0320 53 3d bd 65 1b 72 b9 8e 69 13 29 4a 00 5e 22 52 99 6c 44 09 91 e6 ab cd 18 ce 75 22 d5 33 52 f6 S=.e.r..i.)J.^"R.lD.......u".3R.
0340 a1 27 75 44 2a 56 9b 70 1f 0d 34 e7 02 05 b2 0f 93 88 f6 11 21 b5 12 05 34 d0 92 f3 3c 2c db 10 .'uD*V.p..4.........!...4...<,..
0360 a2 8c 68 cb e9 a2 56 60 1c 8d c4 72 86 07 64 1b b2 39 4c b4 83 14 ca 17 ba b2 88 9b 3b cd 10 d9 ..h...V`...r..d..9L.........;...
0380 86 21 d4 11 ad 89 12 fa 2a 2e a4 30 9e 5a e2 53 cb 20 d9 86 42 2e d3 9c ab 2c 64 a8 62 22 9b 29 .!......*..0.Z.S....B....,d.b".)
03a0 1c c2 8f 13 e4 ca 36 8c e2 02 2d d9 c3 6c 46 91 25 03 61 06 31 85 32 ae e0 5f 35 77 cb 36 e4 53 ......6...-..lF.%.a.1.2.._5w.6.S
03c0 4b 6c c7 d8 c4 6a 4a 29 65 2d bb b9 42 5b 1c a1 9f 6c 43 7f b6 70 eb 1c 24 47 b6 21 95 4f b8 c1 Kl...jJ)e-..B[...lC..p..$G.!.O..
03e0 ad 72 80 de b2 0f f9 6c e1 56 d9 c3 ed b2 0f 61 de e0 00 fe 5d e1 0b ca f1 67 17 3d 64 23 c2 bc .r.....l.V.....a....]....g.=d#..
0400 4c 05 4d c4 ab 86 39 e4 48 a4 f1 3d fe ec a4 bb 6c c5 3d 14 53 c9 35 62 a9 a6 84 67 48 d1 bf e8 L.M...9.H..=....l.=.S.5b...gH...
0420 cc 7a fc d9 42 17 d9 8c 2c 9e 66 3a 0b d9 c8 2e 8e 70 86 63 ec 67 2b a5 7c 48 11 b9 8a 42 26 1b .z..B...,.f:.....p.c.g+.|H...B&.
0440 f0 a7 92 db 14 24 64 b2 09 7f ca c9 50 90 90 45 05 fe fc 44 ba 82 84 6c b6 e2 cf 1a d2 15 24 64 .....$d.....P..E...D...l......$d
0460 b3 0d 7f 56 92 aa 20 a1 1b 3b f0 a7 94 54 05 09 77 b0 07 7f 96 12 56 90 d0 93 2a fc 29 21 a4 20 ...V.....;...T..w.....V...*.)!..
0480 e1 4e f6 e1 cf 02 05 0b bd d8 8f 3f f3 15 2c f4 e3 30 fe cc 53 b0 d0 9f df f1 a7 48 c1 c2 00 8e .N.........?..,..0..S......H....
04a0 e2 47 85 82 86 5c 8e 13 bf 0a 05 0f 79 9c 24 5e 45 0a 22 f2 a8 21 1e f3 14 54 0c a2 96 9b 99 af .G...\......y.$^E."..!...T......
04c0 20 e3 7e fe 24 96 cf 14 74 0c e5 0c 2d 59 42 48 c1 c7 30 ce d1 9c c5 84 d4 31 f0 20 67 89 f4 15 ..~.$...t...-YBH..0......1..g...
04e0 61 75 1c 14 72 11 af 15 a4 a8 63 e1 11 2e f2 9f 95 a4 aa e3 61 04 7f f0 8f 65 74 52 c7 44 26 8f au..r.....c.........a....etR.D&.
0500 93 27 c7 71 1c c7 71 1c c7 71 1c c7 71 1c c7 71 9c b8 fd 0d 4a e4 e2 b2 b8 53 e0 28 00 00 00 00 .'.q..q..q..q..q....J....S.(....
0520 49 45 4e 44 ae 42 60 82 IEND.B`.
ref='#n286'>286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932
/*
Minetest
Copyright (C) 2013 celeron55, Perttu Ahola <celeron55@gmail.com>

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

/*
	Random portability stuff

	See comments in porting.h
*/

#include "porting.h"

#if defined(__FreeBSD__)
	#include <sys/types.h>
	#include <sys/sysctl.h>
#elif defined(_WIN32)
	#include <windows.h>
	#include <wincrypt.h>
	#include <algorithm>
#endif
#if !defined(_WIN32)
	#include <unistd.h>
	#include <sys/utsname.h>
#endif
#if defined(__hpux)
	#define _PSTAT64
	#include <sys/pstat.h>
#endif
#if !defined(_WIN32) && !defined(__APPLE__) && \
	!defined(__ANDROID__) && !defined(SERVER)
	#define XORG_USED
#endif
#ifdef XORG_USED
	#include <X11/Xlib.h>
	#include <X11/Xutil.h>
#endif

#include "config.h"
#include "debug.h"
#include "filesys.h"
#include "log.h"
#include "util/string.h"
#include "settings.h"
#include <list>

namespace porting
{

/*
	Signal handler (grabs Ctrl-C on POSIX systems)
*/

bool g_killed = false;

bool * signal_handler_killstatus(void)
{
	return &g_killed;
}

#if !defined(_WIN32) // POSIX
	#include <signal.h>

void signal_handler(int sig)
{
	if (!g_killed) {
		if (sig == SIGINT) {
			dstream << "INFO: signal_handler(): "
				<< "Ctrl-C pressed, shutting down." << std::endl;
		} else if (sig == SIGTERM) {
			dstream << "INFO: signal_handler(): "
				<< "got SIGTERM, shutting down." << std::endl;
		}

		// Comment out for less clutter when testing scripts
		/*dstream << "INFO: sigint_handler(): "
				<< "Printing debug stacks" << std::endl;
		debug_stacks_print();*/

		g_killed = true;
	} else {
		(void)signal(sig, SIG_DFL);
	}
}

void signal_handler_init(void)
{
	(void)signal(SIGINT, signal_handler);
	(void)signal(SIGTERM, signal_handler);
}

#else // _WIN32
	#include <signal.h>

BOOL WINAPI event_handler(DWORD sig)
{
	switch (sig) {
	case CTRL_C_EVENT:
	case CTRL_CLOSE_EVENT:
	case CTRL_LOGOFF_EVENT:
	case CTRL_SHUTDOWN_EVENT:
		if (!g_killed) {
			dstream << "INFO: event_handler(): "
				<< "Ctrl+C, Close Event, Logoff Event or Shutdown Event,"
				" shutting down." << std::endl;
			g_killed = true;
		} else {
			(void)signal(SIGINT, SIG_DFL);
		}
		break;
	case CTRL_BREAK_EVENT:
		break;
	}

	return TRUE;
}

void signal_handler_init(void)
{
	SetConsoleCtrlHandler((PHANDLER_ROUTINE)event_handler, TRUE);
}

#endif


/*
	Path mangler
*/

// Default to RUN_IN_PLACE style relative paths
std::string path_share = "..";
std::string path_user = "..";
std::string path_locale = path_share + DIR_DELIM + "locale";
std::string path_cache = path_user + DIR_DELIM + "cache";


std::string getDataPath(const char *subpath)
{
	return path_share + DIR_DELIM + subpath;
}

void pathRemoveFile(char *path, char delim)
{
	// Remove filename and path delimiter
	int i;
	for(i = strlen(path)-1; i>=0; i--)
	{
		if(path[i] == delim)
			break;
	}
	path[i] = 0;
}

bool detectMSVCBuildDir(const std::string &path)
{
	const char *ends[] = {
		"bin\\Release",
		"bin\\MinSizeRel",
		"bin\\RelWithDebInfo",
		"bin\\Debug",
		"bin\\Build",
		NULL
	};
	return (removeStringEnd(path, ends) != "");
}

std::string get_sysinfo()
{
#ifdef _WIN32
	OSVERSIONINFO osvi;
	std::ostringstream oss;
	std::string tmp;
	ZeroMemory(&osvi, sizeof(OSVERSIONINFO));
	osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
	GetVersionEx(&osvi);
	tmp = osvi.szCSDVersion;
	std::replace(tmp.begin(), tmp.end(), ' ', '_');

	oss << "Windows/" << osvi.dwMajorVersion << "."
		<< osvi.dwMinorVersion;
	if (osvi.szCSDVersion[0])
		oss << "-" << tmp;
	oss << " ";
	#ifdef _WIN64
	oss << "x86_64";
	#else
	BOOL is64 = FALSE;
	if (IsWow64Process(GetCurrentProcess(), &is64) && is64)
		oss << "x86_64"; // 32-bit app on 64-bit OS
	else
		oss << "x86";
	#endif

	return oss.str();
#else
	struct utsname osinfo;
	uname(&osinfo);
	return std::string(osinfo.sysname) + "/"
		+ osinfo.release + " " + osinfo.machine;
#endif
}


bool getCurrentWorkingDir(char *buf, size_t len)
{
#ifdef _WIN32
	DWORD ret = GetCurrentDirectory(len, buf);
	return (ret != 0) && (ret <= len);
#else
	return getcwd(buf, len);
#endif
}


bool getExecPathFromProcfs(char *buf, size_t buflen)
{
#ifndef _WIN32
	buflen--;

	ssize_t len;
	if ((len = readlink("/proc/self/exe",     buf, buflen)) == -1 &&
		(len = readlink("/proc/curproc/file", buf, buflen)) == -1 &&
		(len = readlink("/proc/curproc/exe",  buf, buflen)) == -1)
		return false;

	buf[len] = '\0';
	return true;
#else
	return false;
#endif
}

//// Windows
#if defined(_WIN32)

bool getCurrentExecPath(char *buf, size_t len)
{
	DWORD written = GetModuleFileNameA(NULL, buf, len);
	if (written == 0 || written == len)
		return false;

	return true;
}


//// Linux
#elif defined(__linux__)

bool getCurrentExecPath(char *buf, size_t len)
{
	if (!getExecPathFromProcfs(buf, len))
		return false;

	return true;
}


//// Mac OS X, Darwin
#elif defined(__APPLE__)

bool getCurrentExecPath(char *buf, size_t len)
{
	uint32_t lenb = (uint32_t)len;
	if (_NSGetExecutablePath(buf, &lenb) == -1)
		return false;

	return true;
}


//// FreeBSD, NetBSD, DragonFlyBSD
#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)

bool getCurrentExecPath(char *buf, size_t len)
{
	// Try getting path from procfs first, since valgrind
	// doesn't work with the latter
	if (getExecPathFromProcfs(buf, len))
		return true;

	int mib[4];

	mib[0] = CTL_KERN;
	mib[1] = KERN_PROC;
	mib[2] = KERN_PROC_PATHNAME;
	mib[3] = -1;

	if (sysctl(mib, 4, buf, &len, NULL, 0) == -1)
		return false;

	return true;
}


//// Solaris
#elif defined(__sun) || defined(sun)

bool getCurrentExecPath(char *buf, size_t len)
{
	const char *exec = getexecname();
	if (exec == NULL)
		return false;

	if (strlcpy(buf, exec, len) >= len)
		return false;

	return true;
}


// HP-UX
#elif defined(__hpux)

bool getCurrentExecPath(char *buf, size_t len)
{
	struct pst_status psts;

	if (pstat_getproc(&psts, sizeof(psts), 0, getpid()) == -1)
		return false;

	if (pstat_getpathname(buf, len, &psts.pst_fid_text) == -1)
		return false;

	return true;
}


#else

bool getCurrentExecPath(char *buf, size_t len)
{
	return false;
}

#endif


//// Windows
#if defined(_WIN32)

bool setSystemPaths()
{
	char buf[BUFSIZ];

	// Find path of executable and set path_share relative to it
	FATAL_ERROR_IF(!getCurrentExecPath(buf, sizeof(buf)),
		"Failed to get current executable path");
	pathRemoveFile(buf, '\\');

	// Use ".\bin\.."
	path_share = std::string(buf) + "\\..";

	// Use "C:\Documents and Settings\user\Application Data\<PROJECT_NAME>"
	DWORD len = GetEnvironmentVariable("APPDATA", buf, sizeof(buf));
	FATAL_ERROR_IF(len == 0 || len > sizeof(buf), "Failed to get APPDATA");

	path_user = std::string(buf) + DIR_DELIM + PROJECT_NAME;
	return true;
}


//// Linux
#elif defined(__linux__)

bool setSystemPaths()
{
	char buf[BUFSIZ];

	if (!getCurrentExecPath(buf, sizeof(buf))) {
#ifdef __ANDROID__
		errorstream << "Unable to read bindir "<< std::endl;
#else
		FATAL_ERROR("Unable to read bindir");
#endif
		return false;
	}

	pathRemoveFile(buf, '/');
	std::string bindir(buf);

	// Find share directory from these.
	// It is identified by containing the subdirectory "builtin".
	std::list<std::string> trylist;
	std::string static_sharedir = STATIC_SHAREDIR;
	if (static_sharedir != "" && static_sharedir != ".")
		trylist.push_back(static_sharedir);

	trylist.push_back(bindir + DIR_DELIM ".." DIR_DELIM "share"
		DIR_DELIM + PROJECT_NAME);
	trylist.push_back(bindir + DIR_DELIM "..");

#ifdef __ANDROID__
	trylist.push_back(path_user);
#endif

	for (std::list<std::string>::const_iterator
			i = trylist.begin(); i != trylist.end(); i++) {
		const std::string &trypath = *i;
		if (!fs::PathExists(trypath) ||
			!fs::PathExists(trypath + DIR_DELIM + "builtin")) {
			warningstream << "system-wide share not found at \""
					<< trypath << "\""<< std::endl;
			continue;
		}

		// Warn if was not the first alternative
		if (i != trylist.begin()) {
			warningstream << "system-wide share found at \""
					<< trypath << "\"" << std::endl;
		}

		path_share = trypath;
		break;
	}

#ifndef __ANDROID__
	path_user = std::string(getenv("HOME")) + DIR_DELIM "."
		+ PROJECT_NAME;
#endif

	return true;
}


//// Mac OS X
#elif defined(__APPLE__)

bool setSystemPaths()
{
	CFBundleRef main_bundle = CFBundleGetMainBundle();
	CFURLRef resources_url = CFBundleCopyResourcesDirectoryURL(main_bundle);
	char path[PATH_MAX];
	if (CFURLGetFileSystemRepresentation(resources_url,
			TRUE, (UInt8 *)path, PATH_MAX)) {
		path_share = std::string(path);
	} else {
		warningstream << "Could not determine bundle resource path" << std::endl;
	}
	CFRelease(resources_url);

	path_user = std::string(getenv("HOME"))
		+ "/Library/Application Support/"
		+ PROJECT_NAME;
	return true;
}


#else