Batch update libstorm-nvgt modules

This commit is contained in:
Storm Dragon
2026-02-22 19:18:47 -05:00
parent 44f13b1aeb
commit aa1ab8f533
16 changed files with 1197 additions and 1046 deletions

View File

@@ -3,23 +3,23 @@
// Resolves an audio path with optional extension fallback.
// Checks exact path first, then ".ogg", then ".wav".
string resolve_audio_path(const string audioPath) {
if (audioPath == "") {
return "";
}
if (audioPath == "") {
return "";
}
if (file_exists(audioPath)) {
return audioPath;
}
if (file_exists(audioPath)) {
return audioPath;
}
string oggPath = audioPath + ".ogg";
if (file_exists(oggPath)) {
return oggPath;
}
string oggPath = audioPath + ".ogg";
if (file_exists(oggPath)) {
return oggPath;
}
string wavPath = audioPath + ".wav";
if (file_exists(wavPath)) {
return wavPath;
}
string wavPath = audioPath + ".wav";
if (file_exists(wavPath)) {
return wavPath;
}
return "";
return "";
}