Skip to content

Commit

Permalink
fix FileSystem
Browse files Browse the repository at this point in the history
  • Loading branch information
irov committed Nov 4, 2024
1 parent fc29582 commit e250cb5
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 14 deletions.
4 changes: 4 additions & 0 deletions src/Bootstrapper/Bootstrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2160,6 +2160,8 @@ namespace Mengine
->unloadPlugins();
}

SERVICE_FINALIZE( FileSystem );

SERVICE_FINALIZE( LoaderService );
SERVICE_FINALIZE( TimerService );
SERVICE_FINALIZE( TimelineService );
Expand Down Expand Up @@ -2264,6 +2266,8 @@ namespace Mengine
SERVICE_DESTROY( HttpSystem );
#endif

SERVICE_DESTROY( FileSystem );

SERVICE_DESTROY( HttpService );
SERVICE_DESTROY( SceneService );
SERVICE_DESTROY( GameService );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ namespace Mengine
const FilePath & inputFolderPath = inputFileGroup->getFolderPath();
const FilePath & outputFolderPath = outputFileGroup->getFolderPath();

String full_input;
full_input.append( inputFolderPath.c_str() );
full_input.append( inputFilePath.c_str() );
PathString full_input;
full_input.append( inputFolderPath );
full_input.append( inputFilePath );

String full_output;
full_output.append( outputFolderPath.c_str() );
full_output.append( outputFilePath.c_str() );
PathString full_output;
full_output.append( outputFolderPath );
full_output.append( outputFilePath );

String quality = Helper::getParam( m_options.params, STRINGIZE_STRING_LOCAL( "quality" ), "" );
String resize = Helper::getParam( m_options.params, STRINGIZE_STRING_LOCAL( "resize" ), "None" );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ namespace Mengine
const FilePath & inputFolderPath = inputFileGroup->getFolderPath();
const FilePath & outputFolderPath = outputFileGroup->getFolderPath();

String full_input;
full_input.append( inputFolderPath.c_str() );
full_input.append( inputFilePath.c_str() );
PathString full_input;
full_input.append( inputFolderPath );
full_input.append( inputFilePath );

String full_output;
full_output.append( outputFolderPath.c_str() );
full_output.append( outputFilePath.c_str() );
PathString full_output;
full_output.append( outputFolderPath );
full_output.append( outputFilePath );

String quality = Helper::getParam( m_options.params, STRINGIZE_STRING_LOCAL( "quality" ), "" );

Expand Down
2 changes: 1 addition & 1 deletion src/Plugins/ZipPlugin/FileGroupZip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ namespace Mengine
MENGINE_UNUSED( _lambda );

PathString mask;
mask.append( _filePath.c_str(), _filePath.size() );
mask.append( _filePath );
mask.append( _mask );

for( const FilePath & path : m_indexes )
Expand Down
2 changes: 1 addition & 1 deletion src/Services/AccountService/AccountService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ namespace Mengine
AccountInterfacePtr AccountService::newAccount_( const ConstString & _accountId, const DocumentInterfacePtr & _doc )
{
PathString accountString;
accountString.append( _accountId );
accountString.append( _accountId.c_str(), _accountId.size() );
accountString.append( MENGINE_PATH_DELIM );

FilePath accountPath = Helper::stringizeFilePath( accountString );
Expand Down

0 comments on commit e250cb5

Please sign in to comment.