summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilip Gawin <filip.gawin@zoho.com>2020-09-29 17:16:02 +0200
committerSergeanur <s.anureev@yandex.ua>2020-09-30 01:18:55 +0200
commit6c59d97520c309a5fff6ed6da4499518281817ba (patch)
tree58e40634877b9a5e37e821fd7d19256cdd1ac44c
parentFix build (if -> ifdef) (diff)
downloadre3-6c59d97520c309a5fff6ed6da4499518281817ba.tar
re3-6c59d97520c309a5fff6ed6da4499518281817ba.tar.gz
re3-6c59d97520c309a5fff6ed6da4499518281817ba.tar.bz2
re3-6c59d97520c309a5fff6ed6da4499518281817ba.tar.lz
re3-6c59d97520c309a5fff6ed6da4499518281817ba.tar.xz
re3-6c59d97520c309a5fff6ed6da4499518281817ba.tar.zst
re3-6c59d97520c309a5fff6ed6da4499518281817ba.zip
-rw-r--r--src/core/timebars.cpp4
-rw-r--r--src/core/timebars.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/core/timebars.cpp b/src/core/timebars.cpp
index 884feffd..f7dedf0c 100644
--- a/src/core/timebars.cpp
+++ b/src/core/timebars.cpp
@@ -50,7 +50,7 @@ void tbInit()
#endif
}
-void tbStartTimer(int32 unk, char *name)
+void tbStartTimer(int32 unk, const char *name)
{
strcpy(TimerBar.Timers[TimerBar.count].name, name);
TimerBar.Timers[TimerBar.count].unk = unk;
@@ -58,7 +58,7 @@ void tbStartTimer(int32 unk, char *name)
TimerBar.count++;
}
-void tbEndTimer(char* name)
+void tbEndTimer(const char* name)
{
uint32 n = 1500;
for (uint32 i = 0; i < TimerBar.count; i++) {
diff --git a/src/core/timebars.h b/src/core/timebars.h
index 6d3b853e..1a5a0573 100644
--- a/src/core/timebars.h
+++ b/src/core/timebars.h
@@ -1,6 +1,6 @@
#pragma once
void tbInit();
-void tbStartTimer(int32, char*);
-void tbEndTimer(char*);
+void tbStartTimer(int32, const char*);
+void tbEndTimer(const char*);
void tbDisplay(); \ No newline at end of file