diff --git a/driver.c b/driver.c index f9c4dbd9b2..1dca4153b2 100644 --- a/driver.c +++ b/driver.c @@ -23,6 +23,8 @@ #include "gfx/video_monitor.h" #include "audio/audio_monitor.h" +#include "msg_hash.h" + #ifdef HAVE_MENU #include "menu/menu.h" #endif @@ -325,10 +327,8 @@ bool driver_update_system_av_info(const struct retro_system_av_info *info) * Take the easiest route out and just restart the recording. */ if (driver->recording_data) { - static const char *msg = "Restarting recording due to driver reinit."; - - rarch_main_msg_queue_push(msg, 2, 180, false); - RARCH_WARN("%s\n", msg); + rarch_main_msg_queue_push_new( + MSG_RESTARTING_RECORDING_DUE_TO_DRIVER_REINIT, 2, 180, false); event_command(EVENT_CMD_RECORD_DEINIT); event_command(EVENT_CMD_RECORD_INIT); } diff --git a/intl/msg_hash_us.c b/intl/msg_hash_us.c new file mode 100644 index 0000000000..4640a74c2a --- /dev/null +++ b/intl/msg_hash_us.c @@ -0,0 +1,40 @@ +/* RetroArch - A frontend for libretro. + * Copyright (C) 2011-2015 - Daniel De Matteis + * + * + * RetroArch is free software: you can redistribute it and/or modify it under the terms + * of the GNU General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with RetroArch. + * If not, see . + */ + +#include "../msg_hash.h" + +const char *msg_hash_to_str_us(uint32_t hash) +{ + switch (hash) + { + case MSG_RESTARTING_RECORDING_DUE_TO_DRIVER_REINIT: + return "Restarting recording due to driver reinit."; + case MSG_FAILED_TO_START_MOVIE_RECORD: + return "Failed to start movie record."; + case MSG_SLOW_MOTION: + return "Slow motion."; + case MSG_SLOW_MOTION_REWIND: + return "Slow motion rewind."; + case MSG_REWINDING: + return "Rewinding."; + case MSG_REWIND_REACHED_END: + return "Reached end of rewind buffer."; + default: + break; + } + + return "null"; +}