1 diff -Naur pushover-0.0.5-orig/src/main.cpp pushover-0.0.5/src/main.cpp
2 --- pushover-0.0.5-orig/src/main.cpp 2013-10-20 15:34:02.820714057 +0200
3 +++ pushover-0.0.5/src/main.cpp 2013-05-19 17:51:54.000000000 +0200
6 static std::string getDataDir(void)
8 -#if defined (__AROS__)
9 - static char binaryPath[1024] = {0};
11 - NameFromLock(GetProgramDir(), binaryPath, sizeof(binaryPath));
12 - return std::string(binaryPath);
15 return std::string((stat(PKGDATADIR, &st) == 0) ? PKGDATADIR : ".");
19 static std::string getLocaleDir(void)
21 -#if defined (__AROS__)
22 - static char localePath[1024] = {0};
25 - AddPart(localePath, getDataDir().c_str(), sizeof(localePath));
26 - AddPart(localePath, "locale", sizeof(localePath));
31 return std::string((stat(LOCALEDIR, &st) == 0) ? LOCALEDIR : "locale");
35 static unsigned int getKeyMask(void) {
38 // setup internationalization
39 #if defined (__AROS__)
40 - amigaLocale(LC_MESSAGES);
43 setlocale(LC_MESSAGES, "");
44 bindtextdomain("pushover", getLocaleDir().c_str());
45 diff -Naur pushover-0.0.5-orig/src/tools.cpp pushover-0.0.5/src/tools.cpp
46 --- pushover-0.0.5-orig/src/tools.cpp 2013-10-20 15:34:02.820714057 +0200
47 +++ pushover-0.0.5/src/tools.cpp 2013-05-19 17:51:54.000000000 +0200
50 #include <proto/locale.h>
51 #include <proto/dos.h>
55 uint64_t getTime(void)
58 #elif defined (__AROS__)
60 - static char binaryPath[1024] = {0};
62 - NameFromLock(GetProgramDir(), binaryPath, sizeof(binaryPath));
63 - std::string home = std::string(binaryPath);
64 + std::string home = std::string("PROGDIR:.pushover/");
69 throw std::runtime_error("Can't create home directory: " + home);
72 -#if defined (__AROS__)
79 diff -Naur pushover-0.0.5-orig/src/window.cpp pushover-0.0.5/src/window.cpp
80 --- pushover-0.0.5-orig/src/window.cpp 2013-10-20 15:34:02.820714057 +0200
81 +++ pushover-0.0.5/src/window.cpp 2013-05-19 17:51:54.000000000 +0200
83 #include "solvedmap.h"
84 #include "leveldata.h"
87 +#define PACKAGE_VERSION "0.0.5"