them big_tasks.md (roadmap G0-G4, danh dau G1.1-G1.5 hoan thanh) + debug scripts/probes cua phien lam viec G0.1-G1.5 (test_g13/test_g12/test_g15_stress, patch_g1x, deploy/build bridge, probe_g0x)
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import io
|
||||
p = r'C:\Users\locpham\SonicForgeStudio\native_bridge\src\gui_probe.cpp'
|
||||
s = io.open(p, encoding='utf-8', newline='').read()
|
||||
def crlf(x): return x.replace('\n', '\r\n')
|
||||
|
||||
old = crlf(''' th = std::thread([this] {
|
||||
#ifdef _WIN32
|
||||
CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED);
|
||||
#endif''')
|
||||
new = crlf(''' th = std::thread([this] {
|
||||
#ifdef _WIN32
|
||||
_set_invalid_parameter_handler(probe_invalid_param);
|
||||
CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED);
|
||||
#endif''')
|
||||
n = s.count(old)
|
||||
print('match:', n)
|
||||
s = s.replace(old, new)
|
||||
io.open(p, 'w', encoding='utf-8', newline='').write(s)
|
||||
print('written')
|
||||
Reference in New Issue
Block a user