Skip to content
This repository was archived by the owner on May 21, 2025. It is now read-only.

Commit 07162ca

Browse files
committed
fix #87
1 parent 6267f57 commit 07162ca

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,16 @@ ifeq ($(TARGET),)
5555
endif
5656
endif
5757

58+
COMMIT_COUNT := $(shell git rev-list --count master)
59+
ifneq ($(COMMIT_COUNT),)
60+
CFLAGS_G += -DFLIPS_COMMIT_COUNT=$(COMMIT_COUNT)
61+
endif
62+
5863
ifeq ($(TARGET),windows)
5964
ifneq (,$(filter $(CXX),cl cl.exe))
6065
override CFLAGS_windows := $(CFLAGS_windows_base)
6166
LFLAGS += $(LFLAGS_windows_msvc)
6267
endif
63-
6468
endif
6569

6670
ifeq ($(TARGET),gtk)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Features:
88
- Can remembers which ROMs you've used, and use them again if it thinks it's correct (BPS only, GUI only)
99
- Can launch other programs after patching the ROMs; together with the above, this allows you to double click a BPS to launch an emulator (GUI only)
1010

11-
Floating IPS is in maintenance mode. Bug reports and pull requests will be read, but feature requests are unlikely to be implemented. Releases are automated for every commit, meaning the release schedule is highly erratic. You can find them [at the release page](https://github.com/Alcaro/Flips/releases).
11+
Floating IPS is in maintenance mode. Bug reports and pull requests will be read, but feature requests are unlikely to be implemented. Releases are automated for every commit, meaning the release schedule is highly erratic, and half of the releases are identical (because the commit only updated readme or comments). You can find them [at the release page](https://github.com/Alcaro/Flips/releases).
1212
Alternatively, Linux users can also download binaries from [Flathub](https://flathub.org/apps/com.github.Alcaro.Flips).
1313

1414
Third-party forks, or separate tools, covering usecases this version doesn't (this only acknowledges their existence, and is not an endorsement; I haven't used most of them):

flips.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,13 @@
3434
//#define EXTERN_C
3535
//#endif
3636

37+
#ifdef FLIPS_COMMIT_COUNT
38+
#define STR_(x) #x
39+
#define STR(x) STR_(x)
40+
#define flipsversion "Floating IPS v" STR(FLIPS_COMMIT_COUNT)
41+
#else
3742
#define flipsversion "Floating IPS"
43+
#endif
3844

3945

4046
#if defined(FLIPS_WINDOWS)

0 commit comments

Comments
 (0)