mirror of
https://github.com/Ragora/T2-BoL.git
synced 2026-01-19 19:14:45 +00:00
Fixed function call in basicDataStorage and added a missing function from the local version
This commit is contained in:
parent
37928a28e2
commit
ee56603062
|
|
@ -182,6 +182,19 @@ function getFileNameFromString(%string)
|
|||
return getSubStr(%string,getSubStrPos(%string, "/", getSubStrOccurances(%string, "/")-1)+1,strLen(%string));
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
function subWordCapitalize(%string)
|
||||
{
|
||||
%current = "";
|
||||
for (%i = 0; %i < getWordCount(%string); %i++)
|
||||
{
|
||||
%word = getWord(%string, %i);
|
||||
%word = strUpr(getSubStr(%word, 0, 1)) @ getSubStr(%word, 1, strLen(%word));
|
||||
%current = %current SPC %word;
|
||||
}
|
||||
return trim(%current);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------------
|
||||
function getFileExtensionFromString(%string)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@ function BasicDataParser::load(%this, %file)
|
|||
}
|
||||
// Note: I got lazy here, just don't have semicolons in your data entries..
|
||||
%semiPos = strStr(%currentLine,";");
|
||||
if (%semiPos == -1 || getSubStrOccurance(%currentLine,";") > 1)
|
||||
if (%semiPos == -1 || getSubStrOccurances(%currentLine,";") > 1)
|
||||
{
|
||||
error("basicDataStorage.cs: Unable to read entry for block" SPC %currentBlock.Name @ " in file" SPC %file @ "!");
|
||||
%isProcessingBlock = false;
|
||||
|
|
|
|||
|
|
@ -3,8 +3,7 @@
|
|||
// Shared Functions for T2Bol
|
||||
// Copyright (c) 2012 The DarkDragonDX
|
||||
//==============================================================================
|
||||
exec("scripts/modScripts/shared/Array.cs");
|
||||
exec("scripts/modScripts/shared/StringFunctions.cs");
|
||||
exec("scripts/modScripts/shared/fileProcessing.cs");
|
||||
exec("scripts/modScripts/shared/basicDataStorage.cs");
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue