Add another entry to msg_hash_us.c

This commit is contained in:
twinaphex 2015-07-01 02:08:44 +02:00
parent 6cc06b6c17
commit 216da45b1e
2 changed files with 44 additions and 4 deletions

View File

@ -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);
}

40
intl/msg_hash_us.c Normal file
View File

@ -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 <http://www.gnu.org/licenses/>.
*/
#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";
}