mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-01 22:30:42 -07:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 587ae86341 | |||
| 926f2ef2a0 |
@@ -1,3 +1,6 @@
|
||||
08/17/2025 [spice2x]
|
||||
DDR: fix codec registration failure when path contains spaces
|
||||
|
||||
08/11/2025 [spice2x]
|
||||
SDVX: fix camera hook, remove -sdvxdisablecams
|
||||
DDR: automatically register codecs in com folder on boot
|
||||
|
||||
@@ -84,11 +84,12 @@ namespace games::ddr {
|
||||
|
||||
log_info("ddr", "found DLL: {}", filename.string());
|
||||
if (filename == "k-clvsd.dll" || filename.string().find("xactengine") == 0) {
|
||||
const std::string cmd = "regsvr32.exe /s " + file.path().string();
|
||||
|
||||
const std::wstring wcmd = L"regsvr32.exe /s \"" + file.path().wstring() + L"\"";
|
||||
const std::string cmd = "regsvr32.exe /s \"" + file.path().string() + "\"";
|
||||
|
||||
int result = 0;
|
||||
std::thread t([cmd, &result]() {
|
||||
result = system(cmd.c_str());
|
||||
std::thread t([wcmd, &result]() {
|
||||
result = _wsystem(wcmd.c_str());
|
||||
});
|
||||
t.join();
|
||||
log_info("ddr", "`{}` returned {}", cmd, result);
|
||||
|
||||
Reference in New Issue
Block a user