Skip to content

Commit 1b51f41

Browse files
authored
Add commit hash to the version string (#89)
1 parent 6efc4b8 commit 1b51f41

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/libretro.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,10 @@ void retro_get_system_info(struct retro_system_info *info)
442442
{
443443
memset(info, 0, sizeof(*info));
444444
info->library_name = "FreeIntv";
445-
info->library_version = "1.2";
445+
#ifndef GIT_VERSION
446+
#define GIT_VERSION ""
447+
#endif
448+
info->library_version = "1.2 " GIT_VERSION;
446449
info->valid_extensions = "int|bin|rom";
447450
info->need_fullpath = true;
448451
}

0 commit comments

Comments
 (0)