| 655 | } |
| 656 | |
| 657 | char* generateNLFilenameForAddress(uint16 address) |
| 658 | { |
| 659 | if (address < 0x8000) |
| 660 | { |
| 661 | // The NL file for the RAM addresses has the name nesrom.nes.ram.nl |
| 662 | strcpy(NLfilename, mass_replace(LoadedRomFName, "|", ".").c_str()); |
| 663 | strcat(NLfilename, ".ram.nl"); |
| 664 | } else |
| 665 | { |
| 666 | int bank = getBank(address); |
| 667 | #ifdef DW3_NL_0F_1F_HACK |
| 668 | if(bank == 0x0F) |
| 669 | bank = 0x1F; |
| 670 | #endif |
| 671 | sprintf(NLfilename, "%s.%X.nl", mass_replace(LoadedRomFName, "|", ".").c_str(), bank); |
| 672 | } |
| 673 | return NLfilename; |
| 674 | } |
| 675 | static int getBankIndexForAddress(uint16 address) |
| 676 | { |
| 677 | int bank = -1; |
no test coverage detected