Have manifest writer return the file path
parent
ae23f621c2
commit
dc2eff4972
|
@ -30,7 +30,7 @@ namespace LANCommander.SDK.Helpers
|
||||||
return manifest;
|
return manifest;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void Write(GameManifest manifest, string installDirectory)
|
public static string Write(GameManifest manifest, string installDirectory)
|
||||||
{
|
{
|
||||||
var destination = GetPath(installDirectory);
|
var destination = GetPath(installDirectory);
|
||||||
|
|
||||||
|
@ -47,6 +47,8 @@ namespace LANCommander.SDK.Helpers
|
||||||
Logger?.LogTrace("Writing manifest file");
|
Logger?.LogTrace("Writing manifest file");
|
||||||
|
|
||||||
File.WriteAllText(destination, yaml);
|
File.WriteAllText(destination, yaml);
|
||||||
|
|
||||||
|
return destination;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static string GetPath(string installDirectory)
|
public static string GetPath(string installDirectory)
|
||||||
|
|
Loading…
Reference in New Issue