Skip to content

Commit

Permalink
refactor(): use ISO date and time for batmanak and rdr1
Browse files Browse the repository at this point in the history
  • Loading branch information
mqhaji authored and clshortfuse committed Dec 25, 2024
1 parent 9c4f397 commit 3c9c6db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions src/games/batmanak/addon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@

#include "../../mods/shader.hpp"
#include "../../mods/swapchain.hpp"
#include "../../utils/date.hpp"
#include "../../utils/settings.hpp"
#include "./shared.h"

Expand Down Expand Up @@ -78,8 +79,6 @@ renodx::mods::shader::CustomShaders custom_shaders = {
};

ShaderInjectData shader_injection;
const std::string build_date = __DATE__;
const std::string build_time = __TIME__;

renodx::utils::settings::Settings settings = {
new renodx::utils::settings::Setting{
Expand Down Expand Up @@ -386,7 +385,7 @@ renodx::utils::settings::Settings settings = {
},
new renodx::utils::settings::Setting{
.value_type = renodx::utils::settings::SettingValueType::TEXT,
.label = "This build was compiled on " + build_date + " at " + build_time + ".",
.label = std::string("Build: ") + renodx::utils::date::ISO_DATE_TIME,
.section = "About",
},
};
Expand Down
5 changes: 2 additions & 3 deletions src/games/rdr1/addon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <embed/0x56F79BAD.h> // PQ Encoding

#include "../../mods/shader.hpp"
#include "../../utils/date.hpp"
#include "../../utils/settings.hpp"
#include "./shared.h"

Expand All @@ -46,8 +47,6 @@ renodx::mods::shader::CustomShaders custom_shaders = {
};

ShaderInjectData shader_injection;
const std::string build_date = __DATE__;
const std::string build_time = __TIME__;

renodx::utils::settings::Settings settings = {
new renodx::utils::settings::Setting{
Expand Down Expand Up @@ -116,7 +115,7 @@ renodx::utils::settings::Settings settings = {
},
new renodx::utils::settings::Setting{
.value_type = renodx::utils::settings::SettingValueType::TEXT,
.label = "This build was compiled on " + build_date + " at " + build_time + ".",
.label = std::string("Build: ") + renodx::utils::date::ISO_DATE_TIME,
.section = "About",
},
};
Expand Down

0 comments on commit 3c9c6db

Please sign in to comment.