core: Add SandboxType::Application for AIR apps

This commit is contained in:
Kamil Jarosz 2024-09-01 21:31:47 +02:00
parent 6053fc586d
commit 41446f07d8
3 changed files with 5 additions and 1 deletions

View File

@ -65,7 +65,7 @@ fn get_sandbox_type<'gc>(
SandboxType::Remote => "remote",
SandboxType::LocalWithFile => "localWithFile",
SandboxType::LocalWithNetwork => "localWithNetwork",
SandboxType::LocalTrusted => "localTrusted",
SandboxType::LocalTrusted | SandboxType::Application => "localTrusted",
},
)
.into())

View File

@ -44,6 +44,7 @@ pub fn get_sandbox_type<'gc>(
SandboxType::LocalWithFile => "localWithFile",
SandboxType::LocalWithNetwork => "localWithNetwork",
SandboxType::LocalTrusted => "localTrusted",
SandboxType::Application => "application",
};
return Ok(AvmString::new_utf8(activation.context.gc_context, sandbox_type).into());
}

View File

@ -24,4 +24,7 @@ pub enum SandboxType {
/// The movie is a trusted local movie with access to both filesystem and network.
LocalTrusted,
/// The movie is an AIR application with access to both filesystem and network.
Application,
}