mirror of
https://github.com/jkdansereau/goldeneye-pc-port.git
synced 2026-10-24 00:02:45 +02:00
GE_SAVELOG: trim criterion dump to essentials (D157 confirmed fixed)
Drop the verbose raw-words / DESTROY obj-ptr-healthy lines now that D157 is root-caused + confirmed. Keep the compact per-criterion line (type/ObjRefID/MinDif/stride/status) and the per-objective difficulty-gate line -- both are the reusable signal for any future save/objective issue, gated by g_savelogObjOnce + GE_SAVELOG so inert in normal play.
This commit is contained in:
1 parent
0083cdc10e
commit
cb5295fe85
1 file changed
+8
-14
@@ -195,13 +195,6 @@ OBJECTIVESTATUS get_status_of_objective(s32 objectiveNum) //#MATCH
|
||||
{
|
||||
currentstatus = OBJECTIVESTATUS_INCOMPLETE;
|
||||
}
|
||||
#ifdef PORT
|
||||
if (g_savelogObjOnce && getenv("GE_SAVELOG"))
|
||||
osSyncPrintf("SAVELOG: DESTROY tag=%d obj=%p prop=%p healthy=%d\n",
|
||||
(int)objective->ObjRefID, (void *)obj,
|
||||
obj ? (void *)obj->prop : NULL,
|
||||
obj ? (int)objIsHealthy(obj) : -1);
|
||||
#endif
|
||||
break;
|
||||
}
|
||||
case PROPDEF_OBJECTIVE_COMPLETE_CONDITION:
|
||||
@@ -297,16 +290,17 @@ OBJECTIVESTATUS get_status_of_objective(s32 objectiveNum) //#MATCH
|
||||
}
|
||||
}
|
||||
#ifdef PORT
|
||||
if (g_savelogObjOnce && getenv("GE_SAVELOG")) {
|
||||
u32 *rw = (u32 *)objective;
|
||||
/* GE_SAVELOG: one line per objective criterion the walk visits
|
||||
(type / ref id / stride / status) -- gated by g_savelogObjOnce
|
||||
so only the bossReturnTitleStage completion check logs, not
|
||||
the per-frame poll. */
|
||||
if (g_savelogObjOnce && getenv("GE_SAVELOG"))
|
||||
osSyncPrintf("SAVELOG: crit obj=%d type=%d ObjRefID=%d "
|
||||
"TextID=0x%x MinDif=%d stride=%d words=[%08x %08x %08x %08x] "
|
||||
"curstat=%d\n",
|
||||
"MinDif=%d stride=%d curstat=%d\n",
|
||||
objectiveNum, (int)objective->type, (int)objective->ObjRefID,
|
||||
(unsigned)objective->TextID, (int)objective->MinDificulty,
|
||||
(int)objective->MinDificulty,
|
||||
(int)sizepropdef((PropDefHeaderRecord *)objective),
|
||||
rw[0], rw[1], rw[2], rw[3], (int)currentstatus);
|
||||
}
|
||||
(int)currentstatus);
|
||||
#endif
|
||||
if (status == OBJECTIVESTATUS_COMPLETE)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user