misc cleanup
This commit is contained in:
@@ -11,6 +11,8 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <limits.h>
|
||||
#include <syslimits.h>
|
||||
|
||||
namespace Tyra {
|
||||
|
||||
@@ -42,9 +44,9 @@ class FileUtils {
|
||||
|
||||
private:
|
||||
// Argv name+path & just path
|
||||
char cwd[255];
|
||||
char elfName[255];
|
||||
char elfPath[255 - 14];
|
||||
char cwd[NAME_MAX];
|
||||
char elfName[NAME_MAX];
|
||||
char elfPath[NAME_MAX - 14];
|
||||
|
||||
void setPathInfo(const char* path);
|
||||
};
|
||||
|
||||
@@ -24,13 +24,14 @@ class TextureBuilderData {
|
||||
std::string name;
|
||||
|
||||
int width, height;
|
||||
unsigned char* data;
|
||||
u8* data;
|
||||
TextureBpp bpp;
|
||||
unsigned char gsComponents;
|
||||
u8 gsComponents;
|
||||
|
||||
int clutWidth, clutHeight;
|
||||
unsigned char* clut;
|
||||
u8* clut;
|
||||
TextureBpp clutBpp;
|
||||
unsigned char clutGsComponents;
|
||||
u8 clutGsComponents;
|
||||
};
|
||||
|
||||
} // namespace Tyra
|
||||
|
||||
@@ -36,9 +36,6 @@ class Math {
|
||||
static int randomi(const int& min, const int& max);
|
||||
static bool equalf(const float& a, const float& b,
|
||||
const float& epsilon = 0.00001F);
|
||||
|
||||
private:
|
||||
Math();
|
||||
};
|
||||
|
||||
} // namespace Tyra
|
||||
|
||||
Reference in New Issue
Block a user