Skip to content

Commit 5f7c191

Browse files
committed
styles: format
1 parent 986850b commit 5f7c191

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

source/MaaUtils/AppRuntime/AppRuntime_Win.cpp

+4-5
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,15 @@ const std::filesystem::path& app_dir()
1313
return s_app_dir_cache;
1414
}
1515

16-
MAA_NS_END
17-
18-
1916
void init_app_dir(HINSTANCE hinstDLL)
2017
{
2118
char buffer[MAX_PATH + 1] = { 0 };
2219
GetModuleFileName(hinstDLL, buffer, MAX_PATH);
23-
MAA_NS::s_app_dir_cache = MAA_NS::path(buffer).parent_path();
20+
s_app_dir_cache = MAA_NS::path(buffer).parent_path();
2421
}
2522

23+
MAA_NS_END
24+
2625
// https://learn.microsoft.com/zh-cn/windows/win32/dlls/dllmain
2726
BOOL WINAPI DllMain(HINSTANCE hinstDLL, // handle to DLL module
2827
DWORD fdwReason, // reason for calling function
@@ -33,7 +32,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, // handle to DLL module
3332
case DLL_PROCESS_ATTACH:
3433
// Initialize once for each new process.
3534
// Return FALSE to fail DLL load.
36-
init_app_dir(hinstDLL);
35+
MAA_NS::init_app_dir(hinstDLL);
3736
break;
3837

3938
case DLL_THREAD_ATTACH:

0 commit comments

Comments
 (0)