@@ -61,7 +61,7 @@ fn mono_doorstop_bootstrap(mono_domain: *mono.Domain) void {
6161 util .setEnv ("DOORSTOP_MANAGED_FOLDER_DIR" , norm_assembly_dir .str );
6262 }
6363
64- logger .debug ("Opening assembly: {}" , .{util .fmtString (config .target_assembly .? )});
64+ logger .debug ("Opening assembly: {f }" , .{util .fmtString (config .target_assembly .? )});
6565
6666 const dll_path = util .narrow (true , true , config .target_assembly .? );
6767 defer dll_path .deinit ();
@@ -70,7 +70,7 @@ fn mono_doorstop_bootstrap(mono_domain: *mono.Domain) void {
7070 var s = mono .ImageOpenFileStatus .ok ;
7171 const image = mono .image_open_from_file_with_name (config .target_assembly .? , & s , 0 , dll_path .str );
7272 if (s != .ok or image == null ) {
73- logger .err ("Failed to open assembly: {s }. Got result: {}" , .{ util .fmtString (config .target_assembly .? ), s });
73+ logger .err ("Failed to open assembly: {f }. Got result: {}" , .{ util .fmtString (config .target_assembly .? ), s });
7474 return ;
7575 }
7676 break :blk image .? ;
@@ -81,7 +81,7 @@ fn mono_doorstop_bootstrap(mono_domain: *mono.Domain) void {
8181 var s = mono .ImageOpenStatus .ok ;
8282 _ = mono .addrs .assembly_load_from_full .? (image , dll_path .str , & s , 0 );
8383 if (s != .ok ) {
84- logger .err ("Failed to load assembly: {s }. Got result: {}" , .{ util .fmtString (config .target_assembly .? ), s });
84+ logger .err ("Failed to load assembly: {f }. Got result: {}" , .{ util .fmtString (config .target_assembly .? ), s });
8585 return ;
8686 }
8787
@@ -98,7 +98,7 @@ fn mono_doorstop_bootstrap(mono_domain: *mono.Domain) void {
9898 std .debug .panic ("Method has {} parameters; expected 0" , .{params });
9999 }
100100
101- logger .debug ("Invoking method {}" , .{util .fmtAddress (method )});
101+ logger .debug ("Invoking method {f }" , .{util .fmtAddress (method )});
102102 var exc : ? * mono.Object = null ;
103103 _ = mono .addrs .runtime_invoke .? (method , null , null , & exc );
104104 if (exc ) | e | {
@@ -174,8 +174,8 @@ fn il2cpp_doorstop_bootstrap() void {
174174 @panic ("CoreCLR paths not set" );
175175 };
176176
177- logger .debug ("CoreCLR runtime path: {}" , .{util .fmtString (clr_runtime_coreclr_path )});
178- logger .debug ("CoreCLR corlib dir: {}" , .{util .fmtString (clr_corlib_dir )});
177+ logger .debug ("CoreCLR runtime path: {f }" , .{util .fmtString (clr_runtime_coreclr_path )});
178+ logger .debug ("CoreCLR corlib dir: {f }" , .{util .fmtString (clr_corlib_dir )});
179179
180180 if (! util .paths .exists (clr_runtime_coreclr_path , .file ) or
181181 ! util .paths .exists (clr_corlib_dir , .directory ))
@@ -188,7 +188,7 @@ fn il2cpp_doorstop_bootstrap() void {
188188 .windows = > std .os .windows .LoadLibraryW (clr_runtime_coreclr_path ) catch @panic ("Failed to load CoreCLR runtime" ),
189189 else = > std .c .dlopen (clr_runtime_coreclr_path , .{ .LAZY = true }) orelse @panic ("Failed to load CoreCLR runtime" ),
190190 };
191- logger .debug ("Loaded coreclr.dll: {}" , .{util .fmtAddress (coreclr_module )});
191+ logger .debug ("Loaded coreclr.dll: {f }" , .{util .fmtAddress (coreclr_module )});
192192
193193 coreclr .load (coreclr_module );
194194
@@ -209,9 +209,9 @@ fn il2cpp_doorstop_bootstrap() void {
209209 const app_paths_env_n = util .narrow (true , true , app_paths_env );
210210 defer app_paths_env_n .deinit ();
211211
212- logger .debug ("App path: {}" , .{util .fmtString (app_path )});
213- logger .debug ("Target dir: {}" , .{util .fmtString (target_dir )});
214- logger .debug ("Target name: {}" , .{util .fmtString (target_name )});
212+ logger .debug ("App path: {f }" , .{util .fmtString (app_path )});
213+ logger .debug ("Target dir: {f }" , .{util .fmtString (target_dir )});
214+ logger .debug ("Target name: {f }" , .{util .fmtString (target_name )});
215215 logger .debug ("APP_PATHS: {s}" , .{app_paths_env_n .str });
216216
217217 const props = "APP_PATHS" ;
@@ -282,11 +282,11 @@ pub fn hook_mono_jit_parse_options(argc: c_int, argv: [*][*:0]u8) callconv(.c) v
282282 else = > s ,
283283 } else "127.0.0.1:10000" ;
284284
285- debug_options = std .fmt .allocPrintZ (alloc , "--debugger-agent=transport=dt_socket,server=y,address={s}{s}{s}" , .{
285+ debug_options = std .fmt .allocPrintSentinel (alloc , "--debugger-agent=transport=dt_socket,server=y,address={s}{s}{s}" , .{
286286 mono_debug_address ,
287287 if (config .mono_debug_suspend ) "" else ",suspend=n" ,
288288 if (config .mono_debug_suspend or ! mono_is_net35 ) "" else ",defer=y" ,
289- }) catch @panic ("Out of memory" );
289+ }, 0 ) catch @panic ("Out of memory" );
290290 }
291291
292292 logger .debug ("Debug options: {s}" , .{debug_options .? });
0 commit comments