Rob Loach
88977dc15b
Add mutex include where needed
2024-01-30 00:29:10 -05:00
Nathan Whitehead
a223b2f4b9
Merge pull request #23 from RobLoach/quickjs-ng
...
Use QuickJS-NG as it has some platform fixes
2024-01-29 11:38:27 -07:00
Rob Loach
11651a6d32
Use QuickJS-NG as it has some platform fixes
2024-01-29 13:27:12 -05:00
Nathan Whitehead
a7c571210e
Merge pull request #22 from RobLoach/patch-3
...
Update puzzlescript_libretro.info
2024-01-29 10:10:54 -07:00
Nathan Whitehead
4ca841f0d4
Merge pull request #21 from RobLoach/fenv-parameter-name
...
fenv: Include the rounding mode
2024-01-29 10:10:39 -07:00
Rob Loach
616a488d3c
Update puzzlescript_libretro.info
...
This updates the info file with documentation about what each entry does. The only changes we're really making here are enabling `cheats`, and changing the savestate functionality to use `serialized`.
2024-01-29 11:54:26 -05:00
Rob Loach
7d87b80994
fenv: Include the rounding mode
2024-01-29 11:33:52 -05:00
Nathan Whitehead
cfc2c63dc4
Merge pull request #20 from RobLoach/fenv
...
dingux: Use our own fenv.h for QuickJS
2024-01-29 09:04:41 -07:00
Nathan Whitehead
8f4ac35d05
Merge pull request #19 from RobLoach/msvc-threads
...
msvc: Do not use pthread for CXXFLAGS on msvc
2024-01-29 09:04:24 -07:00
Nathan Whitehead
2fb67f021f
Merge pull request #18 from RobLoach/mips-c-fix
...
dingux: Fix the C++11 iterators for dingux
2024-01-29 09:04:12 -07:00
Nathan Whitehead
de840d140b
Merge pull request #17 from RobLoach/android-exceptions
...
android: Add exceptions for the Android build
2024-01-29 09:04:01 -07:00
Rob Loach
8fdd4c3e14
dingux: Use our own fenv.h for QuickJS
2024-01-29 00:29:21 -05:00
Rob Loach
b3f18535da
msvc: Do not use pthread for CXXFLAGS on msvc
2024-01-29 00:16:18 -05:00
Rob Loach
ca8bef5da8
dingux: Fix the C++11 iterators for dingux
...
The C++11 syntax was confusing dingux-mips32. Being a bit more explicit about the iterator should fix it up.
```
src/core.cpp:372:36: error: invalid cast from type 'const std::initializer_list<const int>' to type 'int'
if (!joypad_old_state[(int)key] && input_state_cb(0, RETRO_DEVICE_JOYPAD, 0, key)) {
```
2024-01-29 00:03:08 -05:00
Rob Loach
f40b880299
android: Add exceptions for the Android build
2024-01-28 23:49:30 -05:00
Nathan Whitehead
e86a48a0f6
Merge pull request #16 from RobLoach/dignux-mips32-fixes
...
Address dingux fixes with std::abs and casing the input key
2024-01-26 08:51:37 -07:00
Nathan Whitehead
e0910cdb5c
Merge pull request #15 from RobLoach/lpthread
...
Use -lpthread to link pthread
2024-01-26 08:51:28 -07:00
Nathan Whitehead
29642e201b
Merge pull request #14 from RobLoach/libretro-common
...
Use libretro-common for libretro.h
2024-01-26 08:51:16 -07:00
Nathan Whitehead
2bfe97dc62
Merge pull request #13 from RobLoach/android-precompiled
...
android: Add USE_PRECOMPILED_BUNDLE
2024-01-26 08:51:04 -07:00
Rob Loach
73189e7883
Address dingux fixes with std::abs and casing the input key
2024-01-25 17:43:34 -05:00
Rob Loach
889344b6f9
Use -lpthread to link pthread
2024-01-25 17:35:42 -05:00
Rob Loach
7edecf0d18
libretro-common: Update include directories
2024-01-25 16:48:01 -05:00
Rob Loach
b34ba213ed
Switch libretro.h to use libretro-common
2024-01-25 16:34:45 -05:00
Rob Loach
388aeca15a
Remove libretro.h to replace with a submodule
2024-01-25 16:31:43 -05:00
Rob Loach
07113916bc
android: Add USE_PRECOMPILED_BUNDLE
2024-01-25 16:25:58 -05:00
Nathan Whitehead
e18ada904a
Merge pull request #12 from RobLoach/patch-2
...
ci: Make gitlab get the git submodules
2024-01-24 12:30:55 -07:00
Rob Loach
c5932d8e99
ci: Make gitlab get the git submodules
...
This adds `GIT_SUBMODULE_STRATEGY` to have Gitlab's CI retrieve the submodules
2024-01-23 18:09:11 -05:00
Nathan Whitehead
cd22178962
Merge pull request #11 from RobLoach/cheats
...
Add Cheats
2024-01-23 15:44:43 -07:00
Nathan Whitehead
8150402b63
Merge pull request #10 from RobLoach/config_version
...
Add CONFIG_VERSION to Android makefile
2024-01-23 15:44:32 -07:00
Rob Loach
d14d5ff9c1
Add Cheats
2024-01-22 12:33:41 -05:00
Rob Loach
2fb1309781
Update QuickJS year
2024-01-22 12:00:50 -05:00
Rob Loach
50ff296c66
Merge branch 'main' of github.com:nwhitehead/pzretro into config_version
2024-01-22 11:59:03 -05:00
Rob Loach
5d4ae45ae2
Update QuickJS CONFIG_VERSION year
2024-01-22 11:58:20 -05:00
Rob Loach
d9d42cc422
Fix QuickJS CONFIG_VERSION
2024-01-22 11:57:23 -05:00
Rob Loach
085f58e53c
Add CONFIG_VERSION to Android makefile
2024-01-22 11:51:00 -05:00
Nathan Whitehead
10412d1d54
Merge pull request #9 from RobLoach/input_descriptors
...
Add Input Descriptors
2024-01-22 09:48:13 -07:00
Nathan Whitehead
7ee9e3266b
Merge pull request #8 from RobLoach/quickjs-update
...
Update to QuickJS 2024-01-13
2024-01-22 09:47:12 -07:00
Rob Loach
3da1ba8550
Add Input Descriptors
2024-01-22 11:35:45 -05:00
Rob Loach
275467afe6
Have the submodule ignore internal changes
2024-01-22 11:12:11 -05:00
Rob Loach
f534d51317
Update to QuickJS 2024-01-13
2024-01-22 11:09:35 -05:00
Nathan Whitehead
71f0346835
Add script for downloading puzzlescript games by url.
...
Add capability to download itch.io puzzlescript games (experimental).
Update readme.
2022-10-06 09:54:55 -06:00
Nathan Whitehead
a35d6715d7
Update readme with save/load info.
2022-10-05 14:30:34 -06:00
Nathan Whitehead
883b9675e5
Switch SELECT+LEFT/RIGHT to be level section keys.
...
Add js code to move level up and down in a sensible way.
Update readme a bit.
2022-10-01 09:23:37 -06:00
Nathan Whitehead
49e3ed8d3f
Update core info file with save flags.
2022-09-30 17:09:40 -06:00
Nathan Whitehead
b9da3373a3
Add initial support for save states.
...
Remove demo.pz game.
Split out gameloop functionality into separate files.
Add serialize/deserialize functions into main.js.
Add serialize/deserialize functionality into gameloop class.
Allow sfxr to warn but not stop on bad seed numbers.
Handle negative hex values (fixes corrupted saves in large games).
Make serialization auto retry with truncation if size is too big.
Use original text title screens.
2022-09-30 11:01:42 -06:00
Nathan Whitehead
96bfc5f860
Remove reliance of QuickJS on fenv.h.
...
This puts calls to fenv functions behind an if/def which is not set.
I believe this makes QuickJS not fully standards compliant with
regards to numerical rounding, especially when converting floating
point numbers to strings. I don't think PuzzleScript relies on
any precise rounding when converting numbers to strings so this
should be safe for PuzzleScript.
2022-09-29 10:08:33 -06:00
Nathan Whitehead
da2996e74a
Fix small things to help cross-platform compatibility.
...
Downgrade to C++11 in makefile.
Fixup make_unique.
Use old style chrono duration.
Switch to mutex from atomic to avoid linking to libatomic on some platforms.
Update info file to include pzp extension.
2022-09-29 09:56:17 -06:00
Nathan Whitehead
aa11bf9a89
Fix Mint 19.3 linking with dl.
2022-09-28 17:11:57 -06:00
Nathan Whitehead
ba5c5d024b
Merge pull request #5 from RobLoach/gitlab-makefile
...
Add the libretro GitLab CI file
2022-09-28 16:12:19 -06:00
Rob Loach
b71dc04f2f
Add the libretro GitLab CI file
2022-09-28 02:29:28 -04:00