Changeset 2358 for trunk/src/sys


Ignore:
Timestamp:
Feb 5, 2013, 3:08:45 AM (8 years ago)
Author:
sam
Message:

sys: create an empty File class.

Location:
trunk/src/sys
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/src/sys/file.cpp

    r2357 r2358  
    99//
    1010
    11 #if !defined __LOL_SYS_SYS_H__
    12 #define __LOL_SYS_SYS_H__
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1314
    14 #include <lol/sys/init.h>
    15 #include <lol/sys/thread.h>
    16 #include <lol/sys/timer.h>
     15#include "core.h"
    1716
    18 #endif // __LOL_SYS_SYS_H__
     17namespace lol
     18{
    1919
     20class FileData
     21{
     22    friend class File;
     23
     24};
     25
     26} /* namespace lol */
     27
  • trunk/src/sys/init.cpp

    r2306 r2358  
    9393
    9494    Log::Debug("binary dir: %s\n", &binarydir[0]);
    95     Log::Debug("root dir: %s\n", GetDataDir());
     95    Log::Debug("root dir: %s\n", &GetDataDir()[0]);
    9696}
    9797
     
    102102String data_dir = "";
    103103
    104 void SetDataDir(char const *dir)
     104void SetDataDir(String const &dir)
    105105{
    106106    data_dir = dir;
    107107}
    108108
    109 char const *GetDataDir()
     109String const &GetDataDir()
    110110{
    111     return &data_dir[0];
     111    return data_dir;
    112112}
    113 
    114113
    115114} /* namespace System */
Note: See TracChangeset for help on using the changeset viewer.