Skip to content

Commit

Permalink
Warning fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Sep 9, 2022
1 parent bbba18a commit e5d1bb5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Common/VR/PPSSPPVR.cpp
Expand Up @@ -95,7 +95,7 @@ bool IsVRBuild() {
return true;
}

void InitVROnAndroid(void* vm, void* activity, int version, char* name) {
void InitVROnAndroid(void* vm, void* activity, int version, const char* name) {
ovrJava java;
java.Vm = (JavaVM*)vm;
java.ActivityObject = (jobject)activity;
Expand Down
4 changes: 2 additions & 2 deletions Common/VR/PPSSPPVR.h
Expand Up @@ -7,7 +7,7 @@

// VR app flow integration
bool IsVRBuild();
void InitVROnAndroid(void* vm, void* activity, int version, char* name);
void InitVROnAndroid(void* vm, void* activity, int version, const char* name);
void EnterVR(bool firstStart);
void GetVRResolutionPerEye(int* width, int* height);
void UpdateVRInput(bool(*NativeKey)(const KeyInput &key), bool(*NativeTouch)(const TouchInput &touch), bool haptics, float dp_xscale, float dp_yscale);
Expand All @@ -30,7 +30,7 @@ void UpdateVRView(float* projMatrix, float* leftEye, float* rightEye);

// VR app flow integration
inline bool IsVRBuild() { return false; }
inline void InitVROnAndroid(void* vm, void* activity, int version, char* name) {}
inline void InitVROnAndroid(void* vm, void* activity, int version, const char* name) {}
inline void EnterVR(bool firstTime) {}
inline void GetVRResolutionPerEye(int* width, int* height) {}
inline void UpdateVRInput(bool(*NativeKey)(const KeyInput &key), bool(*NativeTouch)(const TouchInput &touch), bool haptics, float dp_xscale, float dp_yscale) {}
Expand Down

0 comments on commit e5d1bb5

Please sign in to comment.