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

sys: create an empty File class.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.