Giter Club home page Giter Club logo

Comments (4)

L3G4CYOne avatar L3G4CYOne commented on May 27, 2024 2
ComPtr<ABI::Windows::ApplicationModel::IPackage> GetCurrentPackage()
{
	ComPtr<ABI::Windows::ApplicationModel::IPackageStatics> PackageStatics;
	if(
		RoGetActivationFactory(
			HStringReference(RuntimeClass_Windows_ApplicationModel_Package).Get(),
			__uuidof(PackageStatics), &PackageStatics
		) < 0
	)
	{
		// Error getting package statics
		return nullptr;
	}

	ComPtr<ABI::Windows::ApplicationModel::IPackage> CurrentPackage;
	if( PackageStatics->get_Current(&CurrentPackage) )
	{
		// Error getting current package
	}

	__FIVectorView_1_Windows__CApplicationModel__CPackage* dependencies = NULL;

	CurrentPackage->get_Dependencies(&dependencies);

	dependencies->GetAt(0, &CurrentPackage);

	return CurrentPackage;
}

This will dump first dependency of the app, tested on Forza Horzion 3, you can modify it to loop and obtain all needed packages.

from uwpdumper.

Wunkolo avatar Wunkolo commented on May 27, 2024

This is interesting. A single app for chapter 1 might be the one housing all the other chapters as "DLC" that is located elsewhere on the file system outside of the folder that is dumped by default. Currently it only dumps the entirety of the current working directory. I don't have Tell Me Why but do you have any approximate locations of where the other chapters might be on your disc? UWP likely structures "DLC" like this differently.

from uwpdumper.

aintnodawn avatar aintnodawn commented on May 27, 2024

This is interesting. A single app for chapter 1 might be the one housing all the other chapters as "DLC" that is located elsewhere on the file system outside of the folder that is dumped by default. Currently it only dumps the entirety of the current working directory. I don't have Tell Me Why but do you have any approximate locations of where the other chapters might be on your disc? UWP likely structures "DLC" like this differently.

The paths are C:\Users\UserName\AppData\Local\Packages\Microsoft.Breathless.Episode2_8wekyb3d8bbwe and C:\Users\UserName\AppData\Local\Packages\Microsoft.Breathless.Episode3_8wekyb3d8bbwe

from uwpdumper.

Wunkolo avatar Wunkolo commented on May 27, 2024

Episode 2 and 3 are in different UWP "app" folders entirely. This looks like the dumper would have to be extended with a way to detect "DLC" packages such as this and handle them accordingly when dumping, possibly into sub-folders

Apparently these are "Optional packages":
https://docs.microsoft.com/en-us/windows/msix/package/optional-packages

Optional packages contain content that can be integrated with a main package. These are useful for downloadable content (DLC), dividing a large app for size restraints, or for shipping any additional content separate from your original app.

The dumper process can iterate available optional packages with Package.Dependencies

Is there a free application on the Windows Store I can get that has "DLC" similar to yours that I can download so that I can test and implement this on my end?

from uwpdumper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.