Skip to content

Commit

Permalink
improve NOTIFICATOR_DEBUG_OPEN_FILE
Browse files Browse the repository at this point in the history
improve NOTIFICATOR_DEBUG_CLOSE_FILE
  • Loading branch information
irov committed Nov 3, 2024
1 parent aad8947 commit fc29582
Show file tree
Hide file tree
Showing 43 changed files with 142 additions and 2,429 deletions.
30 changes: 17 additions & 13 deletions src/Engine/Application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1478,7 +1478,7 @@ namespace Mengine
}
}
//////////////////////////////////////////////////////////////////////////
void Application::notifyDebugOpenFile_( const Char * _folder, const Char * _filePath, bool _streaming )
void Application::notifyDebugOpenFile_( const FilePath & _folder, const FilePath & _filePath, bool _read, bool _streaming )
{
bool isMainThread = THREAD_SERVICE()
->isMainThread();
Expand All @@ -1487,16 +1487,18 @@ namespace Mengine
{
if( _streaming == false )
{
LOGGER_VERBOSE_LEVEL( "debug", LM_MESSAGE_RELEASE, LFILTER_NONE, LCOLOR_GREEN, nullptr, 0, LFLAG_SHORT )("open %s%s"
, _folder
, _filePath
LOGGER_VERBOSE_LEVEL( "debug", LM_MESSAGE_RELEASE, LFILTER_NONE, LCOLOR_GREEN, nullptr, 0, LFLAG_SHORT )("open %s %s%s"
, _read == true ? "read" : "write"
, _folder.c_str()
, _filePath.c_str()
);
}
else
{
LOGGER_VERBOSE_LEVEL( "debug", LM_MESSAGE_RELEASE, LFILTER_NONE, LCOLOR_GREEN, nullptr, 0, LFLAG_SHORT )("streaming %s%s"
, _folder
, _filePath
LOGGER_VERBOSE_LEVEL( "debug", LM_MESSAGE_RELEASE, LFILTER_NONE, LCOLOR_GREEN, nullptr, 0, LFLAG_SHORT )("streaming %s %s%s"
, _read == true ? "read" : "write"
, _folder.c_str()
, _filePath.c_str()
);
}
}
Expand All @@ -1507,18 +1509,20 @@ namespace Mengine

if( _streaming == false )
{
LOGGER_VERBOSE_LEVEL( "debug", LM_MESSAGE_RELEASE, LFILTER_NONE, LCOLOR_GREEN, nullptr, 0, LFLAG_SHORT )("open [multithread:%" MENGINE_PRIu64 "] open %s%s"
LOGGER_VERBOSE_LEVEL( "debug", LM_MESSAGE_RELEASE, LFILTER_NONE, LCOLOR_GREEN, nullptr, 0, LFLAG_SHORT )("open [multithread:%" MENGINE_PRIu64 "] open %s %s%s"
, tid
, _folder
, _filePath
, _read == true ? "read" : "write"
, _folder.c_str()
, _filePath.c_str()
);
}
else
{
LOGGER_VERBOSE_LEVEL( "debug", LM_MESSAGE_RELEASE, LFILTER_NONE, LCOLOR_GREEN, nullptr, 0, LFLAG_SHORT )("streaming [multithread:%" MENGINE_PRIu64 "] open %s%s"
LOGGER_VERBOSE_LEVEL( "debug", LM_MESSAGE_RELEASE, LFILTER_NONE, LCOLOR_GREEN, nullptr, 0, LFLAG_SHORT )("streaming [multithread:%" MENGINE_PRIu64 "] open %s %s%s"
, tid
, _folder
, _filePath
, _read == true ? "read" : "write"
, _folder.c_str()
, _filePath.c_str()
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/Engine/Application.h
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ namespace Mengine

protected:
void updateDebugOpenFile_();
void notifyDebugOpenFile_( const Char * _folder, const Char * _filePath, bool _streaming );
void notifyDebugOpenFile_( const FilePath & _folder, const FilePath & _filePath, bool _read, bool _streaming );

protected:
void updateDebugResourceCompile_();
Expand Down
5 changes: 3 additions & 2 deletions src/Interface/NotificatorInterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include "Kernel/Tuple.h"
#include "Kernel/String.h"
#include "Kernel/ConstString.h"
#include "Kernel/FilePath.h"
#include "Kernel/Tags.h"
#include "Kernel/Factorable.h"
#include "Kernel/Resolution.h"
Expand Down Expand Up @@ -57,8 +58,8 @@ namespace Mengine
template<> struct Notificator<NAME> { typedef Tuple<__VA_ARGS__> args_type; static const Char * getName() { return #NAME; } }
//////////////////////////////////////////////////////////////////////////
MENGINE_NOTIFICATOR_DECLARE_BEGIN();
MENGINE_NOTIFICATOR_DECLARE( NOTIFICATOR_DEBUG_OPEN_FILE, const Char *, const Char *, bool );
MENGINE_NOTIFICATOR_DECLARE( NOTIFICATOR_DEBUG_CLOSE_FILE, const Char *, const Char *, bool );
MENGINE_NOTIFICATOR_DECLARE( NOTIFICATOR_DEBUG_OPEN_FILE, const FilePath &, const FilePath &, bool, bool );
MENGINE_NOTIFICATOR_DECLARE( NOTIFICATOR_DEBUG_CLOSE_FILE, const FilePath &, const FilePath &, bool, bool );
MENGINE_NOTIFICATOR_DECLARE( NOTIFICATOR_ASSERTION, const Char *, EAssertionLevel, const Char *, const Char *, int32_t, const Char * );
MENGINE_NOTIFICATOR_DECLARE( NOTIFICATOR_ABORT, const Char * );
MENGINE_NOTIFICATOR_DECLARE( NOTIFICATOR_CRASH, const Char * );
Expand Down
27 changes: 0 additions & 27 deletions src/Plugins/Win32FileGroupPlugin/CMakeLists.txt

This file was deleted.

128 changes: 0 additions & 128 deletions src/Plugins/Win32FileGroupPlugin/Win32ConcatenateFileHelper.cpp

This file was deleted.

15 changes: 0 additions & 15 deletions src/Plugins/Win32FileGroupPlugin/Win32ConcatenateFileHelper.h

This file was deleted.

Loading

0 comments on commit fc29582

Please sign in to comment.