Skip to content

Commit

Permalink
Add startup logging
Browse files Browse the repository at this point in the history
  • Loading branch information
psiberx committed Aug 6, 2023
1 parent ac86029 commit 2483296
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
6 changes: 6 additions & 0 deletions src/App/Application.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "Application.hpp"
#include "App/Environment.hpp"
#include "App/Project.hpp"
#include "App/Stats/StatService.hpp"
#include "App/Tweaks/TweakService.hpp"
#include "Core/Foundation/RuntimeProvider.hpp"
Expand All @@ -18,3 +19,8 @@ App::Application::Application(HMODULE aHandle, const RED4ext::Sdk*)
Register<App::TweakService>(Env::GameDir(), Env::TweaksDir());
Register<App::StatService>();
}

void App::Application::OnStarting()
{
LogInfo("{} {} is starting...", Project::Name, Project::Version.to_string());
}
5 changes: 3 additions & 2 deletions src/App/Application.hpp
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
#pragma once

#include "Core/Foundation/Application.hpp"
#include "Core/Hooking/HookingAgent.hpp"
#include "Core/Logging/LoggingAgent.hpp"

namespace App
{
class Application
: public Core::Application
, public Core::LoggingAgent
, public Core::HookingAgent
{
public:
explicit Application(HMODULE aHandle, const RED4ext::Sdk* aSdk = nullptr);

protected:
void OnStarting() override;
};
}

0 comments on commit 2483296

Please sign in to comment.