@@ -11,21 +11,14 @@ class Patcher
1111 public const string PatchText = "PATCH" ;
1212 public const int EndOfFile = 0x454F46 ;
1313
14- public void PatchStudy ( MemoryStream patch , Studier . IpsStudy study , MemoryStream source , MemoryStream target )
15- {
16- PatchStudy ( ( Stream ) patch , study , ( Stream ) source , ( Stream ) target ) ;
17- }
1814 public void PatchStudy ( string patch , Studier . IpsStudy study , string source , string target )
1915 {
2016 using ( FileStream patchStream = File . OpenRead ( patch ) , sourceStream = File . OpenRead ( source ) , targetStream = File . Open ( target , FileMode . Create ) )
2117 {
2218 PatchStudy ( patchStream , study , sourceStream , targetStream ) ;
2319 }
2420 }
25- public void PatchStudy ( FileStream patch , Studier . IpsStudy study , FileStream source , FileStream target )
26- {
27- PatchStudy ( ( Stream ) patch , study , ( Stream ) source , ( Stream ) target ) ;
28- }
21+
2922 public void PatchStudy ( Stream patch , Studier . IpsStudy study , Stream source , Stream target )
3023 {
3124 source . CopyTo ( target ) ;
@@ -61,21 +54,15 @@ public void PatchStudy(Stream patch, Studier.IpsStudy study, Stream source, Stre
6154 }
6255 if ( study . OutlenMax != 0xFFFFFFFF && source . Length <= study . OutlenMax ) throw new Exceptions . IpsNotThisException ( ) ; // Truncate data without this being needed is a poor idea.
6356 }
64- public void Patch ( MemoryStream patch , MemoryStream source , MemoryStream target )
65- {
66- Patch ( ( Stream ) patch , ( Stream ) source , ( Stream ) target ) ;
67- }
57+
6858 public void Patch ( string patch , string source , string target )
6959 {
7060 using ( FileStream patchStream = File . OpenRead ( patch ) , sourceStream = File . OpenRead ( source ) , targetStream = File . Open ( target , FileMode . Create ) )
7161 {
7262 Patch ( patchStream , sourceStream , targetStream ) ;
7363 }
7464 }
75- public void Patch ( FileStream patch , FileStream source , FileStream target )
76- {
77- Patch ( ( Stream ) patch , ( Stream ) source , ( Stream ) target ) ;
78- }
65+
7966 public void Patch ( Stream patch , Stream source , Stream target )
8067 {
8168 Studier studier = new Studier ( ) ;
0 commit comments