/[pcsx2_0.9.7]/trunk/pcsx2/x86/newVif_Unpack.cpp
ViewVC logotype

Diff of /trunk/pcsx2/x86/newVif_Unpack.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/pcsx2/x86/newVif_Unpack.cpp	2010/12/23 11:48:33	279
+++ trunk/pcsx2/x86/newVif_Unpack.cpp	2010/12/23 12:02:12	280
@@ -70,6 +70,19 @@
 };
 // ----------------------------------------------------------------------------
 
+nVifStruct::nVifStruct()
+{
+	vifBlocks	=  NULL;
+	numBlocks	=  0;
+
+	recReserveSizeMB	= 8;
+}
+
+void reserveNewVif(int idx)
+{
+	if (newVifDynaRec) dVifReserve(idx);
+}
+
 void resetNewVif(int idx)
 {
 	// Safety Reset : Reassign all VIF structure info, just in case the VU1 pointers have
@@ -86,6 +99,10 @@
 	if (newVifDynaRec) dVifClose(idx);
 }
 
+void releaseNewVif(int idx) {
+	if (newVifDynaRec) dVifRelease(idx);
+}
+
 static __fi u8* getVUptr(uint idx, int offset) {
 	return (u8*)(vuRegs[idx].Mem + ( offset & (idx ? 0x3ff0 : 0xff0) ));
 }

 

  ViewVC Help
Powered by ViewVC 1.1.22