From bbae01a47149a0eff15913f8c714d7c21f97d5c1 Mon Sep 17 00:00:00 2001
From: TheBrokenRail <connor24nolan@live.com>
Date: Sun, 17 Nov 2024 22:55:22 -0500
Subject: [PATCH] Small Tweaks

---
 mods/src/override/override.cpp | 4 +---
 mods/src/sound/sound.cpp       | 2 +-
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/mods/src/override/override.cpp b/mods/src/override/override.cpp
index a3e744be..90bc0334 100644
--- a/mods/src/override/override.cpp
+++ b/mods/src/override/override.cpp
@@ -1,7 +1,5 @@
 #include <cstdio>
 #include <cstdlib>
-#include <cstring>
-#include <cstdarg>
 
 #include <unistd.h>
 #include <fcntl.h>
@@ -56,7 +54,7 @@ std::string override_get_path(std::string filename) {
 
     // Check For Override
     std::string new_path;
-    if (std::string(filename).rfind(data_prefix, 0) == 0) {
+    if (filename.starts_with(data_prefix)) {
         // Test Asset Folders
         for (int i = 0; !asset_folders[i].empty(); i++) {
             new_path = asset_folders[i] + '/' + &filename[data_prefix_length];
diff --git a/mods/src/sound/sound.cpp b/mods/src/sound/sound.cpp
index 312777fa..53f1edac 100644
--- a/mods/src/sound/sound.cpp
+++ b/mods/src/sound/sound.cpp
@@ -30,7 +30,7 @@ std::string _sound_get_source_file() {
         // Check If Sound Exists
         if (access(full_path.c_str(), F_OK) == -1) {
             // Fail
-            WARN("Audio Source File Doesn't Exist: %s", path.c_str());
+            WARN("Missing Audio Source File: %s", path.c_str());
             source = "";
             info_sound_data_state = "Missing";
         } else {