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:
parent
1ee131ed78
commit
f95bcf0e14
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue