Skip to content

Commit

Permalink
bumping version to 5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
frranck committed Oct 13, 2020
1 parent 47d2100 commit c118aed
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 30 deletions.
2 changes: 1 addition & 1 deletion Assets/mrboom.appdata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Bomberman is controlled with the keyboard or with (up to 8) joypads.
<binary>mrboom</binary>
</provides>
<releases>
<release version="4.9">
<release version="5.0">
</release>
</releases>
<screenshots>
Expand Down
2 changes: 1 addition & 1 deletion Assets/mrboom.libretro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[Libretro]
Type=Game
Version=4.9
Version=5.0
Name=MrBoom
Icon=mrboom
Module=mrboom_libretro.so
Expand Down
4 changes: 2 additions & 2 deletions Assets/mrboom.rc
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ BEGIN
BEGIN
VALUE "CompanyName", "Remdy Software"
VALUE "FileDescription", "MrBoom"
VALUE "FileVersion", "4.9"
VALUE "FileVersion", "5.0"
VALUE "InternalName", "mrboom"
VALUE "LegalCopyright", "Remdy Software"
VALUE "OriginalFilename", "MrBoom.exe"
VALUE "ProductName", "MrBoom"
VALUE "ProductVersion", "4.9"
VALUE "ProductVersion", "5.0"
END
END
BLOCK "VarFileInfo"
Expand Down
29 changes: 4 additions & 25 deletions common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -615,39 +615,18 @@ static void mrboom_api()
static struct http_connection_t *conn = NULL;
static struct http_t * http = NULL;
static int api_state = 0;
int currentState = (isGameActive() + isDrawGame() * 2 + won() * 4) * (!replay());
static int state = 0;
static int say_hello = 1;

if ((currentState == state) && (!api_state))
if ((!say_hello) && (!api_state))
{
return;
}
state = currentState;
switch (api_state)
{
case 0:
char body[1024];
sprintf(body, "state=%d&platform=%s&team=%d&version=", currentState, PLATFORM, teamMode());
#ifdef __LIBSDL2__
strcat(body, "SDL2-");
#else
strcat(body, "libretro-");
#endif
strcat(body, GAME_VERSION);
api_state = 1;
for (int i = 0; i < nb_dyna; i++)
{
char playerInfo[1024];
char nick[4];
nick[0] = m.nick_t[m.control_joueur[i]];
nick[1] = m.nick_t[m.control_joueur[i] + 1];
nick[2] = m.nick_t[m.control_joueur[i] + 2];
nick[3] = '\0';
sprintf(playerInfo, "&player%d=%s&ai%d=%d&v%d=%d", i, nick, i, (isAIActiveForPlayer(i) ? 1 : 0) + (i < numberOfPlayers() ? 0 : 2), i, victories(i));
strcat(body, playerInfo);
}
log_debug("API: body <%s>\n", body);
conn = net_http_connection_new("http://api.mumblecore.org/mrboom", "POST", body);
say_hello = 0;
conn = net_http_connection_new("http://api.mumblecore.org/hello", "POST", "");
break;

case 1:
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 "4.9"
#define GAME_VERSION "5.0"
#define PATH_MAX_LENGTH 256
#define WIDTH 320
#define HEIGHT 200
Expand Down

0 comments on commit c118aed

Please sign in to comment.