@@ -70,7 +70,7 @@ void LogWorker::process()
70
70
71
71
int noLogCycles = 0 ;
72
72
while (!m_QuitRequested) {
73
- if (GetLogMessages (&m_Buffer[0 ], m_Buffer.size (), false )) {
73
+ if (usvfsGetLogMessages (&m_Buffer[0 ], m_Buffer.size (), false )) {
74
74
m_LogFile.write (m_Buffer.c_str ());
75
75
m_LogFile.write (" \n " );
76
76
m_LogFile.flush ();
@@ -142,7 +142,7 @@ UsvfsConnector::UsvfsConnector()
142
142
usvfsSetCrashDumpPath (params, dumpPath.c_str ());
143
143
usvfsSetProcessDelay (params, delay.count ());
144
144
145
- InitLogging (false );
145
+ usvfsInitLogging (false );
146
146
147
147
log::debug (" initializing usvfs:\n "
148
148
" . instance: {}\n "
@@ -154,13 +154,13 @@ UsvfsConnector::UsvfsConnector()
154
154
usvfsCreateVFS (params);
155
155
usvfsFreeParameters (params);
156
156
157
- ClearExecutableBlacklist ();
157
+ usvfsClearExecutableBlacklist ();
158
158
for (auto exec : s.executablesBlacklist ().split (" ;" )) {
159
159
std::wstring buf = exec.toStdWString ();
160
- BlacklistExecutable (buf.data ());
160
+ usvfsBlacklistExecutable (buf.data ());
161
161
}
162
162
163
- ClearLibraryForceLoads ();
163
+ usvfsClearLibraryForceLoads ();
164
164
165
165
m_LogWorker.moveToThread (&m_WorkerThread);
166
166
@@ -172,7 +172,7 @@ UsvfsConnector::UsvfsConnector()
172
172
173
173
UsvfsConnector::~UsvfsConnector ()
174
174
{
175
- DisconnectVFS ();
175
+ usvfsDisconnectVFS ();
176
176
m_LogWorker.exit ();
177
177
m_WorkerThread.quit ();
178
178
m_WorkerThread.wait ();
@@ -193,11 +193,11 @@ void UsvfsConnector::updateMapping(const MappingType& mapping)
193
193
194
194
log::debug (" Updating VFS mappings..." );
195
195
196
- ClearVirtualMappings ();
196
+ usvfsClearVirtualMappings ();
197
197
198
198
for (auto map : mapping) {
199
199
if (progress.wasCanceled ()) {
200
- ClearVirtualMappings ();
200
+ usvfsClearVirtualMappings ();
201
201
throw UsvfsConnectorException (" VFS mapping canceled by user" );
202
202
}
203
203
progress.setValue (value++);
@@ -206,12 +206,12 @@ void UsvfsConnector::updateMapping(const MappingType& mapping)
206
206
}
207
207
208
208
if (map.isDirectory ) {
209
- VirtualLinkDirectoryStatic (
209
+ usvfsVirtualLinkDirectoryStatic (
210
210
map.source .toStdWString ().c_str (), map.destination .toStdWString ().c_str (),
211
211
(map.createTarget ? LINKFLAG_CREATETARGET : 0 ) | LINKFLAG_RECURSIVE);
212
212
++dirs;
213
213
} else {
214
- VirtualLinkFile (map.source .toStdWString ().c_str (),
214
+ usvfsVirtualLinkFile (map.source .toStdWString ().c_str (),
215
215
map.destination .toStdWString ().c_str (), 0 );
216
216
++files;
217
217
}
@@ -243,20 +243,20 @@ void UsvfsConnector::updateParams(MOBase::log::Levels logLevel,
243
243
usvfsUpdateParameters (p);
244
244
usvfsFreeParameters (p);
245
245
246
- ClearExecutableBlacklist ();
246
+ usvfsClearExecutableBlacklist ();
247
247
for (auto exec : executableBlacklist.split (" ;" )) {
248
248
std::wstring buf = exec.toStdWString ();
249
- BlacklistExecutable (buf.data ());
249
+ usvfsBlacklistExecutable (buf.data ());
250
250
}
251
251
}
252
252
253
253
void UsvfsConnector::updateForcedLibraries (
254
254
const QList<MOBase::ExecutableForcedLoadSetting>& forcedLibraries)
255
255
{
256
- ClearLibraryForceLoads ();
256
+ usvfsClearLibraryForceLoads ();
257
257
for (auto setting : forcedLibraries) {
258
258
if (setting.enabled ()) {
259
- ForceLoadLibrary (setting.process ().toStdWString ().data (),
259
+ usvfsForceLoadLibrary (setting.process ().toStdWString ().data (),
260
260
setting.library ().toStdWString ().data ());
261
261
}
262
262
}
@@ -269,7 +269,7 @@ std::vector<HANDLE> getRunningUSVFSProcesses()
269
269
{
270
270
size_t count = 0 ;
271
271
DWORD* buffer = nullptr ;
272
- if (!::GetVFSProcessList2 (&count, &buffer)) {
272
+ if (!::usvfsGetVFSProcessList2 (&count, &buffer)) {
273
273
log::error (" failed to get usvfs process list" );
274
274
return {};
275
275
}
0 commit comments