From 8b2f37d3d59f735417737889c75f72391ea30e37 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Wed, 23 Apr 2025 12:23:21 -0700 Subject: [PATCH] roblox_emulator: Sound:Play() stub --- lib/roblox_emulator/src/runner/instance/instance.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/roblox_emulator/src/runner/instance/instance.rs b/lib/roblox_emulator/src/runner/instance/instance.rs index f59daa496..6285f4f0b 100644 --- a/lib/roblox_emulator/src/runner/instance/instance.rs +++ b/lib/roblox_emulator/src/runner/instance/instance.rs @@ -450,9 +450,10 @@ const GET_SERVICE:ClassFunctionPointer=cf!(|lua,_this,service:mlua::String|{ } }) }); -const GET_PLAYERS:ClassFunctionPointer=cf!(|_lua,_this,()|{ - Ok::<_,mlua::Error>(Vec::::new()) +const GET_PLAYERS:ClassFunctionPointer=cf!(|_lua,_this,()|->mlua::Result<_>{ + Ok(Vec::::new()) }); +const NO_OP:ClassFunctionPointer=cf!(|_lua,_this,_:mlua::MultiValue|->mlua::Result<_>{Ok(())}); static CLASS_FUNCTION_DATABASE:CFD=phf::phf_map!{ "DataModel"=>phf::phf_map!{ "service"=>GET_SERVICE, @@ -465,7 +466,10 @@ static CLASS_FUNCTION_DATABASE:CFD=phf::phf_map!{ "Players"=>phf::phf_map!{ "players"=>GET_PLAYERS, "GetPlayers"=>GET_PLAYERS, - } + }, + "Sound"=>phf::phf_map!{ + "Play"=>NO_OP, + }, }; /// A store of created functions for each Roblox class.