aboutsummaryrefslogtreecommitdiff
path: root/patches/dosbox-pure/0001-add-auto-cycle-limit.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/dosbox-pure/0001-add-auto-cycle-limit.patch')
-rw-r--r--patches/dosbox-pure/0001-add-auto-cycle-limit.patch17
1 files changed, 16 insertions, 1 deletions
diff --git a/patches/dosbox-pure/0001-add-auto-cycle-limit.patch b/patches/dosbox-pure/0001-add-auto-cycle-limit.patch
index f524ee6..44a7711 100644
--- a/patches/dosbox-pure/0001-add-auto-cycle-limit.patch
+++ b/patches/dosbox-pure/0001-add-auto-cycle-limit.patch
@@ -1,5 +1,20 @@
+diff --git a/Makefile b/Makefile
+index 3e7941c..8c54b71 100644
+--- a/Makefile
++++ b/Makefile
+@@ -181,6 +181,10 @@ else
+ endif
+ endif
+
++ifneq (,$(CYCLE_LIMIT))
++ COMMONFLAGS += -DCYCLE_LIMIT=$(CYCLE_LIMIT)
++endif
++
+ ifeq ($(BUILD),DEBUG)
+ BUILDDIR := debug
+ CFLAGS := -DDEBUG -D_DEBUG -g -O0
diff --git a/dosbox_pure_libretro.cpp b/dosbox_pure_libretro.cpp
-index af4c66f..bd59842 100644
+index 4f4ca7e..40ddef3 100644
--- a/dosbox_pure_libretro.cpp
+++ b/dosbox_pure_libretro.cpp
@@ -544,15 +544,30 @@ void DBP_SetRealModeCycles()