Skip to content

Commit

Permalink
v1.3.1
Browse files Browse the repository at this point in the history
* now supports games that don't have the save library initialized at any given time.
* now filters processes to eboot.bin or anything ending with .elf
* grammar
  • Loading branch information
ChendoChap committed Dec 18, 2018
1 parent b22ee6b commit dc73e6a
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Main.Designer.cs

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

21 changes: 18 additions & 3 deletions Main.cs
Expand Up @@ -11,7 +11,7 @@ namespace PS4Saves
{
public partial class Main : Form
{
PS4DBG ps4;
PS4DBG ps4 = new PS4DBG();
private int pid;
private ulong stub;
private ulong libSceUserServiceBase = 0x0;
Expand Down Expand Up @@ -126,14 +126,27 @@ private void connectButton_Click(object sender, EventArgs e)
}
}

private Process[] filter(ProcessList list)
{
List<Process> procs = new List<Process>();
for(int i = 0; i < list.processes.Length; i++)
{
if (list.processes[i].name == "eboot.bin" || list.processes[i].name.EndsWith(".elf"))
{
procs.Add(list.processes[i]);
}
}
return procs.ToArray();
}

private void processesButton_Click(object sender, EventArgs e)
{
if (!ps4.IsConnected)
{
SetStatus("Not Connected");
return;
}
processesComboBox.DataSource = ps4.GetProcessList().processes;
processesComboBox.DataSource = filter(ps4.GetProcessList());
SetStatus("Refreshed Processes");
}

Expand Down Expand Up @@ -180,6 +193,8 @@ private void setupButton_Click(object sender, EventArgs e)
}
userComboBox.DataSource = users.ToArray();

var ret = ps4.Call(pid, stub, libSceSaveDataBase + offsets.sceSaveDataInitialize3);
WriteLog($"sceSaveDataInitialize3 ret = 0x{ret:X}");
//PATCHES
/* shows sce saves but doesn't mount them
ps4.WriteMemory(pid, libSceSaveDataBase + 0x32998, "////");
Expand Down Expand Up @@ -260,7 +275,7 @@ private void mountButton_Click(object sender, EventArgs e)
}
else
{
SetStatus("Mouting Failed");
SetStatus("Mounting Failed");
}
}

Expand Down
4 changes: 2 additions & 2 deletions Properties/AssemblyInfo.cs
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.3.0.0")]
[assembly: AssemblyFileVersion("1.3.0.0")]
[assembly: AssemblyVersion("1.3.1.0")]
[assembly: AssemblyFileVersion("1.3.1.0")]
5 changes: 5 additions & 0 deletions libdebug/PS4DBG.cs
Expand Up @@ -341,6 +341,11 @@ private void CheckDebugging()
}


public PS4DBG()
{
enp = null;
sock = null;
}

/// <summary>
/// Initializes PS4DBG class
Expand Down
1 change: 1 addition & 0 deletions offsets.cs
Expand Up @@ -14,5 +14,6 @@ class offsets
public const int sceSaveDataUmount = 0x250C0;
public const int sceSaveDataDirNameSearch = 0x25CA0;
public const int sceSaveDataTransferringMount = 0x24F70;
public const int sceSaveDataInitialize3 = 0x24740;
}
}

0 comments on commit dc73e6a

Please sign in to comment.