Exemple #1
0
bool gIsProject(const char *path)
{
	/** FIXME - checks too weak */

	if (gGetExt(path) == "gprj" && gDirExists(path))
		return 1;
	return 0;
}
Exemple #2
0
void Wave::updateName(const char *n) {
	std::string ext = gGetExt(pathfile.c_str());
	name      = gStripExt(gBasename(n).c_str());
	pathfile  = gDirname(pathfile.c_str()) + gGetSlash() + name + "." + ext;
	isLogical = true;

	/* a wave with updated name must become logical, since the underlying
	 * file does not exist yet. */
}
Exemple #3
0
void Wave::updateName(const char *n)
{
	std::string ext = gGetExt(pathfile.c_str());
	name      = gStripExt(gBasename(n).c_str());
	pathfile  = gDirname(pathfile.c_str()) + gGetSlash() + name + "." + ext;
	isLogical = true;

	
}
Exemple #4
0
std::string Wave::extension() const
{
	return gGetExt(pathfile.c_str());
}
Exemple #5
0
bool gIsPatch(const char *path)
{
	if (gGetExt(path) == "gptc")
		return 1;
	return 0;
}