doing `+set fs_game "mods/deathrun` or `-mod "mods/deathrun"` will result in the same effect. `-mod` is mainly for singleplayer usage but also works in multiplayer.
14 lines
386 B
C++
14 lines
386 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
#include <optional>
|
|
|
|
namespace utils::flags
|
|
{
|
|
bool has_flag(const std::string& flag);
|
|
std::optional<std::string> get_flag(const std::string& flag);
|
|
std::optional<std::string> get_flag(const std::string& flag, const std::string& shortname);
|
|
std::string get_flag(const std::string& flag, const std::string& shortname,
|
|
const std::string& default_);
|
|
}
|