Skip to content

Commit

Permalink
Update stdlocalfilesystem to match win32localfilesystem
Browse files Browse the repository at this point in the history
  • Loading branch information
feliwir committed Dec 12, 2022
1 parent b86c0e3 commit 9ebbf12
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/game/common/system/archivefile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*/
#include "archivefile.h"
#include "file.h"
#include "profiler.h"
bool Search_String_Matches(Utf8String string, Utf8String search);

const ArchivedFileInfo *ArchiveFile::Get_Archived_File_Info(Utf8String const &filename) const
Expand Down Expand Up @@ -88,6 +89,10 @@ void ArchiveFile::Get_File_List_In_Directory(Utf8String const &subdir,
std::set<Utf8String, rts::less_than_nocase<Utf8String>> &filelist,
bool search_subdir) const
{
#ifdef USE_PROFILER
PROFILER_BLOCK_SCOPED
PROFILER_BLOCK_TEXT(dirpath.Str(), dirpath.Get_Length())
#endif
Utf8String path = dirpath;
path.To_Lower();
Utf8String token;
Expand Down
5 changes: 5 additions & 0 deletions src/platform/stdlocalfilesystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* LICENSE
*/
#include "stdlocalfilesystem.h"
#include "profiler.h"
#include "standardfile.h"
#include "win32localfile.h"

Expand Down Expand Up @@ -77,6 +78,10 @@ void StdLocalFileSystem::Get_File_List_In_Directory(Utf8String const &subdir,
std::set<Utf8String, rts::less_than_nocase<Utf8String>> &filelist,
bool search_subdirs) const
{
#ifdef USE_PROFILER
PROFILER_BLOCK_SCOPED
PROFILER_BLOCK_TEXT(subdir.Str(), subdir.Get_Length())
#endif
Utf8String search_path = dirpath;
search_path += subdir;

Expand Down

0 comments on commit 9ebbf12

Please sign in to comment.