bool LoadRAMAuto (bool silent) { char filepath[MAXPATHLEN]; char filepath2[MAXPATHLEN]; // look for Auto save file if(!MakeFilePath(filepath, FILE_RAM, romFilename, 0)) return false; if (LoadRAM(filepath, silent)) return true; if (!GCSettings.AppendAuto) return false; // look for file with no number or Auto appended if(!MakeFilePath(filepath2, FILE_RAM, romFilename, -1)) return false; if(LoadRAM(filepath2, silent)) { // rename this file - append Auto rename(filepath2, filepath); // rename file (to avoid duplicates) return true; } return false; }
//////// EXPORT LAYER //////// bool cy3_OpenDevice(const char* FileName) { if (DTParams.USBDevice == NULL) DTParams.USBDevice = new CCyFX3Device; if ( !ReviewDevices() ) return false; if (LoadRAM(FileName) == 1) { Sleep(2000); delete DTParams.USBDevice; DTParams.USBDevice = new CCyFX3Device; if ( !ReviewDevices() ) return false; } if (!GetStreamerDevice()) { cy3_CloseDevice(); return false; } return true; }