comparison vm.c @ 111:0c1f0c7eec1d src

loosening this test a bit makes "Spy Game" German RC2 work
author mroi
date Sun, 24 Nov 2002 15:09:18 +0000
parents ac50954e1345
children 50ee8763a312
comparison
equal deleted inserted replaced
110:ac50954e1345 111:0c1f0c7eec1d
376 * detect such discs. I consider these discs broken, so the fix is somewhat 376 * detect such discs. I consider these discs broken, so the fix is somewhat
377 * broken, too. */ 377 * broken, too. */
378 if (((vm->state).pgc->cell_playback[(vm->state).cellN - 1].last_sector == 378 if (((vm->state).pgc->cell_playback[(vm->state).cellN - 1].last_sector ==
379 (vm->state).pgc->cell_playback[(vm->state).cellN - 1].last_vobu_start_sector) && 379 (vm->state).pgc->cell_playback[(vm->state).cellN - 1].last_vobu_start_sector) &&
380 ((vm->state).pgc->cell_playback[(vm->state).cellN - 1].last_sector - 380 ((vm->state).pgc->cell_playback[(vm->state).cellN - 1].last_sector -
381 (vm->state).pgc->cell_playback[(vm->state).cellN - 1].first_sector < 200)) { 381 (vm->state).pgc->cell_playback[(vm->state).cellN - 1].first_sector < 250)) {
382 int time; 382 int time;
383 time = ((vm->state).pgc->cell_playback[(vm->state).cellN - 1].playback_time.hour & 0xf0) * 36000; 383 time = ((vm->state).pgc->cell_playback[(vm->state).cellN - 1].playback_time.hour & 0xf0) * 36000;
384 time += ((vm->state).pgc->cell_playback[(vm->state).cellN - 1].playback_time.hour & 0x0f) * 3600; 384 time += ((vm->state).pgc->cell_playback[(vm->state).cellN - 1].playback_time.hour & 0x0f) * 3600;
385 time += ((vm->state).pgc->cell_playback[(vm->state).cellN - 1].playback_time.minute & 0xf0) * 600; 385 time += ((vm->state).pgc->cell_playback[(vm->state).cellN - 1].playback_time.minute & 0xf0) * 600;
386 time += ((vm->state).pgc->cell_playback[(vm->state).cellN - 1].playback_time.minute & 0x0f) * 60; 386 time += ((vm->state).pgc->cell_playback[(vm->state).cellN - 1].playback_time.minute & 0x0f) * 60;
2027 return pgcit; 2027 return pgcit;
2028 } 2028 }
2029 2029
2030 /* 2030 /*
2031 * $Log$ 2031 * $Log$
2032 * Revision 1.40 2002/11/24 15:09:18 mroi
2033 * loosening this test a bit makes "Spy Game" German RC2 work
2034 *
2032 * Revision 1.39 2002/11/23 11:05:45 mroi 2035 * Revision 1.39 2002/11/23 11:05:45 mroi
2033 * patch from Marco Zühlke for reporting correct title number 2036 * patch from Marco Zühlke for reporting correct title number
2034 * 2037 *
2035 * Revision 1.38 2002/11/22 17:14:26 mroi 2038 * Revision 1.38 2002/11/22 17:14:26 mroi
2036 * warning: ugly fix ahead! (see comment in the code for details) 2039 * warning: ugly fix ahead! (see comment in the code for details)