engage/generated/app/
debugfs.rs1#[cfg(feature = "app-debugfs-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::object::{IObject, Object};
9
10 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/debugfs/DebugFs.md"))]
11 #[::unity::class(namespace = "App", name = "DebugFs")]
12 #[parent(crate::system::object::Object)]
13 pub struct DebugFs {}
14}
15
16#[cfg(feature = "app-debugfs-types")]
17pub use __types::*;
18
19#[cfg(feature = "app-debugfs")]
20impl DebugFs {
21 #[doc = "`IsExists(::unity::Il2CppString)` overload"]
22 pub fn is_exists(path: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
23 unsafe {
24 ::unity::il2cpp_call!((::unity::module_base()+0x2a04830usize)as*mut u8,bool;
25(::unity::Il2CppString)::core::convert::Into::into(path))
26 }
27 }
28
29 #[doc = "`IsFileExists(::unity::Il2CppString)` overload"]
30 pub fn is_file_exists(path: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
31 unsafe {
32 ::unity::il2cpp_call!((::unity::module_base()+0x2a04840usize)as*mut u8,bool;
33(::unity::Il2CppString)::core::convert::Into::into(path))
34 }
35 }
36
37 #[doc = "`IsDirectoryExists(::unity::Il2CppString)` overload"]
38 pub fn is_directory_exists(path: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
39 unsafe {
40 ::unity::il2cpp_call!((::unity::module_base()+0x2a04850usize)as*mut u8,bool;
41(::unity::Il2CppString)::core::convert::Into::into(path))
42 }
43 }
44
45 #[doc = "`GetFsEntries(::unity::Il2CppString, ::unity::Il2CppString, bool)` overload"]
46 pub fn get_fs_entries(
47 path: impl ::core::convert::Into<::unity::Il2CppString>,
48 pattern: impl ::core::convert::Into<::unity::Il2CppString>,
49 is_recursive: impl ::core::convert::Into<bool>,
50 ) -> ::unity::Array<::unity::Il2CppString> {
51 unsafe {
52 ::unity::il2cpp_call!((::unity::module_base()+0x2a04860usize)as*mut u8, ::unity::Array< ::unity::Il2CppString> ;
53(::unity::Il2CppString)::core::convert::Into::into(path),(::unity::Il2CppString)::core::convert::Into::into(pattern),(bool)::core::convert::Into::into(is_recursive))
54 }
55 }
56
57 #[doc = "`GetFiles(::unity::Il2CppString, ::unity::Il2CppString, bool)` overload"]
58 pub fn get_files(
59 path: impl ::core::convert::Into<::unity::Il2CppString>,
60 pattern: impl ::core::convert::Into<::unity::Il2CppString>,
61 is_recursive: impl ::core::convert::Into<bool>,
62 ) -> ::unity::Array<::unity::Il2CppString> {
63 unsafe {
64 ::unity::il2cpp_call!((::unity::module_base()+0x2a04870usize)as*mut u8, ::unity::Array< ::unity::Il2CppString> ;
65(::unity::Il2CppString)::core::convert::Into::into(path),(::unity::Il2CppString)::core::convert::Into::into(pattern),(bool)::core::convert::Into::into(is_recursive))
66 }
67 }
68
69 #[doc = "`GetDirectories(::unity::Il2CppString, ::unity::Il2CppString, bool)` overload"]
70 pub fn get_directories(
71 path: impl ::core::convert::Into<::unity::Il2CppString>,
72 pattern: impl ::core::convert::Into<::unity::Il2CppString>,
73 is_recursive: impl ::core::convert::Into<bool>,
74 ) -> ::unity::Array<::unity::Il2CppString> {
75 unsafe {
76 ::unity::il2cpp_call!((::unity::module_base()+0x2a04880usize)as*mut u8, ::unity::Array< ::unity::Il2CppString> ;
77(::unity::Il2CppString)::core::convert::Into::into(path),(::unity::Il2CppString)::core::convert::Into::into(pattern),(bool)::core::convert::Into::into(is_recursive))
78 }
79 }
80
81 #[doc = "`ReadFile(::unity::Il2CppString)` overload"]
82 pub fn read_file(path: impl ::core::convert::Into<::unity::Il2CppString>) -> ::unity::Array<u8> {
83 unsafe {
84 ::unity::il2cpp_call!((::unity::module_base()+0x2a04890usize)as*mut u8, ::unity::Array<u8> ;
85(::unity::Il2CppString)::core::convert::Into::into(path))
86 }
87 }
88
89 #[doc = "`WriteFile(::unity::Il2CppString, ::unity::Array<u8>, i32)` overload"]
90 pub fn write_file(
91 path: impl ::core::convert::Into<::unity::Il2CppString>,
92 bin: impl ::core::convert::Into<::unity::Array<u8>>,
93 size: impl ::core::convert::Into<i32>,
94 ) -> bool {
95 unsafe {
96 ::unity::il2cpp_call!((::unity::module_base()+0x2a048a0usize)as*mut u8,bool;
97(::unity::Il2CppString)::core::convert::Into::into(path),(::unity::Array<u8>)::core::convert::Into::into(bin),(i32)::core::convert::Into::into(size))
98 }
99 }
100
101 #[doc = "`DeleteFile(::unity::Il2CppString)` overload"]
102 pub fn delete_file(path: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
103 unsafe {
104 ::unity::il2cpp_call!((::unity::module_base()+0x2a048b0usize)as*mut u8,bool;
105(::unity::Il2CppString)::core::convert::Into::into(path))
106 }
107 }
108
109 #[doc = "`CreateDirectory(::unity::Il2CppString)` overload"]
110 pub fn create_directory(path: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
111 unsafe {
112 ::unity::il2cpp_call!((::unity::module_base()+0x2a048c0usize)as*mut u8,bool;
113(::unity::Il2CppString)::core::convert::Into::into(path))
114 }
115 }
116
117 #[doc = "`DeleteDirectory(::unity::Il2CppString)` overload"]
118 pub fn delete_directory(path: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
119 unsafe {
120 ::unity::il2cpp_call!((::unity::module_base()+0x2a048d0usize)as*mut u8,bool;
121(::unity::Il2CppString)::core::convert::Into::into(path))
122 }
123 }
124}
125
126#[cfg(feature = "app-debugfs")]
127impl DebugFs {
128 pub fn is_exists_method_info() -> &'static ::unity::il2cpp::MethodInfo {
129 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
130 }
131
132 pub fn is_file_exists_method_info() -> &'static ::unity::il2cpp::MethodInfo {
133 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
134 }
135
136 pub fn is_directory_exists_method_info() -> &'static ::unity::il2cpp::MethodInfo {
137 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
138 }
139
140 pub fn get_fs_entries_method_info() -> &'static ::unity::il2cpp::MethodInfo {
141 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
142 }
143
144 pub fn get_files_method_info() -> &'static ::unity::il2cpp::MethodInfo {
145 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
146 }
147
148 pub fn get_directories_method_info() -> &'static ::unity::il2cpp::MethodInfo {
149 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
150 }
151
152 pub fn read_file_method_info() -> &'static ::unity::il2cpp::MethodInfo {
153 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
154 }
155
156 pub fn write_file_method_info() -> &'static ::unity::il2cpp::MethodInfo {
157 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
158 }
159
160 pub fn delete_file_method_info() -> &'static ::unity::il2cpp::MethodInfo {
161 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
162 }
163
164 pub fn create_directory_method_info() -> &'static ::unity::il2cpp::MethodInfo {
165 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
166 }
167
168 pub fn delete_directory_method_info() -> &'static ::unity::il2cpp::MethodInfo {
169 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
170 }
171}
172
173#[cfg(feature = "app-debugfs")]
174#[doc(hidden)]
175pub mod prelude {
176 pub use super::{DebugFs, IDebugFs};
177 pub use crate::system::object::IObject;
178 #[cfg(feature = "system-object")]
179 pub use crate::system::object::IObjectMethods;
180}