File fix-assets.patch of Package prototracker-modular
diff -wru prototracker-modular-0.0.5/src/Prototracker.cpp prototracker-modular-0.0.5.fix/src/Prototracker.cpp
--- prototracker-modular-0.0.5/src/Prototracker.cpp 2020-05-27 17:39:59.000000000 +0200
+++ prototracker-modular-0.0.5.fix/src/Prototracker.cpp 2020-05-30 22:55:56.098748654 +0200
@@ -75,7 +75,7 @@
{
Theme theme;
- if (!theme.load("assets/elements"))
+ if (!theme.load("/usr/share/prototracker-modular/assets/elements"))
{
return false;
}
@@ -102,11 +102,11 @@
{
// Emscripten needs an absolute path to filesystem root
#ifdef __EMSCRIPTEN__
- const char *gamepadPath = "/assets/gamecontrollerdb.txt";
- const char *songPath = "/assets/dub.song";
+ const char *gamepadPath = "/usr/share/prototracker-modular/assets/gamecontrollerdb.txt";
+ const char *songPath = "/usr/share/prototracker-modular/assets/dub.song";
#else
- const char *gamepadPath = "assets/gamecontrollerdb.txt";
- const char *songPath = "assets/dub.song";
+ const char *gamepadPath = "/usr/share/prototracker-modular/assets/gamecontrollerdb.txt";
+ const char *songPath = "/usr/share/prototracker-modular/assets/dub.song";
#endif
mGamepad->loadDefinitions(gamepadPath);
diff -wru prototracker-modular-0.0.5/src/Theme.cpp prototracker-modular-0.0.5.fix/src/Theme.cpp
--- prototracker-modular-0.0.5/src/Theme.cpp 2020-05-27 17:39:59.000000000 +0200
+++ prototracker-modular-0.0.5.fix/src/Theme.cpp 2020-05-30 22:54:59.592712887 +0200
@@ -12,7 +12,7 @@
mFontHeight = 8;
mWidth = 480;
mHeight = 360;
- mBasePath = "assets/";
+ mBasePath = "/usr/share/prototracker-modular/assets/";
mBackgroundPath = mBasePath+"gui.png";
mFontPath = mBasePath+"font.png";
}