mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-12-06 18:08:31 +00:00
Fix a few unrelated compile warnings.
This commit is contained in:
parent
18bdaf4732
commit
878f7531fb
@ -189,7 +189,7 @@ void BaseProvider::Notify_DLLInit_Pre(CreateInterfaceFn engineFactory,
|
|||||||
|
|
||||||
char searchPath[260];
|
char searchPath[260];
|
||||||
baseFs->GetSearchPath("GAME", (GetSearchPathTypes_t)0, searchPath, sizeof(searchPath));
|
baseFs->GetSearchPath("GAME", (GetSearchPathTypes_t)0, searchPath, sizeof(searchPath));
|
||||||
for (int i = 0; i < sizeof(searchPath); ++i)
|
for (size_t i = 0; i < sizeof(searchPath); ++i)
|
||||||
{
|
{
|
||||||
if (searchPath[i] == ';')
|
if (searchPath[i] == ';')
|
||||||
{
|
{
|
||||||
@ -206,7 +206,7 @@ void BaseProvider::Notify_DLLInit_Pre(CreateInterfaceFn engineFactory,
|
|||||||
|
|
||||||
baseFs->RemoveSearchPaths("DEFAULT_WRITE_PATH");
|
baseFs->RemoveSearchPaths("DEFAULT_WRITE_PATH");
|
||||||
baseFs->GetSearchPath("GAME", (GetSearchPathTypes_t)0, searchPath, sizeof(searchPath));
|
baseFs->GetSearchPath("GAME", (GetSearchPathTypes_t)0, searchPath, sizeof(searchPath));
|
||||||
for (int i = 0; i < sizeof(searchPath); ++i)
|
for (size_t i = 0; i < sizeof(searchPath); ++i)
|
||||||
{
|
{
|
||||||
if (searchPath[i] == ';')
|
if (searchPath[i] == ';')
|
||||||
{
|
{
|
||||||
|
|||||||
@ -165,8 +165,8 @@ mm_DetectGameInformation()
|
|||||||
lptr = cur_path;
|
lptr = cur_path;
|
||||||
}
|
}
|
||||||
|
|
||||||
char *pRelPath = is_source2 ? "../../" : "";
|
const char *pRelPath = is_source2 ? "../../" : "";
|
||||||
char *pOSDir = is_source2 ? PLATFORM_NAME "/" : "";
|
const char *pOSDir = is_source2 ? PLATFORM_NAME "/" : "";
|
||||||
if (stricmp(key, "GameBin") == 0)
|
if (stricmp(key, "GameBin") == 0)
|
||||||
mm_PathFormat(temp_path, sizeof(temp_path), "%s/%s%s/%s" SERVER_NAME, lptr, pRelPath, ptr, pOSDir);
|
mm_PathFormat(temp_path, sizeof(temp_path), "%s/%s%s/%s" SERVER_NAME, lptr, pRelPath, ptr, pOSDir);
|
||||||
else if (!ptr[0])
|
else if (!ptr[0])
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user