diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2007-06-04 01:35:20 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2007-06-04 01:35:20 +0000 |
| commit | 3595239f08f2bc1df32ef22ed6de9bde10ca3384 (patch) | |
| tree | d9962c84e3a1f19e2da422f9bb49f65c21ada9f6 /pokemod/Path.cpp | |
| parent | c9afda3ab74614fb36986f96b7972c082f275eca (diff) | |
| download | sigen-3595239f08f2bc1df32ef22ed6de9bde10ca3384.tar.gz sigen-3595239f08f2bc1df32ef22ed6de9bde10ca3384.tar.xz sigen-3595239f08f2bc1df32ef22ed6de9bde10ca3384.zip | |
Style cleanup, minor Matrix fixes, duplication validations, Pokemod methods
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@19 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemod/Path.cpp')
| -rw-r--r-- | pokemod/Path.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/pokemod/Path.cpp b/pokemod/Path.cpp index c8945e28..a8fa5ebb 100644 --- a/pokemod/Path.cpp +++ b/pokemod/Path.cpp @@ -50,7 +50,6 @@ bool PokeGen::PokeMod::Path::DoesExist() {
if (*this == "")
return false;
- // Try to open the file
std::ifstream test(c_str(), std::ios::in);
test.close();
if (test.fail())
@@ -65,7 +64,6 @@ bool PokeGen::PokeMod::Path::HasExtension(const String &ext) String fileExt(substr(pos + 1));
if ((pos == npos) || (pos + 1 == length()) || (fileExt.length() != ext.length()))
return false;
- // Loop while the two are equal
for (unsigned i = 0; ret && (i < ext.length()); ++i)
ret = (tolower(ext[i]) == tolower(fileExt[i]));
return ret;
|
