File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,17 @@ namespace xam {
21
21
22
22
std::atomic<int > xam_dialogs_shown_ = {0 };
23
23
24
+ // FixMe(RodoMa92): Same hack as main_init_posix.cc:40
25
+ // Force initialization before constructor calling, mimicking
26
+ // Windows.
27
+ // Ref:
28
+ // https://reviews.llvm.org/D12689#243295
29
+ #ifdef XE_PLATFORM_LINUX
30
+ __attribute__ ((init_priority(101 )))
31
+ #endif
32
+ static std::vector<xe::cpu::Export*>
33
+ xam_exports (4096 );
34
+
24
35
bool xeXamIsUIActive () { return xam_dialogs_shown_ > 0 ; }
25
36
26
37
XamModule::XamModule (Emulator* emulator, KernelState* kernel_state)
@@ -34,8 +45,6 @@ XamModule::XamModule(Emulator* emulator, KernelState* kernel_state)
34
45
#undef XE_MODULE_EXPORT_GROUP
35
46
}
36
47
37
- std::vector<xe::cpu::Export*> xam_exports (4096 );
38
-
39
48
xe::cpu::Export* RegisterExport_xam (xe::cpu::Export* export_entry) {
40
49
assert_true (export_entry->ordinal < xam_exports.size ());
41
50
xam_exports[export_entry->ordinal ] = export_entry;
You can’t perform that action at this time.
0 commit comments