Skip to content

Commit

Permalink
Merge pull request #31 from grant2258/mpeg2update
Browse files Browse the repository at this point in the history
add git version and fix remark statements
  • Loading branch information
inactive123 authored Aug 20, 2018
2 parents 0914aa6 + ef634fb commit d364f38
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ ifneq ($(SANITIZER),)
LDFLAGS := -fsanitize=$(SANITIZER) $(LDFLAGS)
endif


GIT_VERSION ?= " $(shell git rev-parse --short HEAD || echo unknown)"
ifneq ($(GIT_VERSION)," unknown")
CXXFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
endif


ifeq ($(platform),)
platform = unix
ifeq ($(shell uname -a),)
Expand Down
19 changes: 12 additions & 7 deletions daphne/libretro/libretro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,11 @@ void retro_get_system_info(struct retro_system_info *out_systeminfo)
{
memset(out_systeminfo, 0, sizeof(*out_systeminfo));
out_systeminfo->library_name = "Daphne";
out_systeminfo->library_version = "v0.04";
#ifndef GIT_VERSION
#define GIT_VERSION ""
#endif

out_systeminfo->library_version = GIT_VERSION;
out_systeminfo->need_fullpath = true;
out_systeminfo->block_extract = true;
out_systeminfo->valid_extensions = DAPHNE_ROM_EXTENSION;
Expand Down Expand Up @@ -1133,12 +1137,13 @@ bool retro_load_game(const struct retro_game_info *in_game)
return false;
}
// **************************************************************************************************
// * **** Game Notes
// * - Sega GP World (gpworld) does work, has hiccups.
// * - Thayers Quest (tq) does work but is a bit unstable, can't get a good repro. Putting that off
// * for right now. You must have a keyboard attached.
// **************************************************************************************************
/**************************************************************************************************
* **** Game Notes
* - Sega GP World (gpworld) does work, has hiccups.
* - Thayers Quest (tq) does work but is a bit unstable, can't get a good repro. Putting that off
* for right now. You must have a keyboard attached.
**************************************************************************************************/
/*
// Arguements to mimic command line.
#define DAPHNE_NUM_COMMANDLINE_ARGS 13
Expand Down

0 comments on commit d364f38

Please sign in to comment.