Apply PathManager refactor to HelloWorld ext. tool

All three ext. tools in the repo now compile and run with the exception of
DBMan, which is compiled against an SQLite assembly that's never loaded.
This commit is contained in:
YoshiRulz 2020-04-12 17:55:42 +10:00
parent 1ee131ed78
commit f95bcf0e14
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ namespace HelloWorld
ClientApi.BeforeQuickSave += (sender, e) =>
{
if (e.Slot != 0) return; // only take effect on slot 0
var basePath = Path.Combine(PathManager.GetSaveStatePath(Global.Game), "Test");
var basePath = Path.Combine(Global.Config.PathEntries.SaveStateAbsolutePath(Global.Game.System), "Test");
if (!Directory.Exists(basePath)) Directory.CreateDirectory(basePath);
ClientApi.SaveState(Path.Combine(basePath, e.Name));
e.Handled = true;
@ -60,7 +60,7 @@ namespace HelloWorld
ClientApi.BeforeQuickLoad += (sender, e) =>
{
if (e.Slot != 0) return; // only take effect on slot 0
var basePath = Path.Combine(PathManager.GetSaveStatePath(Global.Game), "Test");
var basePath = Path.Combine(Global.Config.PathEntries.SaveStateAbsolutePath(Global.Game.System), "Test");
ClientApi.LoadState(Path.Combine(basePath, e.Name));
e.Handled = true;
};