Windows 95 (lol)
This commit is contained in:
parent
619217d836
commit
f9a0b579b2
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
|
||||
</startup>
|
||||
|
||||
<supportedRuntime version="v2.0.50727"/></startup>
|
||||
</configuration>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<OutputType>Exe</OutputType>
|
||||
<RootNamespace>Conv2PSV</RootNamespace>
|
||||
<AssemblyName>PS12PSV</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||
<TargetFrameworkProfile />
|
||||
|
|
|
@ -8,6 +8,18 @@ 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 = "";
|
||||
|
@ -126,20 +138,20 @@ namespace Conv2PSV
|
|||
{
|
||||
FileStream MCS = File.OpenRead(FilePath);
|
||||
MCS.Seek(0x80, SeekOrigin.Begin);
|
||||
MCS.CopyTo(PSV);
|
||||
CopyTo(MCS, 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);
|
||||
PSX.CopyTo(PSV);
|
||||
CopyTo(PSX, PSV);
|
||||
PSX.Close();
|
||||
}
|
||||
else
|
||||
{
|
||||
FileStream RAW = File.OpenRead(FilePath);
|
||||
RAW.CopyTo(PSV);
|
||||
CopyTo(RAW, PSV);
|
||||
RAW.Close();
|
||||
}
|
||||
}
|
||||
|
@ -166,7 +178,7 @@ namespace Conv2PSV
|
|||
String SaveTitle = GetTitle(FilePath);
|
||||
|
||||
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);
|
||||
PsvName = Path.Combine(PsvName, GetPsvName(SaveTitle));
|
||||
Console.WriteLine(Path.GetFileName(PsvName));
|
||||
|
|
Loading…
Reference in New Issue