mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-31 02:26:29 +03:00
Changed std::vector for SafeDataPointer for internal FileSystem FileGet.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE QtCreatorProject>
|
||||
<!-- Written by Qt Creator 2.6.1, 2012-12-28T15:26:48. -->
|
||||
<!-- Written by Qt Creator 2.6.1, 2013-01-01T00:14:50. -->
|
||||
<qtcreator>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.ActiveTarget</variable>
|
||||
|
||||
@@ -270,11 +270,11 @@ bool cPak::AddFile( const std::string& path, const std::string& inpack ) {
|
||||
if ( path.size() > 56 )
|
||||
return false;
|
||||
|
||||
std::vector<Uint8> file;
|
||||
SafeDataPointer file;
|
||||
|
||||
FileSystem::FileGet( path, file );
|
||||
|
||||
return AddFile( file, inpack );
|
||||
return AddFile( file.Data, file.DataSize, inpack );
|
||||
}
|
||||
|
||||
bool cPak::AddFiles( std::map<std::string, std::string> paths ) {
|
||||
|
||||
@@ -69,11 +69,11 @@ bool cZip::Close() {
|
||||
}
|
||||
|
||||
bool cZip::AddFile( const std::string& path, const std::string& inpack ) {
|
||||
std::vector<Uint8> file;
|
||||
SafeDataPointer file;
|
||||
|
||||
FileSystem::FileGet( path, file );
|
||||
|
||||
return AddFile( file, inpack );
|
||||
return AddFile( file.Data, file.DataSize, inpack );
|
||||
}
|
||||
|
||||
bool cZip::AddFile( const Uint8 * data, const Uint32& dataSize, const std::string& inpack ) {
|
||||
|
||||
Reference in New Issue
Block a user