GameKit
0.0.1a
C++ gamedev tools
source
core
Filesystem.cpp
Go to the documentation of this file.
1
/*
2
* =====================================================================================
3
*
4
* Filename: Filesystem.cpp
5
*
6
* Description:
7
*
8
* Created: 22/02/2015 16:27:02
9
*
10
* Author: Quentin Bazin, <quent42340@gmail.com>
11
*
12
* =====================================================================================
13
*/
14
#include <sys/types.h>
15
#include <sys/stat.h>
16
17
#include "
gk/core/Filesystem.hpp
"
18
19
namespace
gk
{
20
21
bool
Filesystem::fileExists
(
const
std::string &filename) {
22
struct
stat info;
23
24
return
!stat(filename.c_str(), &info);
25
}
26
27
}
// namespace gk
28
gk
Definition:
AudioPlayer.hpp:21
gk::Filesystem::fileExists
static bool fileExists(const std::string &filename)
Definition:
Filesystem.cpp:21
Filesystem.hpp
Generated by
1.8.12