Skip to content

Commit

Permalink
Ashita: v4 - stop enforcing permissions on all .ini files.
Browse files Browse the repository at this point in the history
Horizon and CatsEye now read and write .ini files properly.
  • Loading branch information
Renée Köcher committed Aug 1, 2023
1 parent 314a17b commit 26426a6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions XIPivot.Ashita_v4/polplugin/AshitaInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -380,23 +380,24 @@ namespace XiPivot
config->SetValue(PluginName, "cache", "max_age", val);

bool isDefaultINI = absPath.filename().string() == std::string("pivot.ini");

#if 0
if (std::filesystem::exists(absPath) && isDefaultINI)
{
std::filesystem::permissions(absPath,
std::filesystem::perms::owner_all | std::filesystem::perms::group_all,
std::filesystem::perm_options::replace);
std::filesystem::remove(absPath);
}

#endif
config->Save(PluginName, relPath.string().c_str());

#if 0
if (isDefaultINI)
{
std::filesystem::permissions(absPath,
std::filesystem::perms::owner_write | std::filesystem::perms::group_write | std::filesystem::perms::others_write,
std::filesystem::perm_options::remove);
}
#endif
dirty = false;
}
}
Expand Down
2 changes: 1 addition & 1 deletion XIPivot.Ashita_v4/polplugin/AshitaInterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ namespace XiPivot
{
static constexpr auto PluginName = "pivot";
static constexpr auto PluginAuthor = "Heals";
static constexpr auto PluginVersion = 4.1502;
static constexpr auto PluginVersion = 4.1503;
static constexpr auto PluginUrl = "https://github.com/Shirk/XIPivot";
static constexpr auto PluginDescr = "Runtime DAT, sfx and bgm replacement manager.";
static constexpr auto PluginCommand = "pivot";
Expand Down

0 comments on commit 26426a6

Please sign in to comment.