Files
jak-project/game/overlord/jak3/soundcommon.cpp
T
2024-07-26 09:42:28 -04:00

19 lines
511 B
C++

#include "soundcommon.h"
#include <algorithm>
#include <cstring>
#include <string>
namespace jak3 {
void jak3_overlord_init_globals_soundcommon() {}
// Only for use with 16 character sound names!
void strcpy_toupper(char* dest, const char* source) {
// clear the dest string
memset(dest, 0, 16);
std::string string(source);
std::transform(string.begin(), string.end(), string.begin(), ::toupper);
std::replace(string.begin(), string.end(), '-', '_');
string.copy(dest, 16);
}
} // namespace jak3