mirror of
https://github.com/perfect-dark-pc-port/perfect_dark.git
synced 2026-10-23 15:52:41 +02:00
Remove trailing slash from directory checks
> The slash is unnecessary and causes issues when building with a recent version of MinGW.
This commit is contained in:
1 parent
7c949ed9d7
commit
f25721da8f
1 file changed
+3
-3
+3
-3
@@ -420,7 +420,7 @@ s32 modTextureLoad(u16 num, void *dst, u32 dstSize)
|
|||||||
{
|
{
|
||||||
static s32 dirExists = -1;
|
static s32 dirExists = -1;
|
||||||
if (dirExists < 0) {
|
if (dirExists < 0) {
|
||||||
dirExists = (fsFileSize(MOD_TEXTURES_DIR "/") >= 0);
|
dirExists = (fsFileSize(MOD_TEXTURES_DIR) >= 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!dirExists) {
|
if (!dirExists) {
|
||||||
@@ -442,7 +442,7 @@ void *modSequenceLoad(u16 num, u32 *outSize)
|
|||||||
{
|
{
|
||||||
static s32 dirExists = -1;
|
static s32 dirExists = -1;
|
||||||
if (dirExists < 0) {
|
if (dirExists < 0) {
|
||||||
dirExists = (fsFileSize(MOD_SEQUENCES_DIR "/") >= 0);
|
dirExists = (fsFileSize(MOD_SEQUENCES_DIR) >= 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!dirExists) {
|
if (!dirExists) {
|
||||||
@@ -478,7 +478,7 @@ s32 modAnimationLoadDescriptor(u16 num, struct animtableentry *anim)
|
|||||||
{
|
{
|
||||||
static s32 dirExists = -1;
|
static s32 dirExists = -1;
|
||||||
if (dirExists < 0) {
|
if (dirExists < 0) {
|
||||||
dirExists = (fsFileSize(MOD_ANIMATIONS_DIR "/") >= 0);
|
dirExists = (fsFileSize(MOD_ANIMATIONS_DIR) >= 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!dirExists) {
|
if (!dirExists) {
|
||||||
|
|||||||
Reference in new issue
Block a user