Regardless of what happens with your marriage, it is you who are responsible for your own happiness. You have to identify ways to achieve that happiness independently of your marriage.
That holds true for all of us!
"Always go straight forward, and if you meet the devil, cut him in two and go between the pieces." - William Sturgis, clipper ship captain, 1830's.