Merge pull request #170 from h4570/misc-cleanup-wolf

Minor fixes
This commit is contained in:
Sandro Sobczyński
2023-11-13 20:15:10 +01:00
committed by GitHub
5 changed files with 8 additions and 8 deletions
+1
View File
@@ -4,3 +4,4 @@
/c_cpp_properties.json
/tasks.json
/settings.json
/ps2dev-intellisense
+5 -3
View File
@@ -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);
};
@@ -33,4 +33,5 @@ class TextureBuilderData {
TextureBpp clutBpp;
unsigned char clutGsComponents;
};
} // namespace Tyra
-3
View File
@@ -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
+1 -2
View File
@@ -12,8 +12,7 @@
#include <tamtypes.h>
#include <cstdio>
#include <kernel.h>
#include <limits.h>
#include <syslimits.h>
#include <unistd.h>
#include <cstring>
#include "file/file_utils.hpp"