fix: android builds unable to load anything due to #498

fix: simd sse4.2 is now required for _mm_dp_ps, due to strange behavior on some cpus (ref #506)
refactor: cosmetic changes all over the code
linkage: do not flush linkent export table on changelevel
manager: do not allow to create bots while analyzing map
conifg: notify user about probably outdated configs, not just error in config file
This commit is contained in:
jeefo 2024-01-26 19:52:00 +03:00
commit d234a3f156
No known key found for this signature in database
GPG key ID: 927BCA0779BEA8ED
15 changed files with 91 additions and 55 deletions

View file

@ -449,6 +449,6 @@ constexpr auto kSecondaryWeaponMask = (cr::bit (Weapon::P228) | cr::bit (Weapon:
constexpr auto kPrimaryWeaponMinIndex = 7;
// grenade model names
static constexpr StringRef kExplosiveModelName = "hegrenade.mdl";
static constexpr StringRef kFlashbangModelName = "flashbang.mdl";
static constexpr StringRef kSmokeModelName = "smokegrenade.mdl";
inline constexpr StringRef kExplosiveModelName = "hegrenade.mdl";
inline constexpr StringRef kFlashbangModelName = "flashbang.mdl";
inline constexpr StringRef kSmokeModelName = "smokegrenade.mdl";

View file

@ -182,11 +182,6 @@ public:
static int CR_STDCALL closeHandler (SharedLibrary::Handle module) {
return instance ().close (module);
}
public:
void flush () {
m_exports.clear ();
}
};
// expose global

View file

@ -39,6 +39,7 @@ public:
static constexpr StringRef email { "yapb@jeefo.net" };
static constexpr StringRef url { "https://yapb.jeefo.net/" };
static constexpr StringRef download { "yapb.jeefo.net" };
static constexpr StringRef upload { "yapb.jeefo.net/upload" };
static constexpr StringRef logtag { "YB" };
static constexpr StringRef dtime { __DATE__ " " __TIME__ };
static constexpr StringRef date { __DATE__ };
@ -53,6 +54,8 @@ public:
~Folders () = default;
public:
static constexpr StringRef bot { "yapb" };
static constexpr StringRef addons { "addons" };
static constexpr StringRef config { "conf" };
static constexpr StringRef data { "data" };
static constexpr StringRef lang { "lang" };

View file

@ -79,10 +79,10 @@ public:
String buildPath (int32_t type, bool isMemoryLoad = false);
// get's relative path against bot library (bot library should reside in bin dir)
String getRunningPath ();
StringRef getRunningPath ();
// same as above, but with valve-specific filesystem paths (loadfileforme)
String getRunningPathVFS ();
StringRef getRunningPathVFS ();
// converts storage option to storage filename
int32_t storageToBotFile (int32_t options);