diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2023-03-15 10:40:36 +0200 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2023-03-20 08:14:18 +0200 |
commit | 09465f3fe63c00bc54b3c3d6a2ef780795007e34 (patch) | |
tree | 69740cd2d5a87424add68622cea9a5d107a4a2ac /platform/ios | |
parent | 161d028ae89acb578cfcd4f29bfe9ac205459e8b (diff) | |
download | redot-engine-09465f3fe63c00bc54b3c3d6a2ef780795007e34.tar.gz |
Remove (or make verbose only) various debug prints.
Diffstat (limited to 'platform/ios')
-rw-r--r-- | platform/ios/godot_ios.mm | 9 | ||||
-rw-r--r-- | platform/ios/godot_view.mm | 6 | ||||
-rw-r--r-- | platform/ios/ios.mm | 2 | ||||
-rw-r--r-- | platform/ios/joypad_ios.mm | 6 | ||||
-rw-r--r-- | platform/ios/main.m | 3 | ||||
-rw-r--r-- | platform/ios/os_ios.mm | 2 | ||||
-rw-r--r-- | platform/ios/view_controller.mm | 6 |
7 files changed, 11 insertions, 23 deletions
diff --git a/platform/ios/godot_ios.mm b/platform/ios/godot_ios.mm index dc6f7c82bd..b01e339211 100644 --- a/platform/ios/godot_ios.mm +++ b/platform/ios/godot_ios.mm @@ -83,14 +83,9 @@ int ios_main(int argc, char **argv) { char path[512]; memcpy(path, argv[0], len > sizeof(path) ? sizeof(path) : len); path[len] = 0; - printf("Path: %s\n", path); chdir(path); } - printf("godot_ios %s\n", argv[0]); - char cwd[512]; - getcwd(cwd, sizeof(cwd)); - printf("cwd %s\n", cwd); os = new OS_IOS(); // We must override main when testing is enabled @@ -104,10 +99,7 @@ int ios_main(int argc, char **argv) { argc = add_path(argc, fargv); argc = add_cmdline(argc, fargv); - printf("os created\n"); - Error err = Main::setup(fargv[0], argc - 1, &fargv[1], false); - printf("setup %i\n", err); if (err == ERR_HELP) { // Returned by --help and --version, so success. return 0; @@ -121,7 +113,6 @@ int ios_main(int argc, char **argv) { } void ios_finish() { - printf("ios_finish\n"); Main::cleanup(); delete os; } diff --git a/platform/ios/godot_view.mm b/platform/ios/godot_view.mm index 67e47092d8..ff04ea9838 100644 --- a/platform/ios/godot_view.mm +++ b/platform/ios/godot_view.mm @@ -173,7 +173,7 @@ static const float earth_gravity = 9.80665; self.isActive = NO; - printf("******** stop animation!\n"); + print_verbose("Stop animation!"); if (self.useCADisplayLink) { [self.displayLink invalidate]; @@ -193,7 +193,7 @@ static const float earth_gravity = 9.80665; self.isActive = YES; - printf("start animation!\n"); + print_verbose("Start animation!"); if (self.useCADisplayLink) { self.displayLink = [CADisplayLink displayLinkWithTarget:self selector:@selector(drawView)]; @@ -213,7 +213,7 @@ static const float earth_gravity = 9.80665; - (void)drawView { if (!self.isActive) { - printf("draw view not active!\n"); + print_verbose("Draw view not active!"); return; } diff --git a/platform/ios/ios.mm b/platform/ios/ios.mm index d240891a5c..1065f5fd2a 100644 --- a/platform/ios/ios.mm +++ b/platform/ios/ios.mm @@ -173,7 +173,7 @@ String iOS::get_rate_url(int p_app_id) const { String ret = app_url_path.replace("APP_ID", String::num(p_app_id)); - printf("returning rate url %s\n", ret.utf8().get_data()); + print_verbose(vformat("Returning rate url %s", ret)); return ret; } diff --git a/platform/ios/joypad_ios.mm b/platform/ios/joypad_ios.mm index 9194b09ef6..421c82dfc4 100644 --- a/platform/ios/joypad_ios.mm +++ b/platform/ios/joypad_ios.mm @@ -150,7 +150,7 @@ void JoypadIOS::start_processing() { int joy_id = Input::get_singleton()->get_unused_joy_id(); if (joy_id == -1) { - printf("Couldn't retrieve new joy id\n"); + print_verbose("Couldn't retrieve new joy ID."); return; } @@ -174,12 +174,12 @@ void JoypadIOS::start_processing() { GCController *controller = (GCController *)notification.object; if (!controller) { - printf("Couldn't retrieve new controller\n"); + print_verbose("Couldn't retrieve new controller."); return; } if ([[self.connectedJoypads allKeysForObject:controller] count] > 0) { - printf("Controller is already registered\n"); + print_verbose("Controller is already registered."); } else if (!self.isProcessing) { [self.joypadsQueue addObject:controller]; } else { diff --git a/platform/ios/main.m b/platform/ios/main.m index 9ccc420c73..33b1034d98 100644 --- a/platform/ios/main.m +++ b/platform/ios/main.m @@ -42,15 +42,12 @@ int main(int argc, char *argv[]) { setenv("MVK_CONFIG_FULL_IMAGE_VIEW_SWIZZLE", "1", 1); #endif - printf("*********** main.m\n"); gargc = argc; gargv = argv; - printf("running app main\n"); @autoreleasepool { NSString *className = NSStringFromClass([GodotApplicalitionDelegate class]); UIApplicationMain(argc, argv, nil, className); } - printf("main done\n"); return 0; } diff --git a/platform/ios/os_ios.mm b/platform/ios/os_ios.mm index 4d2dd3c52c..b2f72c310f 100644 --- a/platform/ios/os_ios.mm +++ b/platform/ios/os_ios.mm @@ -302,7 +302,7 @@ Error OS_IOS::shell_open(String p_uri) { return ERR_CANT_OPEN; } - printf("opening url %s\n", p_uri.utf8().get_data()); + print_verbose(vformat("Opening URL %s", p_uri)); [[UIApplication sharedApplication] openURL:url options:@{} completionHandler:nil]; diff --git a/platform/ios/view_controller.mm b/platform/ios/view_controller.mm index a5aba201d7..8709252623 100644 --- a/platform/ios/view_controller.mm +++ b/platform/ios/view_controller.mm @@ -150,7 +150,7 @@ - (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; - printf("*********** did receive memory warning!\n"); + print_verbose("Did receive memory warning!"); } - (void)viewDidLoad { @@ -165,11 +165,11 @@ } - (void)observeKeyboard { - printf("******** setting up keyboard input view\n"); + print_verbose("Setting up keyboard input view."); self.keyboardView = [GodotKeyboardInputView new]; [self.view addSubview:self.keyboardView]; - printf("******** adding observer for keyboard show/hide\n"); + print_verbose("Adding observer for keyboard show/hide."); [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardOnScreen:) |