Print out CWD on non-windows environments for debug purposes
All checks were successful
Make PNG / build-app (push) Successful in 23s
All checks were successful
Make PNG / build-app (push) Successful in 23s
This commit is contained in:
parent
ffcafb5160
commit
1e0be8eca0
@ -831,6 +831,10 @@ int glerminal_load_sprites_file(const char* filename)
|
|||||||
|
|
||||||
success = true;
|
success = true;
|
||||||
}
|
}
|
||||||
|
else if (buffer)
|
||||||
|
{
|
||||||
|
std::cout << "Invalid image width/height" << std::endl;
|
||||||
|
}
|
||||||
|
|
||||||
stbi_image_free(buffer);
|
stbi_image_free(buffer);
|
||||||
|
|
||||||
|
@ -4,12 +4,21 @@
|
|||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
|
#ifndef _WIN32
|
||||||
|
#include <unistd.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
void init()
|
void init()
|
||||||
{
|
{
|
||||||
if (!glerminal_load_sprites_file("resources/image.png"))
|
if (!glerminal_load_sprites_file("resources/image.png"))
|
||||||
{
|
{
|
||||||
|
#ifndef _WIN32
|
||||||
|
char buffer[257] = {};
|
||||||
|
getcwd(buffer, 256);
|
||||||
|
std::cout << buffer << std::endl;
|
||||||
|
#endif
|
||||||
std::cout << "Failed to load texture" << std::endl;
|
std::cout << "Failed to load texture" << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user