| 631 | |
| 632 | |
| 633 | tString ImportRaw::MakeImportedFilename(tSystem::tFileType destType, const tString& rawFile) |
| 634 | { |
| 635 | tString dir = tSystem::tGetDir(rawFile); |
| 636 | tString base = tSystem::tGetFileBaseName(rawFile); |
| 637 | tString filename; |
| 638 | int attempt = 0; |
| 639 | do |
| 640 | { |
| 641 | tsPrintf |
| 642 | ( |
| 643 | filename, "%s%s_Imported_%02d.%s", |
| 644 | Viewer::ImagesDir.Chr(), |
| 645 | base.Chr(), |
| 646 | attempt, |
| 647 | tGetExtension(destType).Chr() |
| 648 | ); |
| 649 | attempt++; |
| 650 | } while (tSystem::tFileExists(filename) && (attempt < 100)); |
| 651 | |
| 652 | return filename; |
| 653 | } |
| 654 | |
| 655 | |
| 656 | bool ImportRaw::CreateImportedFile(tList<tFrame>& frames, const tString& filename) |
nothing calls this directly
no outgoing calls
no test coverage detected