| 142 | } |
| 143 | |
| 144 | bool CheckFileExists(const char* filename) { |
| 145 | //This function simply checks to see if the given filename exists |
| 146 | if (!filename) return false; |
| 147 | fstream test; |
| 148 | test.open(filename, fstream::in); |
| 149 | |
| 150 | if (test.fail()) { |
| 151 | test.close(); |
| 152 | return false; |
| 153 | } else { |
| 154 | test.close(); |
| 155 | return true; |
| 156 | } |
| 157 | } |
| 158 | |
| 159 | void FCEU_TogglePPU(void) { |
| 160 | newppu ^= 1; |
no test coverage detected