Skip to content

Commit

Permalink
add a build-name value helper
Browse files Browse the repository at this point in the history
  • Loading branch information
ZingBallyhoo committed Nov 16, 2024
1 parent e1d6450 commit 597251a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion TACTLib/Client/ClientHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public ClientHandler(string? basePath, ClientCreateArgs createArgs) {

if (IsStaticContainer) {
InstallationInfo = new InstallationInfo(new Dictionary<string, string> {
{"Version", ConfigHandler!.BuildConfig.Values["build-name"][0]}
{"Version", ConfigHandler!.BuildConfig.GetBuildName()}
});
} else if (CreateArgs.VersionSource == ClientCreateArgs.InstallMode.Local) {
InstallationInfo = new InstallationInfo(InstallationInfoFile!.Values, ProductCode!);
Expand Down
2 changes: 2 additions & 0 deletions TACTLib/Config/BuildConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ public class BuildConfig : Config {
public SizeRecord? EncodingSize;
public FileRecord? VFSRoot;

public string GetBuildName() => Values["build-name"][0];

public BuildConfig(Stream? stream) : base(stream) {
GetFileRecord("root", out var root);
GetFileRecord("install", out Install);
Expand Down

0 comments on commit 597251a

Please sign in to comment.