Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated Gearsetter IPC, treasure chest interactions and filehelper multi thread lock #695

Merged
merged 5 commits into from
Dec 7, 2024

Conversation

erdelf
Copy link
Collaborator

@erdelf erdelf commented Dec 7, 2024

No description provided.

Comment on lines +100 to +117
lock (_updateLock)
{
IEnumerable<FileInfo> files = Plugin.PathsDirectory.EnumerateFiles($"({content.TerritoryType})*.json", SearchOption.AllDirectories);
ContentPathsManager.DictionaryPaths = [];

MainTab.PathsUpdated();
PathsTab.PathsUpdated();

foreach (FileInfo file in files)
foreach ((uint _, Content? content) in ContentHelper.DictionaryContent)
{
if (!ContentPathsManager.DictionaryPaths.ContainsKey(content.TerritoryType))
ContentPathsManager.DictionaryPaths.Add(content.TerritoryType, new ContentPathsManager.ContentPathContainer(content));
IEnumerable<FileInfo> files = Plugin.PathsDirectory.EnumerateFiles($"({content.TerritoryType})*.json", SearchOption.AllDirectories);

foreach (FileInfo file in files)
{
if (!ContentPathsManager.DictionaryPaths.ContainsKey(content.TerritoryType))
ContentPathsManager.DictionaryPaths.Add(content.TerritoryType, new ContentPathsManager.ContentPathContainer(content));

ContentPathsManager.DictionaryPaths[content.TerritoryType].Paths.Add(new ContentPathsManager.DutyPath(file.FullName));
ContentPathsManager.DictionaryPaths[content.TerritoryType].Paths.Add(new ContentPathsManager.DutyPath(file.FullName));
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

classic github diff... difference is the lock.

@erdelf erdelf merged commit 5fe2cf4 into ffxivcode:master Dec 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant