Skip to content

Commit

Permalink
implemented user data duplication, updated ss, readme, and license, r…
Browse files Browse the repository at this point in the history
…elease 0.7.0
  • Loading branch information
FerrisSandCanyon committed Sep 25, 2020
1 parent b87cf1f commit 1164e02
Show file tree
Hide file tree
Showing 10 changed files with 682 additions and 9 deletions.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2020 ferris

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
A multipurpose tool for managing Steam accounts
<table>
<tr><td><b>State</b></td><td>Beta</td></tr>
<tr><td><b>Latest Release</b></td><td>0.6.2</td></tr>
<tr><td><b>License</b></td><td>???</td></tr>
<tr><td><b>Latest Release</b></td><td>0.7.0</td></tr>
<tr><td><b>License</b></td><td>MIT</td></tr>
</table>

<img src="ss.png"/>
Expand All @@ -18,7 +18,7 @@ A multipurpose tool for managing Steam accounts
* Protection of information (Encryption/Obfuscation + Hashing)
* Import accounts from <a href="https://github.com/Ashesh3/Steam-Account-Generator">Steam Account Generator</a> ✓
* Import accounts from <a href="https://accgen.cathook.club">Cathook's Account Generator</a>'s Local Storage (Firefox ✓)
* Steam User Data Management
* Steam User Data Management
* Steam Account Editor
* Steam Hour Booster

Expand Down
144 changes: 144 additions & 0 deletions owl/Forms/DuplicateUserData.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

82 changes: 82 additions & 0 deletions owl/Forms/DuplicateUserData.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Windows.Forms;

namespace owl.Forms
{
public partial class DuplicateUserData : Form
{
/// <summary>
/// The source of the data
/// </summary>
Class.Account ParentAccount = null;

/// <summary>
/// Directory path to the parent account user data
/// </summary>
string ParentAccountDir = null;

/// <summary>
/// List of Destination accounts
/// </summary>
List<Class.Account> ChildAccount = null;

public DuplicateUserData(Class.Account parentaccount, List<Class.Account> childaccount)
{
InitializeComponent();
ParentAccount = parentaccount;
ChildAccount = childaccount;
ParentAccountDir = Path.Combine(Globals.Config.steamPath, $"userdata\\{parentaccount.ResolveSteamID3()}");
}

private void DuplicateUserData_Load(object sender, EventArgs e)
{
this.Text += ParentAccount.Username;

foreach (string folder in Directory.EnumerateDirectories(ParentAccountDir))
lvFolders.Items.Add(new ListViewItem(Path.GetFileName(folder)));

foreach (Class.Account account in ChildAccount)
lbDestination.Items.Add(account.Username);

}

private void btnAll_Click(object sender, EventArgs e)
{
foreach (ListViewItem lvi in lvFolders.Items)
{
lvi.Checked = true;
}
}

private void btnCopy_Click(object sender, EventArgs e)
{
foreach (ListViewItem lvi in lvFolders.Items)
{
if (!lvi.Checked)
continue;

string parent_path = Path.Combine(ParentAccountDir, lvi.SubItems[0].Text);

foreach (Class.Account account in ChildAccount)
{
string id3 = account.ResolveSteamID3();

if (id3 == null)
continue;

string account_path = Path.Combine(Globals.Config.steamPath, $"userdata\\{id3}\\{lvi.SubItems[0].Text}");

foreach (string dirpath in Directory.GetDirectories(parent_path, "*", SearchOption.AllDirectories))
Directory.CreateDirectory(dirpath.Replace(parent_path, account_path));

foreach (string filepath in Directory.GetFiles(parent_path, "*.*", SearchOption.AllDirectories))
File.Copy(filepath, filepath.Replace(parent_path, account_path), true);
}
}

MessageBox.Show("User data has been copied!", "Duplicate user data", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
}
Loading

0 comments on commit 1164e02

Please sign in to comment.