Bisqwit's FCM repairer

Have you accidentally loaded a bad quicksave that truncated your 15-minute FCEU movie to 30 seconds?

This tool may help you.

You need:

From these parts, it will hopefully reconstruct the full movie.

Select your broken FCM file:
Select your latest backup FCM file:
Minimum matching length of common context: bytes
 
Press this button to let the server
generate a repaired FCM for you.

Algorithm employed by this tool:

Copy header from NEW Copy destroyed region from BACKUP Copy rest from NEW Recalculate frame count and put it into header "Destroyed region" is everything in the NEW file up until a long enough piece of common context is found to match between the NEW and the BACKUP file. It works, because FCEU never actually truncates the file. It contains data beyond the movie stream end. This tool just uses the backup file to patch the movie back into good condition.

Written by Joel Yliluoma