diff options
| author | notaz | 2012-11-11 21:18:41 +0200 | 
|---|---|---|
| committer | notaz | 2012-11-11 22:09:19 +0200 | 
| commit | dde7da71ec95f2d83a9427bd381448438aa9201c (patch) | |
| tree | fddb3cbe985c45abf177ed2d1a8a873778a97ed4 /frontend/main.c | |
| parent | 841ba5ee5bfeb32bb1194c423a047f98825d26fd (diff) | |
| download | pcsx_rearmed-dde7da71ec95f2d83a9427bd381448438aa9201c.tar.gz pcsx_rearmed-dde7da71ec95f2d83a9427bd381448438aa9201c.tar.bz2 pcsx_rearmed-dde7da71ec95f2d83a9427bd381448438aa9201c.zip | |
frontend: add toggle FPS option
Diffstat (limited to 'frontend/main.c')
| -rw-r--r-- | frontend/main.c | 13 | 
1 files changed, 12 insertions, 1 deletions
| diff --git a/frontend/main.c b/frontend/main.c index 4803198..4aa8968 100644 --- a/frontend/main.c +++ b/frontend/main.c @@ -1,5 +1,5 @@  /* - * (C) notaz, 2010-2011 + * (C) notaz, 2010-2012   *   * This work is licensed under the terms of the GNU GPLv2 or later.   * See the COPYING file in the top-level directory. @@ -252,6 +252,15 @@ do_state_slot:  		toggle_fast_forward(0);  		plugin_call_rearmed_cbs();  		break; +	case SACTION_TOGGLE_FPS: +		if ((g_opts & (OPT_SHOWFPS|OPT_SHOWCPU)) +		    == (OPT_SHOWFPS|OPT_SHOWCPU)) +			g_opts &= ~(OPT_SHOWFPS|OPT_SHOWCPU); +		else if (g_opts & OPT_SHOWFPS) +			g_opts |= OPT_SHOWCPU; +		else +			g_opts |= OPT_SHOWFPS; +		break;  	case SACTION_SCREENSHOT:  		{  			char buf[MAXPATHLEN]; @@ -723,6 +732,8 @@ int emu_load_state(int slot)  	char fname[MAXPATHLEN];  	int ret; +	hud_msg[0] = 0; +  	ret = get_state_filename(fname, sizeof(fname), slot);  	if (ret != 0)  		return ret; | 
