platform_pre_snapshot
error = platform_pre_snapshot(platform_mode);
error = platform_pre_snapshot(true);