Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Letwory <nathan@letworyinteractive.com>2005-05-20 16:18:11 +0400
committerNathan Letwory <nathan@letworyinteractive.com>2005-05-20 16:18:11 +0400
commit1071d4a16e08bda7a6bfbcb02e278510b3cd1e44 (patch)
tree9e23634d8e5a829502e2a9f9dd900a1e6a6fda82 /source/blender/blenlib/BLI_blenlib.h
parentf8ae055f4b0f62e55866cf89e8ea40d0a95141c3 (diff)
This commit fixes two related issues:
1: * when a blendfile gets loaded, paths are corrected with OS specific slashes (see blender.c) * made available BLI_char_switch(char *string, char from, char to) * made available BLI_clean(char *string);. This function should be called whenever you're doing path stuff, so paths are correctly saved, and thus avoiding other path functions stopping to work 2: * relative paths work now in sequencer too (due to slash mess that didn't work all too well).
Diffstat (limited to 'source/blender/blenlib/BLI_blenlib.h')
-rw-r--r--source/blender/blenlib/BLI_blenlib.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_blenlib.h b/source/blender/blenlib/BLI_blenlib.h
index 50e3ba4e72d..167050d160a 100644
--- a/source/blender/blenlib/BLI_blenlib.h
+++ b/source/blender/blenlib/BLI_blenlib.h
@@ -128,6 +128,22 @@ int BLI_convertstringcode(char *path, char *basepath, int framenum);
void BLI_makestringcode(char *fromfile, char *str);
/**
+ * Change every @a from in @a string into @a to. The
+ * result will be in @a string
+ *
+ * @a string The string to work on
+ * @a from The character to replace
+ * @a to The character to replace with
+ */
+void BLI_char_switch(char *string, char from, char to);
+
+ /**
+ * Makes sure @a path has platform-specific slashes.
+ *
+ * @a path The path to 'clean'
+ */
+void BLI_clean(char *path);
+ /**
* Duplicates the cstring @a str into a newly mallocN'd
* string and returns it.
*