Skip to content

Commit

Permalink
bumping version to 5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
frranck committed Feb 5, 2024
1 parent c4ec620 commit 865be65
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
8 changes: 4 additions & 4 deletions Assets/mrboom.rc
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
id ICON "./mrboom.ico"
1 VERSIONINFO
FILEVERSION 5,3,0,0
PRODUCTVERSION 5,3,0,0
FILEVERSION 5,4,0,0
PRODUCTVERSION 5,4,0,0
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "080904E4"
BEGIN
VALUE "CompanyName", "Remdy Software"
VALUE "FileDescription", "MrBoom"
VALUE "FileVersion", "5.3"
VALUE "FileVersion", "5.4"
VALUE "InternalName", "mrboom"
VALUE "LegalCopyright", "Remdy Software"
VALUE "OriginalFilename", "MrBoom.exe"
VALUE "ProductName", "MrBoom"
VALUE "ProductVersion", "5.3"
VALUE "ProductVersion", "5.4"
END
END
BLOCK "VarFileInfo"
Expand Down
2 changes: 1 addition & 1 deletion common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
extern "C" {
#endif
#define GAME_NAME "Mr.Boom"
#define GAME_VERSION "5.3"
#define GAME_VERSION "5.4"
#define PATH_MAX_LENGTH 256
#define WIDTH 320
#define HEIGHT 200
Expand Down
15 changes: 11 additions & 4 deletions sdl2/sdl2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
#include "MrboomHelper.hpp"
#include "xbrz.h"

#ifndef SDL_HINT_SHUTDOWN_DBUS_ON_QUIT
#error Please use at least SDL version 2.30.0
#endif


#define IFTRACES (traceMask & DEBUG_SDL2)

#ifdef DEBUG
Expand Down Expand Up @@ -774,8 +779,9 @@ void pollEvent()
break;

case SDL_GameControllerButton::SDL_CONTROLLER_BUTTON_BACK:
case SDL_GameControllerButton::SDL_CONTROLLER_BUTTON_GUIDE:
if (IFTRACES)
log_info("SDL_CONTROLLER_BUTTON_BACK\n");
log_info("SDL_CONTROLLER_BUTTON_BACK or SDL_CONTROLLER_BUTTON_GUIDE\n");
updateInput(button_select, player, 1, false);
anySelectButtonPushedMask = anySelectButtonPushedMask | (1 << e.jbutton.which);
break;
Expand Down Expand Up @@ -812,7 +818,7 @@ void pollEvent()
*/
default:
if (IFTRACES)
log_info("unknown button\n");
log_info("unknown button %d\n", e.cbutton.button);
break;
}
anyButtonPushedMask = anyButtonPushedMask | (1 << e.jbutton.button);
Expand Down Expand Up @@ -883,8 +889,9 @@ void pollEvent()
break;

case SDL_GameControllerButton::SDL_CONTROLLER_BUTTON_BACK:
case SDL_GameControllerButton::SDL_CONTROLLER_BUTTON_GUIDE:
if (IFTRACES)
log_info("SDL_CONTROLLER_BUTTON_BACK\n");
log_info("SDL_CONTROLLER_BUTTON_BACK or SDL_CONTROLLER_BUTTON_GUIDE\n");
updateInput(button_select, player, 0, false);
anySelectButtonPushedMask = anySelectButtonPushedMask & ~(1 << e.jbutton.which);
break;
Expand Down Expand Up @@ -922,7 +929,7 @@ void pollEvent()
*/
default:
if (IFTRACES)
log_info("unknown button\n");
log_info("unknown button %d\n", e.cbutton.button);
break;
}
anyButtonPushedMask = anyButtonPushedMask & ~(1 << e.jbutton.button);
Expand Down

0 comments on commit 865be65

Please sign in to comment.