Change GetStatePtr() Return to const

This commit is contained in:
Chris Burgener 2016-04-05 12:42:19 -04:00
parent 54eb8c09f9
commit 3140f9b226
2 changed files with 2 additions and 2 deletions

View File

@ -225,7 +225,7 @@ CPUState GetState()
return state; return state;
} }
volatile CPUState *GetStatePtr() const volatile CPUState *GetStatePtr()
{ {
return &state; return &state;
} }

View File

@ -160,7 +160,7 @@ void Pause();
void Stop(); void Stop();
void FinishStateMove(); void FinishStateMove();
CPUState GetState(); CPUState GetState();
volatile CPUState *GetStatePtr(); // this oddity is here instead of an extern declaration to easily be able to find all direct accesses throughout the code. const volatile CPUState *GetStatePtr(); // this oddity is here instead of an extern declaration to easily be able to find all direct accesses throughout the code.
u32 CompactCR(); u32 CompactCR();
void ExpandCR(u32 cr); void ExpandCR(u32 cr);