filesystem: in case of missing/incomplete liblist.gam make c0a0 default start map

This commit is contained in:
Alibek Omarov
2025-12-14 04:41:52 +03:00
parent bed1c669aa
commit dae8c6cb9c

View File

@@ -758,8 +758,8 @@ static void FS_InitGameInfo( gameinfo_t *GameInfo, const char *gamedir, qboolean
else
{
Q_strncpy( GameInfo->basedir, fs_basedir, sizeof( GameInfo->basedir ));
Q_strncpy( GameInfo->title, "New Game", sizeof( GameInfo->title ));
Q_strncpy( GameInfo->startmap, "newmap", sizeof( GameInfo->startmap ));
Q_strncpy( GameInfo->title, gamedir, sizeof( GameInfo->title ));
Q_strncpy( GameInfo->startmap, "c0a0", sizeof( GameInfo->startmap ));
Q_strncpy( GameInfo->dll_path, "cl_dlls", sizeof( GameInfo->dll_path ));
Q_strncpy( GameInfo->game_dll, "dlls/hl.dll", sizeof( GameInfo->game_dll ));
Q_strncpy( GameInfo->game_dll_linux, "dlls/hl.so", sizeof( GameInfo->game_dll_linux ));