Perforce lost source code

I have a perforce server to backup my game if something goes wrong, but I accidentally reverted the changes to my source code after a week of working on it. Long story short I lost my source code, but everything still works in the game. I’ve tried rolling back to a previous date but i think it handles the source code differently than game files. Anyone have this happen? I don’t wanna re-write the code but I guess I will if I have to lol