Adapt resource manager to URI and list pattern.

This commit is contained in:
2023-11-13 00:26:18 +08:00
parent 9fcf6f3379
commit 8c11be48cf
4 changed files with 62 additions and 72 deletions

View File

@@ -89,7 +89,7 @@ namespace Cryville.Crtr.Browsing.UI {
void SetDataSettings(int id, ChartDetail detail) {
Settings.Default.LoadRuleset = detail.Meta.ruleset + "/.umgr";
Settings.Default.LoadRulesetConfig = detail.Meta.ruleset + ".json";
Settings.Default.LoadChart = m_mainBrowser.ResourceManager.GetItemPath(id);
Settings.Default.LoadChart = m_mainBrowser.ResourceManager.GetItemUri(id).LocalPath;
}
}
}