Skip to content

Commit d36f902

Browse files
author
nitrocaster
committed
Update mp verifier initialization procedures.
1 parent a4a74e1 commit d36f902

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/utils/mp_configs_verifyer/entry_point.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ void print_format()
1717
printf(help_msg);
1818
};
1919

20-
void xrcore_log_cb(LPCSTR log_string)
20+
void xrcore_log_cb(void *context, LPCSTR log_string)
2121
{
2222
printf("%s\n", log_string);
2323
};
@@ -163,7 +163,7 @@ void run_configs_verifyer_server()
163163

164164
void initialize_core()
165165
{
166-
Core._initialize ("mp_configs_info", xrcore_log_cb, TRUE, "fsgame4mpu.ltx");
166+
Core._initialize ("mp_configs_info", LogCallback(xrcore_log_cb, nullptr), TRUE, "fsgame4mpu.ltx");
167167
crypto::xr_crypto_init ();
168168

169169
string_path fname;

src/utils/mp_screenshots_info/entry_point.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ void print_format()
1010
printf("Format: mp_screenshots_info.exe [screenshot_file_name]\n");
1111
};
1212

13-
void xrcore_log_cb(LPCSTR log_string)
13+
void xrcore_log_cb(void *context, LPCSTR log_string)
1414
{
1515
printf("%s\n", log_string);
1616
};
@@ -80,7 +80,7 @@ int main(int argc, char ** argv)
8080
return EXIT_FAILURE;
8181
}
8282
printf ("Initializing core...\n");
83-
Core._initialize ("mp_screenshots_info", xrcore_log_cb, TRUE, "fsgame4mpu.ltx");
83+
Core._initialize ("mp_screenshots_info", LogCallback(xrcore_log_cb, nullptr), TRUE, "fsgame4mpu.ltx");
8484
crypto::xr_crypto_init ();
8585

8686
#ifdef DEBUG

0 commit comments

Comments
 (0)