mirror of
https://github.com/open-goal/jak-project
synced 2026-08-07 02:06:59 -04:00
19 lines
511 B
C++
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
|