소스 검색

deps/obs-scripting: Fix code formatting

Somehow this was incorrectly formatted at some point.
jp9000 3 년 전
부모
커밋
601187d0f6
2개의 변경된 파일15개의 추가작업 그리고 15개의 파일을 삭제
  1. 13 13
      deps/obs-scripting/obs-scripting-lua.c
  2. 2 2
      deps/obs-scripting/obs-scripting-python.c

+ 13 - 13
deps/obs-scripting/obs-scripting-lua.c

@@ -1327,22 +1327,22 @@ void obs_lua_load(void)
 #define PATH_MAX MAX_PATH
 #define PATH_MAX MAX_PATH
 #endif
 #endif
 
 
-    char import_path[PATH_MAX];
+	char import_path[PATH_MAX];
 
 
 #ifdef __APPLE__
 #ifdef __APPLE__
-    struct dstr bundle_path;
-    
-    dstr_init_move_array(&bundle_path, os_get_executable_path_ptr(""));
-    dstr_cat(&bundle_path, "../PlugIns");
-    char *absolute_plugin_path = os_get_abs_path_ptr(bundle_path.array);
-    
-    if(absolute_plugin_path != NULL) {
-        strcpy(import_path, absolute_plugin_path);
-        bfree(absolute_plugin_path);
-    }
-    dstr_free(&bundle_path);
+	struct dstr bundle_path;
+
+	dstr_init_move_array(&bundle_path, os_get_executable_path_ptr(""));
+	dstr_cat(&bundle_path, "../PlugIns");
+	char *absolute_plugin_path = os_get_abs_path_ptr(bundle_path.array);
+
+	if (absolute_plugin_path != NULL) {
+		strcpy(import_path, absolute_plugin_path);
+		bfree(absolute_plugin_path);
+	}
+	dstr_free(&bundle_path);
 #else
 #else
-    strcpy(import_path, "./");
+	strcpy(import_path, "./");
 #endif
 #endif
 	dstr_printf(&tmp, startup_script_template, import_path, SCRIPT_DIR);
 	dstr_printf(&tmp, startup_script_template, import_path, SCRIPT_DIR);
 	startup_script = tmp.array;
 	startup_script = tmp.array;

+ 2 - 2
deps/obs-scripting/obs-scripting-python.c

@@ -1683,13 +1683,13 @@ bool obs_scripting_load_python(const char *python_path)
 	char *absolute_plugin_path = os_get_abs_path_ptr(plugin_path.array);
 	char *absolute_plugin_path = os_get_abs_path_ptr(plugin_path.array);
 	char *absolute_resource_path = os_get_abs_path_ptr(resource_path.array);
 	char *absolute_resource_path = os_get_abs_path_ptr(resource_path.array);
 
 
-	if(absolute_plugin_path != NULL) {
+	if (absolute_plugin_path != NULL) {
 		add_to_python_path(absolute_plugin_path);
 		add_to_python_path(absolute_plugin_path);
 		bfree(absolute_plugin_path);
 		bfree(absolute_plugin_path);
 	}
 	}
 	dstr_free(&plugin_path);
 	dstr_free(&plugin_path);
 
 
-	if(absolute_resource_path != NULL) {
+	if (absolute_resource_path != NULL) {
 		add_to_python_path(absolute_resource_path);
 		add_to_python_path(absolute_resource_path);
 		bfree(absolute_resource_path);
 		bfree(absolute_resource_path);
 	}
 	}