Compare commits

..

No commits in common. "master" and "wow" have entirely different histories.
master ... wow

4 changed files with 11 additions and 21 deletions

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v2.0.50727"/></startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
</startup>
</configuration>

View File

@ -8,7 +8,7 @@
<OutputType>Exe</OutputType>
<RootNamespace>Conv2PSV</RootNamespace>
<AssemblyName>PS12PSV</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<TargetFrameworkProfile />

View File

@ -8,18 +8,6 @@ namespace Conv2PSV
{
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)
{
String str = "";
@ -138,20 +126,20 @@ namespace Conv2PSV
{
FileStream MCS = File.OpenRead(FilePath);
MCS.Seek(0x80, SeekOrigin.Begin);
CopyTo(MCS, PSV);
MCS.CopyTo(PSV);
MCS.Close();
}
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);
PSX.Seek(0x36, SeekOrigin.Begin);
CopyTo(PSX, PSV);
PSX.CopyTo(PSV);
PSX.Close();
}
else
{
FileStream RAW = File.OpenRead(FilePath);
CopyTo(RAW, PSV);
RAW.CopyTo(PSV);
RAW.Close();
}
}
@ -178,7 +166,7 @@ namespace Conv2PSV
String SaveTitle = GetTitle(FilePath);
Console.Write("PsvName = ");
String PsvName = Path.Combine(Path.Combine(Path.Combine(Path.GetDirectoryName(FilePath), "PS3"), "EXPORT"), "PSV");
String PsvName = Path.Combine(Path.GetDirectoryName(FilePath), "PS3", "EXPORT", "PSV");
Directory.CreateDirectory(PsvName);
PsvName = Path.Combine(PsvName, GetPsvName(SaveTitle));
Console.WriteLine(Path.GetFileName(PsvName));

View File

@ -5,6 +5,8 @@ Convert .mcs and .gme saves to .psv
i added GME support because it seemed most saves online used it.
however .MCS is the supperior better format.
Download: https://silica.codes/Li/ps12psv/releases/download/wow2/PS12PSV.exe
Download: https://bitbucket.org/SilicaAndPina/ps12psv/downloads/PS12PSV.exe
Blessed Be ~
Blessed Be ~
Made possible by CBPS @ https://github.com/dots-tb/ps3-psvresigner/tree/master/src