Compare commits
1
Commits
6c8d08e618
...
v0.3.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5570955bc5 |
@@ -1,5 +1,5 @@
|
|||||||
diff --git a/src/cpuexec.c b/src/cpuexec.c
|
diff --git a/src/cpuexec.c b/src/cpuexec.c
|
||||||
index ca7401f..0bfcbe7 100644
|
index 07db6a1..0bfcbe7 100644
|
||||||
--- a/src/cpuexec.c
|
--- a/src/cpuexec.c
|
||||||
+++ b/src/cpuexec.c
|
+++ b/src/cpuexec.c
|
||||||
@@ -466,6 +466,65 @@ void cpu_run(void)
|
@@ -466,6 +466,65 @@ void cpu_run(void)
|
||||||
@@ -68,41 +68,6 @@ index ca7401f..0bfcbe7 100644
|
|||||||
|
|
||||||
|
|
||||||
/*************************************
|
/*************************************
|
||||||
@@ -943,6 +1002,34 @@ void time_fence_exit()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
+#elif defined(__EMSCRIPTEN__)
|
|
||||||
+
|
|
||||||
+// No cross-thread wait primitive is used here: this build is single-threaded
|
|
||||||
+// (see vpinball-wasm's README on why pthreads/SharedArrayBuffer are out of
|
|
||||||
+// scope), and time_fence is purely an *optional* external-clock-sync feature
|
|
||||||
+// (mirrored by Controller.TimeFence in controller.vbs) - reporting it as
|
|
||||||
+// unsupported just means the emulator paces itself on its own internal
|
|
||||||
+// timing instead of syncing to the host's clock, which is what every other
|
|
||||||
+// platform this library runs on outside of this fence do anyway.
|
|
||||||
+int time_fence_is_supported()
|
|
||||||
+{
|
|
||||||
+ return 0;
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+void time_fence_post()
|
|
||||||
+{
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+int time_fence_wait(double secs)
|
|
||||||
+{
|
|
||||||
+ (void)secs;
|
|
||||||
+ return 0;
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+void time_fence_exit()
|
|
||||||
+{
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
#else
|
|
||||||
|
|
||||||
#include <semaphore.h>
|
|
||||||
diff --git a/src/libpinmame/libpinmame.cpp b/src/libpinmame/libpinmame.cpp
|
diff --git a/src/libpinmame/libpinmame.cpp b/src/libpinmame/libpinmame.cpp
|
||||||
index 6966d77..755d762 100644
|
index 6966d77..755d762 100644
|
||||||
--- a/src/libpinmame/libpinmame.cpp
|
--- a/src/libpinmame/libpinmame.cpp
|
||||||
|
|||||||
Reference in New Issue
Block a user