----------------------------------------------------
| 725 | } |
| 726 | //---------------------------------------------------- |
| 727 | static int getDefaultCDLFile(std::string &filepath) |
| 728 | { |
| 729 | const char *romFile; |
| 730 | std::string dir, baseFile; |
| 731 | |
| 732 | filepath.clear(); |
| 733 | |
| 734 | romFile = getRomFile(); |
| 735 | |
| 736 | if (romFile == NULL) |
| 737 | { |
| 738 | return -1; |
| 739 | } |
| 740 | |
| 741 | parseFilepath(romFile, &dir, &baseFile); |
| 742 | |
| 743 | if (dir.size() == 0) |
| 744 | { |
| 745 | filepath.assign(baseFile); |
| 746 | filepath.append(".cdl"); |
| 747 | } |
| 748 | else |
| 749 | { |
| 750 | filepath.assign(dir); |
| 751 | filepath.append(baseFile); |
| 752 | filepath.append(".cdl"); |
| 753 | } |
| 754 | |
| 755 | //printf("%s\n", filepath ); |
| 756 | |
| 757 | return 0; |
| 758 | } |
| 759 | //---------------------------------------------------- |
| 760 | void FreeCDLog(void) |
| 761 | { |
no test coverage detected