mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-11-25 08:13:45 +00:00
comment support for CoolUtil.cooltextFile()
This commit is contained in:
parent
6add378535
commit
39d93616d2
|
@ -24,7 +24,16 @@ class CoolUtil
|
|||
|
||||
public static function coolTextFile(path:String):Array<String>
|
||||
{
|
||||
var daList:Array<String> = Assets.getText(path).trim().split('\n');
|
||||
var daList:Array<String> = [];
|
||||
|
||||
var swagArray:Array<String> = Assets.getText(path).trim().split('\n');
|
||||
|
||||
for (item in swagArray)
|
||||
{
|
||||
// comment support in the quick lil text formats??? using //
|
||||
if (!item.trim().startsWith('//'))
|
||||
daList.push(item);
|
||||
}
|
||||
|
||||
for (i in 0...daList.length)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue