| 152 | } |
| 153 | |
| 154 | bool cOriginalMap::saveCF1Map(const std::string& pFilename) { |
| 155 | |
| 156 | std::ofstream outfile(pFilename, std::ofstream::binary); |
| 157 | |
| 158 | // The original game stores the maps in big endian |
| 159 | tool_EndianSwap(mData->data() + 0x60, mData->size() - 0x60); |
| 160 | outfile.write((const char*)mData->data(), mData->size()); |
| 161 | outfile.close(); |
| 162 | |
| 163 | // Now we can swap it back to little endian |
| 164 | tool_EndianSwap(mData->data() + 0x60, mData->size() - 0x60); |
| 165 | |
| 166 | return true; |
| 167 | } |
| 168 | |
| 169 | bool cOriginalMap::saveCF1Sprites(std::string pFilename) { |
| 170 |
nothing calls this directly
no test coverage detected