Blockland Forums
Home
Help
Login
Register
Blockland Forums
»
Blockland Forums
»
Help
»
Escape sequences in musicList.cs
« previous
next »
Print
Pages: [
1
]
Author
Topic: Escape sequences in musicList.cs (Read 385 times)
Hammereditor5
April 14, 2014, 09:13:45 PM
Let's say I have .ogg files with these characters in them:
Parenthesis:
(
and
)
Curly braces:
{
and
}
Periods:
.
Apostrophes:
'
Dashes:
-
What characters do I use to "escape" them, since variable names cannot have these characters? For example,
-
is replaced by
DASH
.
Ad Bot
Advertisement
Zeblote
April 15, 2014, 09:25:53 AM
The file names can contain those characters. Just no spaces.
If you're wondering how it gets the name for the variable and datablock, call getSafeVariableName(%name). For example, "blah (12'2-)" turns into "blah_12APOS2DASH".
Print
Pages: [
1
]
« previous
next »
Blockland Forums
»
Blockland Forums
»
Help
»
Escape sequences in musicList.cs