mirror of
https://github.com/moparisthebest/minetest
synced 2024-11-16 14:25:19 -05:00
Fix some MSVC-specific warnings and add debug path as an MSVC directory
This commit is contained in:
parent
43f102271d
commit
0118c111e8
6
src/jthread/win32/jsemaphore.cpp
Executable file → Normal file
6
src/jthread/win32/jsemaphore.cpp
Executable file → Normal file
@ -96,11 +96,9 @@ int JSemaphore::GetValue() {
|
|||||||
&BasicInfo, sizeof (SEMAPHORE_BASIC_INFORMATION), NULL);
|
&BasicInfo, sizeof (SEMAPHORE_BASIC_INFORMATION), NULL);
|
||||||
|
|
||||||
if (retval == ERROR_SUCCESS)
|
if (retval == ERROR_SUCCESS)
|
||||||
{
|
|
||||||
return BasicInfo.CurrentCount;
|
return BasicInfo.CurrentCount;
|
||||||
}
|
|
||||||
else {
|
|
||||||
assert("unable to read semaphore count" == 0);
|
assert("unable to read semaphore count" == 0);
|
||||||
}
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -240,7 +240,7 @@ void ModConfiguration::addMods(std::vector<ModSpec> new_mods)
|
|||||||
for(std::vector<ModSpec>::const_iterator it = new_mods.begin();
|
for(std::vector<ModSpec>::const_iterator it = new_mods.begin();
|
||||||
it != new_mods.end(); ++it){
|
it != new_mods.end(); ++it){
|
||||||
const ModSpec &mod = *it;
|
const ModSpec &mod = *it;
|
||||||
if(mod.part_of_modpack != want_from_modpack)
|
if(mod.part_of_modpack != (bool)want_from_modpack)
|
||||||
continue;
|
continue;
|
||||||
if(existing_mods.count(mod.name) == 0){
|
if(existing_mods.count(mod.name) == 0){
|
||||||
// GOOD CASE: completely new mod.
|
// GOOD CASE: completely new mod.
|
||||||
|
@ -290,7 +290,11 @@ void pathRemoveFile(char *path, char delim)
|
|||||||
bool detectMSVCBuildDir(char *c_path)
|
bool detectMSVCBuildDir(char *c_path)
|
||||||
{
|
{
|
||||||
std::string path(c_path);
|
std::string path(c_path);
|
||||||
const char *ends[] = {"bin\\Release", "bin\\Build", NULL};
|
const char *ends[] = {
|
||||||
|
"bin\\Release",
|
||||||
|
"bin\\Debug",
|
||||||
|
"bin\\Build",
|
||||||
|
NULL};
|
||||||
return (removeStringEnd(path, ends) != "");
|
return (removeStringEnd(path, ends) != "");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user