Skip to content

Commit

Permalink
[fix] Minor FMOD update, required for forward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Francisco Dias committed Jul 1, 2024
1 parent df84d00 commit 5ec8ce4
Show file tree
Hide file tree
Showing 119 changed files with 920 additions and 894 deletions.
2 changes: 1 addition & 1 deletion source/fmod_gml/FMOD.yyp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions source/fmod_gml/extensions/FMOD/FMOD.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file removed source/fmod_gml/extensions/FMOD/YYFMOD.dll
Binary file not shown.
Empty file.
Binary file added source/fmod_gml/extensions/FMOD/YYFMOD_x64.dll
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,11 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<LinkIncremental>true</LinkIncremental>
<OutDir>$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
<TargetName>$(ProjectName)_$(Platform)</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LinkIncremental>false</LinkIncremental>
<TargetName>$(ProjectName)_$(Platform)</TargetName>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
Expand Down
8 changes: 6 additions & 2 deletions source/fmod_gml/extensions/FMOD/post_build_step.bat
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,19 @@ set "ERROR_SDK_HASH=Invalid FMOD SDK version, sha256 hash mismatch (expected v%S
:: call %Utils% versionLockCheck "%YYruntimeVersion%" %RUNTIME_VERSION_STABLE% %RUNTIME_VERSION_BETA% %RUNTIME_VERSION_DEV% %RUNTIME_VERSION_LTS%

:: Ensure we are on the output path
pushd "%YYoutputFolder%"
if "%YYTARGET_runtime%" == "GMRT" (
pushd "%YYoutputFolder%\build\assets"
) else (
pushd "%YYoutputFolder%"
)

:: Call setup method depending on the platform
:: NOTE: the setup method can be (:setupWindows, :setupMacOS, :setupLinux, :setupAndroid, :setupiOS, :setupXbox, :setupPlaystation, :setupSwitch)
call :setup%YYPLATFORM_name%

popd

exit 0
exit %ERRORLEVEL%

:: ----------------------------------------------------------------------------------------------------
:setupWindows
Expand Down
15 changes: 13 additions & 2 deletions source/fmod_gml/extensions/FMOD/pre_build_step.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
set Utils="%~dp0scriptUtils.bat"
set "ExtensionPath=%~dp0"

set
exit 1

:: ######################################################################################
:: Script Logic

Expand All @@ -14,6 +17,8 @@ call %Utils% optionGetValue "versionBeta" RUNTIME_VERSION_BETA
call %Utils% optionGetValue "versionDev" RUNTIME_VERSION_DEV
call %Utils% optionGetValue "versionLTS" RUNTIME_VERSION_LTS

call %Utils% optionGetValue "gmrtReady" GMRT_READY

:: SDK Version
call %Utils% optionGetValue "sdkVersion" SDK_VERSION

Expand All @@ -36,7 +41,13 @@ if "%ENABLE_STUDIO%"=="True" set "ENABLE_STUDIO_FLAG=1"
set "ERROR_SDK_HASH=Invalid FMOD SDK version, sha256 hash mismatch (expected v%SDK_VERSION%)."

:: Checks IDE and Runtime versions
call %Utils% versionLockCheck "%YYruntimeVersion%" %RUNTIME_VERSION_STABLE% %RUNTIME_VERSION_BETA% %RUNTIME_VERSION_DEV% %RUNTIME_VERSION_LTS%
if "%YYTARGET_runtime%" == "GMRT" (
if "%GMRT_READY%" neq "True" (
call %Utils% logError "Extension is not compatible with GMRT runtime. Check for updated version."
)
) else (
call %Utils% versionLockCheck "%YYruntimeVersion%" %RUNTIME_VERSION_STABLE% %RUNTIME_VERSION_BETA% %RUNTIME_VERSION_DEV% %RUNTIME_VERSION_LTS%
)

:: Ensure we are on the output path
pushd "%YYoutputFolder%"
Expand All @@ -47,7 +58,7 @@ call :setup%YYPLATFORM_name%

popd

exit 0
exit %ERRORLEVEL%

:: ----------------------------------------------------------------------------------------------------
:setupWindows
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

66 changes: 33 additions & 33 deletions source/fmod_gml/objects/obj_console_pointer/obj_console_pointer.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

66 changes: 33 additions & 33 deletions source/fmod_gml/objects/obj_fmod/obj_fmod.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions source/fmod_gml/objects/obj_fmod_3d/CleanUp_0.gml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

fmod_sound_release(sound_index_1)
fmod_sound_release(sound_index_2)

2 changes: 1 addition & 1 deletion source/fmod_gml/objects/obj_fmod_3d/Create_0.gml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ sound_index_2 = fmod_system_create_sound(fmod_path_bundle("jaguar.wav"),FMOD_MOD

fmod_sound_set_3d_min_max_distance(sound_index_2,DISTANCEFACTOR*0.5,DISTANCEFACTOR*5000)

channel2 =fmod_system_play_sound(sound_index_2,true)
channel2 = fmod_system_play_sound(sound_index_2,true)

fmod_channel_control_set_3d_attributes(channel2, {x:point_2[0],y:point_2[1],z:point_2[2]},{x:0,y:0,z:0})

Expand Down
Loading

0 comments on commit 5ec8ce4

Please sign in to comment.