From 3f2e4c03f37f85ffb8214d83e928dedd73390d9f Mon Sep 17 00:00:00 2001 From: Dylan G <1565516+Helloman892@users.noreply.github.com> Date: Thu, 17 Jun 2021 01:37:33 +0100 Subject: [PATCH] Constness --- include/draw.h | 2 +- source/draw.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/draw.h b/include/draw.h index e60c9f9..bbbcf1e 100644 --- a/include/draw.h +++ b/include/draw.h @@ -160,7 +160,7 @@ void start_frame(void); void end_frame(void); void set_screen(C3D_RenderTarget * screen); -void throw_error(char* error, ErrorLevel level); +void throw_error(const char* error, ErrorLevel level); bool draw_confirm(const char* conf_msg, Entry_List_s* list); void draw_preview(C2D_Image preview, int preview_offset); diff --git a/source/draw.c b/source/draw.c index 728ea56..53803ce 100644 --- a/source/draw.c +++ b/source/draw.c @@ -275,7 +275,7 @@ void draw_base_interface(void) set_screen(top); } -void throw_error(char* error, ErrorLevel level) +void throw_error(const char* error, ErrorLevel level) { Text bottom_text = TEXT_AMOUNT; Color text_color = COLOR_WHITE;