bool ParticleEditor::OpenSystem(char *oFilePathName, char *oFileName) { FILE_FORM_FILTER filter(GS_L("Particle effect file (*.par)"), GS_L("par")); std::string initDir = GetCurrentProjectPath(true) + "effects/"; Platform::FixSlashes(initDir); return OpenForm(filter, initDir.c_str(), oFilePathName, oFileName); }
bool ParticleEditor::OpenParticleBMP(char *oFilePathName, char *oFileName) { FILE_FORM_FILTER filter(GS_L("Supported image files"), GS_L("png,bmp,tga,jpg,jpeg,dds")); std::string initDir = GetCurrentProjectPath(true) + "particles/"; Platform::FixSlashes(initDir); return OpenForm(filter, initDir.c_str(), oFilePathName, oFileName); }
bool ParticleEditor::OpenSoundFX(char *oFilePathName, char *oFileName) { FILE_FORM_FILTER filter(GS_L("Supported sound files"), GS_L("ogg,wav,mp3")); std::string initDir = GetCurrentProjectPath(true) + "soundfx/"; Platform::FixSlashes(initDir); return OpenForm(filter, initDir.c_str(), oFilePathName, oFileName); }
bool ProjectManager::Open() { FILE_FORM_FILTER filter(GS_L("Ethanon Project files (*.ethproj)"), GS_L("ethproj")); char path[___OUTPUT_LENGTH], file[___OUTPUT_LENGTH]; std::string sLastDir = ReadLastDir(); if (OpenForm(filter, sLastDir.c_str(), path, file)) { RequestProjectOpen(path); } return true; }
bool ProjectManager::Open() { char filter[] = "Ethanon Project files (*.ethproj)\0*.ethproj\0\0"; char path[512], file[512]; string sLastDir = ReadLastDir(); if (OpenForm(filter, "", path, file, sLastDir.c_str())) { SetCurrentProject(path); SetCurrentFile(path); SaveLastDir(ETHGlobal::GetPathName(path, true).c_str()); } return true; }