From 42f3c5125fcb99e1445dfb7ca3d1b21330cde414 Mon Sep 17 00:00:00 2001
From: notaz <notasas@gmail.com>
Date: Mon, 9 Jan 2012 00:52:28 +0200
Subject: [PATCH] cdrom: resume cdda on state load

---
 libpcsxcore/cdrom.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/libpcsxcore/cdrom.c b/libpcsxcore/cdrom.c
index a150db69..d9a3bb37 100644
--- a/libpcsxcore/cdrom.c
+++ b/libpcsxcore/cdrom.c
@@ -2073,9 +2073,13 @@ int cdrFreeze(gzFile f, int Mode) {
 
 	gzfreeze(&tmp, sizeof(tmp));
 
-	if (Mode == 0)
+	if (Mode == 0) {
 		cdr.pTransfer = cdr.Transfer + tmp;
 
+		if (cdr.Play && !Config.Cdda)
+			CDR_play(cdr.SetSectorPlay);
+	}
+
 	return 0;
 }
 
-- 
2.39.5