Fix for Linux
Former-commit-id: 8cddb6d53f658144f8659adbd7ecab67eb5a41a2
This commit is contained in:
parent
15e4fe1453
commit
3247435e08
|
|
@ -13,12 +13,13 @@
|
||||||
#include <Nazara/Core/Thread.hpp> // Thread::Sleep
|
#include <Nazara/Core/Thread.hpp> // Thread::Sleep
|
||||||
#include <Nazara/Math/Vector3.hpp>
|
#include <Nazara/Math/Vector3.hpp>
|
||||||
#include <Nazara/Utility/Keyboard.hpp>
|
#include <Nazara/Utility/Keyboard.hpp>
|
||||||
|
#include <Nazara/Utility/Utility.hpp>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
// NzKeyboard ne nécessite pas l'initialisation du module Utilitaire
|
// NzKeyboard nécessite l'initialisation du module Utilitaire
|
||||||
Nz::Initializer<Nz::Audio> audio;
|
Nz::Initializer<Nz::Audio, Nz::Utility> audio;
|
||||||
if (!audio)
|
if (!audio)
|
||||||
{
|
{
|
||||||
std::cout << "Failed to initialize audio module" << std::endl;
|
std::cout << "Failed to initialize audio module" << std::endl;
|
||||||
|
|
|
||||||
|
|
@ -70,9 +70,8 @@ namespace Nz
|
||||||
|
|
||||||
bool DirectoryImpl::Create(const String& dirPath)
|
bool DirectoryImpl::Create(const String& dirPath)
|
||||||
{
|
{
|
||||||
mode_t permissions; // TODO: check permissions
|
mode_t permissions = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH; // TODO: check permissions, no right to execute but read and write for every others.
|
||||||
|
return mkdir(dirPath.GetConstBuffer(), permissions) != -1;
|
||||||
return mkdir(dirPath.GetConstBuffer(), permissions) != -1;;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool DirectoryImpl::Exists(const String& dirPath)
|
bool DirectoryImpl::Exists(const String& dirPath)
|
||||||
|
|
|
||||||
|
|
@ -136,7 +136,7 @@ namespace Nz
|
||||||
OpenEWMHConnection(sharedConnection);
|
OpenEWMHConnection(sharedConnection);
|
||||||
}
|
}
|
||||||
|
|
||||||
NazaraNotice("Initialized: Utility module");
|
NazaraNotice("Initialized: Display module");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ namespace Nz
|
||||||
{
|
{
|
||||||
class String;
|
class String;
|
||||||
|
|
||||||
class X11
|
class NAZARA_UTILITY_API X11
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
X11() = delete;
|
X11() = delete;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue