mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
VCMIDirs update #5
- Minor fixes - string based paths -> boost::filesystem::path paths (I hope it's final) - New user data path on windows - New moving dir method on windows.
This commit is contained in:
@@ -25,7 +25,7 @@ public:
|
||||
*
|
||||
* @see CFileInputStream::open
|
||||
*/
|
||||
CFileInputStream(const std::string & file, si64 start=0, si64 size=0);
|
||||
CFileInputStream(const boost::filesystem::path & file, si64 start = 0, si64 size = 0);
|
||||
|
||||
/**
|
||||
* C-tor. Opens the specified file.
|
||||
@@ -88,11 +88,11 @@ private:
|
||||
*
|
||||
* @throws std::runtime_error if file wasn't found
|
||||
*/
|
||||
void open(const std::string & file, si64 start, si64 size);
|
||||
void open(const boost::filesystem::path & file, si64 start, si64 size);
|
||||
|
||||
si64 dataStart;
|
||||
si64 dataSize;
|
||||
|
||||
/** Native c++ input file stream object. */
|
||||
std::ifstream fileStream;
|
||||
boost::filesystem::ifstream fileStream;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user