mirror of
https://git.shylie.info/shylie/glerminal.git
synced 2025-10-03 05:20:17 +00:00
Print out CWD on non-windows environments for debug purposes
This commit is contained in:
@@ -4,12 +4,21 @@
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#ifndef _WIN32
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
namespace
|
||||
{
|
||||
void init()
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user