mirror of
https://github.com/ReMinecraftPE/mcpe.git
synced 2025-01-22 09:11:56 -05:00
* Win32: Don't close app if texture missing.
This commit is contained in:
parent
fefcf95b38
commit
b18af84411
1 changed files with 4 additions and 3 deletions
|
@ -169,12 +169,13 @@ Texture AppPlatform_win32::loadTexture(const std::string& str, bool bIsRequired)
|
|||
if (!bIsRequired)
|
||||
return Texture(0, 0, nullptr, 1, 0);
|
||||
|
||||
const std::string msg = "Error loading " + realPath + ". Did you unzip the Minecraft assets?";
|
||||
MessageBoxA(GetHWND(), msg.c_str(), getWindowTitle(), MB_OK);
|
||||
const std::string msg = "Error loading " + realPath + ". Did you unzip the Minecraft assets?\n\nNote, you will be warned for every missing texture.";
|
||||
MessageBoxA(GetHWND(), msg.c_str(), getWindowTitle(), MB_OK | MB_ICONERROR);
|
||||
|
||||
if (f)
|
||||
fclose(f);
|
||||
::exit(1);
|
||||
|
||||
return Texture(0, 0, nullptr, 0, 0);
|
||||
}
|
||||
|
||||
int width = 0, height = 0, channels = 0;
|
||||
|
|
Loading…
Reference in a new issue