Compare commits
4 Commits
Author | SHA1 | Date |
---|---|---|
Li | 6ad5099b42 | |
Li | f9a0b579b2 | |
random() | 619217d836 | |
random() | 8d5515d742 |
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<configuration>
|
<configuration>
|
||||||
<startup>
|
<startup>
|
||||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
|
|
||||||
</startup>
|
<supportedRuntime version="v2.0.50727"/></startup>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<RootNamespace>Conv2PSV</RootNamespace>
|
<RootNamespace>Conv2PSV</RootNamespace>
|
||||||
<AssemblyName>PS12PSV</AssemblyName>
|
<AssemblyName>PS12PSV</AssemblyName>
|
||||||
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||||
<FileAlignment>512</FileAlignment>
|
<FileAlignment>512</FileAlignment>
|
||||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||||
<TargetFrameworkProfile />
|
<TargetFrameworkProfile />
|
||||||
|
|
|
@ -8,6 +8,18 @@ namespace Conv2PSV
|
||||||
{
|
{
|
||||||
class Program
|
class Program
|
||||||
{
|
{
|
||||||
|
|
||||||
|
static void CopyTo(Stream src, Stream dst)
|
||||||
|
{
|
||||||
|
byte[] buffer = new byte[0x8000];
|
||||||
|
int totalRead = 0;
|
||||||
|
do
|
||||||
|
{
|
||||||
|
totalRead = src.Read(buffer, 0x00, buffer.Length);
|
||||||
|
dst.Write(buffer, 0x00, totalRead);
|
||||||
|
} while (totalRead > 0);
|
||||||
|
|
||||||
|
}
|
||||||
static string GetString(Stream fs)
|
static string GetString(Stream fs)
|
||||||
{
|
{
|
||||||
String str = "";
|
String str = "";
|
||||||
|
@ -126,20 +138,20 @@ namespace Conv2PSV
|
||||||
{
|
{
|
||||||
FileStream MCS = File.OpenRead(FilePath);
|
FileStream MCS = File.OpenRead(FilePath);
|
||||||
MCS.Seek(0x80, SeekOrigin.Begin);
|
MCS.Seek(0x80, SeekOrigin.Begin);
|
||||||
MCS.CopyTo(PSV);
|
CopyTo(MCS, PSV);
|
||||||
MCS.Close();
|
MCS.Close();
|
||||||
}
|
}
|
||||||
else if (Path.GetExtension(FilePath).ToLower() == ".mcb" || Path.GetExtension(FilePath).ToLower() == ".psx" || Path.GetExtension(FilePath).ToLower() == ".mcx" || Path.GetExtension(FilePath).ToLower() == ".pda")
|
else if (Path.GetExtension(FilePath).ToLower() == ".mcb" || Path.GetExtension(FilePath).ToLower() == ".psx" || Path.GetExtension(FilePath).ToLower() == ".mcx" || Path.GetExtension(FilePath).ToLower() == ".pda")
|
||||||
{
|
{
|
||||||
FileStream PSX = File.OpenRead(FilePath);
|
FileStream PSX = File.OpenRead(FilePath);
|
||||||
PSX.Seek(0x36, SeekOrigin.Begin);
|
PSX.Seek(0x36, SeekOrigin.Begin);
|
||||||
PSX.CopyTo(PSV);
|
CopyTo(PSX, PSV);
|
||||||
PSX.Close();
|
PSX.Close();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
FileStream RAW = File.OpenRead(FilePath);
|
FileStream RAW = File.OpenRead(FilePath);
|
||||||
RAW.CopyTo(PSV);
|
CopyTo(RAW, PSV);
|
||||||
RAW.Close();
|
RAW.Close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -166,7 +178,7 @@ namespace Conv2PSV
|
||||||
String SaveTitle = GetTitle(FilePath);
|
String SaveTitle = GetTitle(FilePath);
|
||||||
|
|
||||||
Console.Write("PsvName = ");
|
Console.Write("PsvName = ");
|
||||||
String PsvName = Path.Combine(Path.GetDirectoryName(FilePath), "PS3", "EXPORT", "PSV");
|
String PsvName = Path.Combine(Path.Combine(Path.Combine(Path.GetDirectoryName(FilePath), "PS3"), "EXPORT"), "PSV");
|
||||||
Directory.CreateDirectory(PsvName);
|
Directory.CreateDirectory(PsvName);
|
||||||
PsvName = Path.Combine(PsvName, GetPsvName(SaveTitle));
|
PsvName = Path.Combine(PsvName, GetPsvName(SaveTitle));
|
||||||
Console.WriteLine(Path.GetFileName(PsvName));
|
Console.WriteLine(Path.GetFileName(PsvName));
|
||||||
|
|
|
@ -5,8 +5,6 @@ Convert .mcs and .gme saves to .psv
|
||||||
i added GME support because it seemed most saves online used it.
|
i added GME support because it seemed most saves online used it.
|
||||||
however .MCS is the supperior better format.
|
however .MCS is the supperior better format.
|
||||||
|
|
||||||
Download: https://bitbucket.org/SilicaAndPina/ps12psv/downloads/PS12PSV.exe
|
Download: https://silica.codes/Li/ps12psv/releases/download/wow2/PS12PSV.exe
|
||||||
|
|
||||||
Blessed Be ~
|
Blessed Be ~
|
||||||
|
|
||||||
Made possible by CBPS @ https://github.com/dots-tb/ps3-psvresigner/tree/master/src
|
|
Loading…
Reference in New Issue