Skip to content

Commit

Permalink
fix startup paths for Amiberry-Lite
Browse files Browse the repository at this point in the history
  • Loading branch information
midwan committed Jan 12, 2025
1 parent 6f49d5e commit 1856440
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/osdep/amiberry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3852,15 +3852,15 @@ std::string get_home_directory(const bool portable_mode)
// 2: Check $HOME/Amiberry
if (user_home_dir != nullptr)
{
if (!directory_exists(user_home_dir, "/Amiberry"))
if (!directory_exists(user_home_dir, "/Amiberry-Lite"))
{
// If $HOME exists, but not the Amiberry subdirectory, create it
my_mkdir((std::string(user_home_dir) + "/Amiberry").c_str());
my_mkdir((std::string(user_home_dir) + "/Amiberry-Lite").c_str());
}
// $HOME/Amiberry exists, use it
write_log("Using home directory from $HOME/Amiberry\n");
write_log("Using home directory from $HOME/Amiberry-Lite\n");
auto result = std::string(user_home_dir);
return result.append("/Amiberry");
return result.append("/Amiberry-Lite");
}

// 3: Fallback Portable mode, all in startup path
Expand Down Expand Up @@ -3914,10 +3914,10 @@ std::string get_config_directory(bool portable_mode)
// $HOME/Amiberry-Lite exists, use it
if (!directory_exists(user_home_dir, "/Amiberry-Lite/conf"))
{
my_mkdir((std::string(user_home_dir) + "/Amiberry/conf").c_str());
my_mkdir((std::string(user_home_dir) + "/Amiberry-Lite/conf").c_str());
}
// This should be the most used scenario
write_log("Using config directory from $HOME/Amiberry/conf\n");
write_log("Using config directory from $HOME/Amiberry-Lite/conf\n");
auto result = std::string(user_home_dir);
return result.append("/Amiberry-Lite/conf");
}
Expand Down

0 comments on commit 1856440

Please sign in to comment.