----------------------------------------------------------------------------
| 4681 | } |
| 4682 | //---------------------------------------------------------------------------- |
| 4683 | static int getGameDebugBreakpointFileName(std::string &filepath) |
| 4684 | { |
| 4685 | int i,j; |
| 4686 | const char *romFile; |
| 4687 | |
| 4688 | romFile = getRomFile(); |
| 4689 | |
| 4690 | if ( romFile == NULL ) |
| 4691 | { |
| 4692 | return -1; |
| 4693 | } |
| 4694 | i=0; j = -1; |
| 4695 | while ( romFile[i] != 0 ) |
| 4696 | { |
| 4697 | |
| 4698 | if ( romFile[i] == '|' ) |
| 4699 | { |
| 4700 | filepath.push_back('.'); |
| 4701 | } |
| 4702 | else |
| 4703 | { |
| 4704 | if ( (romFile[i] == '/') || (romFile[i] == '\\') ) |
| 4705 | { |
| 4706 | j = -1; |
| 4707 | } |
| 4708 | else if ( romFile[i] == '.' ) |
| 4709 | { |
| 4710 | j = i; |
| 4711 | } |
| 4712 | filepath.push_back(romFile[i]); |
| 4713 | } |
| 4714 | i++; |
| 4715 | } |
| 4716 | if ( (j >= 0) && (static_cast<size_t>(j) < filepath.size()) ) |
| 4717 | { |
| 4718 | filepath.erase(j); |
| 4719 | } |
| 4720 | filepath.append(".fdb"); |
| 4721 | |
| 4722 | return 0; |
| 4723 | } |
| 4724 | //---------------------------------------------------------------------------- |
| 4725 | void saveGameDebugBreakpoints( bool force ) |
| 4726 | { |
no test coverage detected