mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-27 01:55:52 -05:00
comment support for CoolUtil.cooltextFile()
This commit is contained in:
parent
6add378535
commit
39d93616d2
1 changed files with 10 additions and 1 deletions
|
@ -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