forked from FunKey-Project/FunKey-OS
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
39 additions
and
2 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
FunKey/package/retrofe/0001-change-playlist-location.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
diff --git a/RetroFE/Source/Collection/CollectionInfo.cpp b/RetroFE/Source/Collection/CollectionInfo.cpp | ||
index 94f8400..3819919 100755 | ||
--- a/RetroFE/Source/Collection/CollectionInfo.cpp | ||
+++ b/RetroFE/Source/Collection/CollectionInfo.cpp | ||
@@ -78,8 +78,8 @@ bool CollectionInfo::Save() | ||
bool retval = true; | ||
if(saveRequest) | ||
{ | ||
- std::string dir = Utils::combinePath(Configuration::absolutePath, "collections", name, "playlists"); | ||
- std::string file = Utils::combinePath(Configuration::absolutePath, "collections", name, "playlists/favorites.txt"); | ||
+ std::string dir = Utils::combinePath(Configuration::userPath, "collections", name, "playlists"); | ||
+ std::string file = Utils::combinePath(Configuration::userPath, "collections", name, "playlists/favorites.txt"); | ||
Logger::write(Logger::ZONE_INFO, "Collection", "Saving " + file); | ||
|
||
Utils::rootfsWritable(); | ||
diff --git a/RetroFE/Source/Collection/CollectionInfoBuilder.cpp b/RetroFE/Source/Collection/CollectionInfoBuilder.cpp | ||
index cd10b10..ff7dcef 100755 | ||
--- a/RetroFE/Source/Collection/CollectionInfoBuilder.cpp | ||
+++ b/RetroFE/Source/Collection/CollectionInfoBuilder.cpp | ||
@@ -379,7 +379,7 @@ void CollectionInfoBuilder::addPlaylists(CollectionInfo *info) | ||
DIR *dp; | ||
struct dirent **dirp; | ||
int n; | ||
- std::string path = Utils::combinePath(Configuration::absolutePath, "collections", info->name, "playlists"); | ||
+ std::string path = Utils::combinePath(Configuration::userPath, "collections", info->name, "playlists"); | ||
dp = opendir(path.c_str()); | ||
|
||
if(dp == NULL) | ||
@@ -407,7 +407,7 @@ void CollectionInfoBuilder::addPlaylists(CollectionInfo *info) | ||
Logger::write(Logger::ZONE_INFO, "RetroFE", "Loading playlist: " + basename); | ||
|
||
std::map<std::string, Item *> playlistFilter; | ||
- std::string playlistFile = Utils::combinePath(Configuration::absolutePath, "collections", info->name, "playlists", file); | ||
+ std::string playlistFile = Utils::combinePath(Configuration::userPath, "collections", info->name, "playlists", file); | ||
ImportBasicList(info, playlistFile, playlistFilter); | ||
|
||
info->playlists[basename] = new std::vector<Item *>(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters