Skip to content

Commit 2a21afc

Browse files
committed
xrGame: fix ALife resource loading
1 parent 7bb8e6f commit 2a21afc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/xrServerEntities/xrServer_Object_Base.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ CSE_Abstract::CSE_Abstract(LPCSTR caSection)
108108
if (pSettings->line_exist(caSection, "custom_data"))
109109
{
110110
pcstr const raw_file_name = pSettings->r_string(caSection, "custom_data");
111+
#ifdef LINUX
112+
while (char* sep = strchr((char *)raw_file_name, '\\')) *sep = '/';
113+
#endif
111114
IReader const* config = nullptr;
112115
#ifdef XRGAME_EXPORTS
113116
if (ai().get_alife())

0 commit comments

Comments
 (0)