[Scummvm-cvs-logs] CVS: scummvm/scumm resource.cpp,1.358,1.359 script_v100he.cpp,2.190,2.191 script_v7he.cpp,2.179,2.180 scumm.h,1.675,1.676
kirben
kirben at users.sourceforge.net
Thu Jan 26 16:51:03 CET 2006
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/scumm floodfill_he.cpp,2.1.2.5,2.1.2.6 resource.cpp,1.339.2.10,1.339.2.11 resource.h,1.17.2.2,1.17.2.3 script_v100he.cpp,2.173.2.7,2.173.2.8 script_v7he.cpp,2.166.2.8,2.166.2.9 scumm.h,1.647.2.15,1.647.2.16 wiz_he.cpp,2.96.2.7,2.96.2.8 wiz_he.h,2.30.2.5,2.30.2.6
- Next message: [Scummvm-cvs-logs] CVS: scummvm/scumm resource.cpp,1.339.2.11,1.339.2.12 script_v100he.cpp,2.173.2.8,2.173.2.9 script_v7he.cpp,2.166.2.9,2.166.2.10 scumm.h,1.647.2.16,1.647.2.17
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29904/scumm
Modified Files:
resource.cpp script_v100he.cpp script_v7he.cpp scumm.h
Log Message:
Resource modified status always cleared when nuked.
Index: resource.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/resource.cpp,v
retrieving revision 1.358
retrieving revision 1.359
diff -u -d -r1.358 -r1.359
--- resource.cpp 27 Jan 2006 00:27:57 -0000 1.358
+++ resource.cpp 27 Jan 2006 00:50:27 -0000 1.359
@@ -937,6 +937,7 @@
debugC(DEBUG_RESOURCE, "nukeResource(%s,%d)", resTypeFromId(type), idx);
address[type][idx] = 0;
flags[type][idx] = 0;
+ status[type][idx] &= ~RS_MODIFIED;
_allocatedSize -= ((MemBlkHeader *)ptr)->size;
free(ptr);
}
@@ -1018,12 +1019,6 @@
status[type][i] |= RS_MODIFIED;
}
-void ResourceManager::setUnModified(int type, int i) {
- if (!validateResource("Modified", type, i))
- return;
- status[type][i] &= ~RS_MODIFIED;
-}
-
bool ResourceManager::isModified(int type, int i) const {
if (!validateResource("isModified", type, i))
return false;
Index: script_v100he.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v100he.cpp,v
retrieving revision 2.190
retrieving revision 2.191
diff -u -d -r2.190 -r2.191
--- script_v100he.cpp 27 Jan 2006 00:27:57 -0000 2.190
+++ script_v100he.cpp 27 Jan 2006 00:50:27 -0000 2.191
@@ -1119,12 +1119,10 @@
}
break;
case 133:
- if (_heResType == rtCharset) {
+ if (_heResType == rtCharset)
nukeCharset(_heResId);
- } else {
- res.setUnModified(_heResType, _heResId);
+ else
res.nukeResource(_heResType, _heResId);
- }
break;
case 134:
case 135:
Index: script_v7he.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v7he.cpp,v
retrieving revision 2.179
retrieving revision 2.180
diff -u -d -r2.179 -r2.180
--- script_v7he.cpp 27 Jan 2006 00:27:57 -0000 2.179
+++ script_v7he.cpp 27 Jan 2006 00:50:27 -0000 2.180
@@ -631,7 +631,6 @@
break;
case 192:
resid = pop();
- res.setUnModified(rtImage, resid);
res.nukeResource(rtImage, resid);
break;
case 201:
Index: scumm.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/scumm.h,v
retrieving revision 1.675
retrieving revision 1.676
diff -u -d -r1.675 -r1.676
--- scumm.h 27 Jan 2006 00:27:57 -0000 1.675
+++ scumm.h 27 Jan 2006 00:50:27 -0000 1.676
@@ -352,7 +352,6 @@
bool isLocked(int type, int i) const;
void setModified(int type, int i);
- void setUnModified(int type, int i);
bool isModified(int type, int i) const;
void setResourceCounter(int type, int index, byte flag);
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/scumm floodfill_he.cpp,2.1.2.5,2.1.2.6 resource.cpp,1.339.2.10,1.339.2.11 resource.h,1.17.2.2,1.17.2.3 script_v100he.cpp,2.173.2.7,2.173.2.8 script_v7he.cpp,2.166.2.8,2.166.2.9 scumm.h,1.647.2.15,1.647.2.16 wiz_he.cpp,2.96.2.7,2.96.2.8 wiz_he.h,2.30.2.5,2.30.2.6
- Next message: [Scummvm-cvs-logs] CVS: scummvm/scumm resource.cpp,1.339.2.11,1.339.2.12 script_v100he.cpp,2.173.2.8,2.173.2.9 script_v7he.cpp,2.166.2.9,2.166.2.10 scumm.h,1.647.2.16,1.647.2.17
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list