Small Tweaks
This commit is contained in:
parent
6b5105e74d
commit
bbae01a471
@ -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];
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user