Skip to content

Commit

Permalink
Fix Sample#play() option bag handling
Browse files Browse the repository at this point in the history
The stack indices were wrong, likely as an result of an incomplete
refactoring at some point.
  • Loading branch information
fatcerberus committed Mar 11, 2024
1 parent 2e27cf9 commit 35dd73d
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 10 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
neoSphere Changelog
===================

v5.9.3 - TBD
------------

* Fixes a bug where passing an `options` object to `Sample#play()` doesn't work
properly and may throw an exception.

v5.9.2 - December 22, 2023
--------------------------

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.9.2
5.9.2+
2 changes: 1 addition & 1 deletion manpages/cell.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH CELL 1 "2023-12-22" "neoSphere 5.9.2" "Sphere: the JavaScript game platform"
.TH CELL 1 "xxxx-xx-xx" "neoSphere 5.9.2+" "Sphere: the JavaScript game platform"
.SH NAME
cell \- scripted build tool for Sphere game engine games
.SH SYNOPSIS
Expand Down
2 changes: 1 addition & 1 deletion manpages/neosphere.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH NEOSPHERE 1 "2023-12-22" "neoSphere 5.9.2" "Sphere: the JavaScript game platform"
.TH NEOSPHERE 1 "xxxx-xx-xx" "neoSphere 5.9.2+" "Sphere: the JavaScript game platform"
.SH NAME
neosphere \- lightweight JavaScript-powered game engine
.SH SYNOPSIS
Expand Down
2 changes: 1 addition & 1 deletion manpages/spherun.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH SPHERUN 1 "2023-12-22" "neoSphere 5.9.2" "Sphere: the JavaScript game platform"
.TH SPHERUN 1 "xxxx-xx-xx" "neoSphere 5.9.2+" "Sphere: the JavaScript game platform"
.SH NAME
spherun \- run a Sphere game in a dev-friendly environment
.SH SYNOPSIS
Expand Down
2 changes: 1 addition & 1 deletion manpages/ssj.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH SSJ 1 "2023-12-22" "neoSphere 5.9.2" "Sphere: the JavaScript game platform"
.TH SSJ 1 "xxxx-xx-xx" "neoSphere 5.9.2+" "Sphere: the JavaScript game platform"
.SH NAME
ssj - the JavaScript debugger for neoSphere
.SH SYNOPSIS
Expand Down
Binary file modified msvs/cell.rc
Binary file not shown.
Binary file modified msvs/neosphere.rc
Binary file not shown.
Binary file modified msvs/ssj.rc
Binary file not shown.
4 changes: 2 additions & 2 deletions setup/neoSphereSetup.iss
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
; configurations.
#define AppName "neoSphere"
#define AppPublisher "Fat Cerberus"
#define AppVersion3 "5.9.2"
#define AppVersion4 "5.9.2.3469"
#define AppVersion3 "5.9.2+"
#define AppVersion4 "0.0.0.0"

[Setup]
OutputBaseFilename=neoSphereSetup-{#AppVersion3}-msw
Expand Down
4 changes: 2 additions & 2 deletions src/neosphere/pegasus.c
Original file line number Diff line number Diff line change
Expand Up @@ -3695,10 +3695,10 @@ js_Sample_play(int num_args, bool is_ctor, intptr_t magic)
jsal_require_object_coercible(1);
jsal_get_prop_string(1, "volume");
if (!jsal_is_undefined(-1))
volume = jsal_require_number(-3);
volume = jsal_require_number(-1);
jsal_get_prop_string(1, "pan");
if (!jsal_is_undefined(-1))
pan = jsal_require_number(-2);
pan = jsal_require_number(-1);
jsal_get_prop_string(1, "speed");
if (!jsal_is_undefined(-1))
speed = jsal_require_number(-1);
Expand Down
2 changes: 1 addition & 1 deletion src/shared/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#define SPHERE_COMPILER_NAME "Cell"
#define SPHERE_DEBUGGER_NAME "SSj"

#define SPHERE_VERSION "5.9.2"
#define SPHERE_VERSION "5.9.2+"

#define SPHERE_API_VERSION 2
#define SPHERE_API_LEVEL 4
Expand Down

0 comments on commit 35dd73d

Please sign in to comment.