deps/obs-scripting: Fix code formatting
Somehow this was incorrectly formatted at some point.
This commit is contained in:
parent
692ca7efce
commit
601187d0f6
26
deps/obs-scripting/obs-scripting-lua.c
vendored
26
deps/obs-scripting/obs-scripting-lua.c
vendored
@ -1327,22 +1327,22 @@ void obs_lua_load(void)
|
||||
#define PATH_MAX MAX_PATH
|
||||
#endif
|
||||
|
||||
char import_path[PATH_MAX];
|
||||
char import_path[PATH_MAX];
|
||||
|
||||
#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
|
||||
strcpy(import_path, "./");
|
||||
strcpy(import_path, "./");
|
||||
#endif
|
||||
dstr_printf(&tmp, startup_script_template, import_path, SCRIPT_DIR);
|
||||
startup_script = tmp.array;
|
||||
|
4
deps/obs-scripting/obs-scripting-python.c
vendored
4
deps/obs-scripting/obs-scripting-python.c
vendored
@ -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_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);
|
||||
bfree(absolute_plugin_path);
|
||||
}
|
||||
dstr_free(&plugin_path);
|
||||
|
||||
if(absolute_resource_path != NULL) {
|
||||
if (absolute_resource_path != NULL) {
|
||||
add_to_python_path(absolute_resource_path);
|
||||
bfree(absolute_resource_path);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user