Remove the last non-interface function on the ViewController

This commit is contained in:
Henrik Rydgård 2024-05-22 16:35:27 +02:00
parent 538cc62f16
commit 4726e1f4b3
4 changed files with 7 additions and 8 deletions

View file

@ -15,6 +15,3 @@
@end
extern id <PPSSPPViewController> sharedViewController;
void startVideo(int width, int height);
void stopVideo();

View file

@ -382,11 +382,11 @@ extern float g_safeInsetBottom;
}
}
void startVideo(int width, int height) {
[cameraHelper startVideo: width h:height];
- (void)startVideo:(int)width height:(int)height {
[cameraHelper startVideo:width h:height];
}
void stopVideo() {
- (void)stopVideo {
[cameraHelper stopVideo];
}

View file

@ -13,5 +13,7 @@
- (UIView *)getView;
- (void)startLocation;
- (void)stopLocation;
- (void)startVideo:(int)width height:(int)height;
- (void)stopVideo;
@end

View file

@ -429,9 +429,9 @@ bool System_MakeRequest(SystemRequestType type, int requestId, const std::string
if (!strncmp(param1.c_str(), "startVideo", 10)) {
int width = 0, height = 0;
sscanf(param1.c_str(), "startVideo_%dx%d", &width, &height);
startVideo(width, height);
[sharedViewController startVideo:width height:height];
} else if (!strcmp(param1.c_str(), "stopVideo")) {
stopVideo();
[sharedViewController stopVideo];
}
return true;
case SystemRequestType::GPS_COMMAND: