Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REMOVEDEMOS removes FreeOnDemand packages which are not demos #158

Open
woctezuma opened this issue Oct 16, 2023 · 3 comments
Open

REMOVEDEMOS removes FreeOnDemand packages which are not demos #158

woctezuma opened this issue Oct 16, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@woctezuma
Copy link

woctezuma commented Oct 16, 2023

It seems the !REMOVEDEMOS command removes FreeOnDemand packages which do not belong to the Demo category.

I believe the filter must be based on the package name, but I am not sure as I have not dived into the code.

See https://store.steampowered.com/app/1729830/Tactical_Monsters__Strategy_Edition/
Picture

Indeed, these two packages are actually both named Tactical Monsters - Strategy Edition Demo:

And it seems that the !REMOVEDEMOS command has removed both packages.

If this is the case, it may be useful to:

  • check that the App Type is Demo before removing the package,
  • otherwise, mention in the README that the filter is based on package names, and thus imperfect.

Edit: Confirmed. There is a check for x.Name.EndsWith("Demo") in:

x.Type == LicenseType.Complimentary && x.Name.EndsWith("Demo")

Reference:

var oldSubs = licensesOld.Where(x => x.PackageId > 0 && x.Type == LicenseType.Complimentary && x.Name.EndsWith("Demo")).Select(x => x.PackageId).ToHashSet();

So the command catches FreeOnDemand packages:

  • whose name ends with the word Demo,
  • yet which do not necessarily belong to the Demo category ("App Type").
@chr233
Copy link
Owner

chr233 commented Oct 16, 2023

Got it

@LORDIF56
Copy link

update pls to NET 8.0 global version ASF now use 8.0 and creat conflict if we start ASF and if we have ASFEnchance

@woctezuma
Copy link
Author

woctezuma commented Dec 15, 2023

update pls to NET 8.0 global version ASF now use 8.0 and creat conflict if we start ASF and if we have ASFEnchance

You have posted about an issue which was fixed 3 weeks ago, and in the wrong thread on top of that:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants