Pull down scroll velocity option. Add property categories for ruleset config.

This commit is contained in:
2022-11-16 17:30:33 +08:00
parent 87e406e903
commit 80cc5fdbda
3 changed files with 19 additions and 13 deletions

View File

@@ -309,7 +309,6 @@ namespace Cryville.Crtr {
autoRenderStep = renderStep == 0;
soundOffset = Settings.Default.SoundOffset;
startOffset = Settings.Default.StartOffset;
sv = Settings.Default.ScrollVelocity;
firstFrame = true;
texloaddone = false;
Game.NetworkTaskWorker.SuspendBackgroundTasks();
@@ -333,10 +332,12 @@ namespace Cryville.Crtr {
FileInfo chartFile = new FileInfo(
Game.GameDataPath + "/charts/" + Settings.Default.LoadChart
);
FileInfo rulesetFile = new FileInfo(
Game.GameDataPath + "/rulesets/" + Settings.Default.LoadRuleset
);
if (!rulesetFile.Exists) throw new FileNotFoundException("Ruleset for the chart not found\nMake sure you have imported the ruleset");
FileInfo rulesetConfigFile = new FileInfo(
Game.GameDataPath + "/config/rulesets/" + Settings.Default.LoadRulesetConfig
);
@@ -346,6 +347,8 @@ namespace Cryville.Crtr {
MissingMemberHandling = MissingMemberHandling.Error
});
}
sv = _rscfg.generic.ScrollVelocity;
FileInfo skinFile = new FileInfo(
string.Format("{0}/skins/{1}/{2}/.umgs", Game.GameDataPath, rulesetFile.Directory.Name, _rscfg.generic.Skin)
);