mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Attempt at auto update SVN revision in title bar - let's see if it works for everyone, sorry Sonic, you'll have to find a linux solution (see svnrev_template.h). Also adds some smash bros cheats.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@34 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -11,6 +11,13 @@ bool File::Exists(const std::string &filename)
|
||||
#endif
|
||||
}
|
||||
|
||||
bool File::IsDirectory(const std::string &filename) {
|
||||
#ifdef _WIN32
|
||||
return (GetFileAttributes(filename.c_str()) & FILE_ATTRIBUTE_DIRECTORY) != 0;
|
||||
#else
|
||||
return false; //TODO
|
||||
#endif
|
||||
}
|
||||
|
||||
std::string SanitizePath(const std::string &filename) {
|
||||
std::string copy = filename;
|
||||
|
@ -9,6 +9,7 @@ public:
|
||||
static bool Exists(const std::string &filename);
|
||||
static void Launch(const std::string &filename);
|
||||
static void Explore(const std::string &path);
|
||||
static bool IsDirectory(const std::string &filename);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
2
Source/Core/Common/Src/svnrev_template.h
Normal file
2
Source/Core/Common/Src/svnrev_template.h
Normal file
@ -0,0 +1,2 @@
|
||||
#define SVN_REV $WCREV$
|
||||
#define SVN_REV_STR "$WCREV$"
|
Reference in New Issue
Block a user