Jump to content

Do you need your encrypted game files extracted?


Josh
 Share

Recommended Posts

If you want to recover an old project I can extract your encrypted game files with the following code:

	//Extract encrypted game files
	FileSystem::SetDir("extract");
	auto package = Package::Load("data.zip");
	for (auto i = 0; i < package->CountFiles(); ++i)
	{
		auto file = package->GetFileName(i);
		auto packagefile = package->contents[file];
		file = packagefile->path;
		auto savepath = packagefile->name;
		if (FileSystem::ExtractExt(file) != "")
		{
          	
			/*-----------------------*/
			/* Magic stuff goes here */
			/*-----------------------*/
			
			if (stream)
			{
				FileSystem::CreateDir(FileSystem::ExtractDir(savepath), true);
				auto out = FileSystem::WriteFile(savepath);
				if (out)
				{
					while (!stream->EOF())
					{
						out->WriteUChar(stream->ReadUChar());
					}
					out->Release();
				}
				stream->Release();
			}
		}
	}
	delete package;

Just send me a private message with a download link or a link to your game's Workshop page and I will send you back the extracted files.  I will need to verify authorship of the game so it is easiest if it is published on our site under your account, or if your Leadwerks account has your Steam info linked.

  • Like 2

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...