| 10834 | |
| 10835 | |
| 10836 | VarSizeType Script::GetLoopFileName(char *aBuf) |
| 10837 | { |
| 10838 | char *str = ""; // Set default. |
| 10839 | if (mLoopFile) |
| 10840 | { |
| 10841 | // The loop handler already prepended the script's directory in here for us: |
| 10842 | if (str = strrchr(mLoopFile->cFileName, '\\')) |
| 10843 | ++str; |
| 10844 | else // No backslash, so just make it the entire file name. |
| 10845 | str = mLoopFile->cFileName; |
| 10846 | } |
| 10847 | if (aBuf) |
| 10848 | strcpy(aBuf, str); |
| 10849 | return (VarSizeType)strlen(str); |
| 10850 | } |
| 10851 | |
| 10852 | VarSizeType Script::GetLoopFileShortName(char *aBuf) |
| 10853 | { |