mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-27 15:44:12 +08:00
rm (#1117)
This commit is contained in:
parent
7b94499ea6
commit
58540dc971
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -10,3 +10,6 @@
|
|||||||
[submodule "src/plugins/libs/tinymp3"]
|
[submodule "src/plugins/libs/tinymp3"]
|
||||||
path = src/plugins/libs/tinymp3
|
path = src/plugins/libs/tinymp3
|
||||||
url = https://github.com/HIllya51/tinymp3
|
url = https://github.com/HIllya51/tinymp3
|
||||||
|
[submodule "src/plugins/libs/Detours"]
|
||||||
|
path = src/plugins/libs/Detours
|
||||||
|
url = https://github.com/microsoft/Detours
|
||||||
|
1
src/plugins/libs/Detours
Submodule
1
src/plugins/libs/Detours
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit e4bfd6b03e50de46b47abfbd1e46b384f0c5f833
|
File diff suppressed because it is too large
Load Diff
@ -1,27 +0,0 @@
|
|||||||
//////////////////////////////////////////////////////////////////////////////
|
|
||||||
//
|
|
||||||
// Common version parameters.
|
|
||||||
//
|
|
||||||
// Microsoft Research Detours Package, Version 4.0.1
|
|
||||||
//
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
//
|
|
||||||
|
|
||||||
#define _USING_V110_SDK71_ 1
|
|
||||||
#include "winver.h"
|
|
||||||
#if 0
|
|
||||||
#include <windows.h>
|
|
||||||
#include <detours.h>
|
|
||||||
#else
|
|
||||||
#ifndef DETOURS_STRINGIFY
|
|
||||||
#define DETOURS_STRINGIFY(x) DETOURS_STRINGIFY_(x)
|
|
||||||
#define DETOURS_STRINGIFY_(x) #x
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define VER_FILEFLAGSMASK 0x3fL
|
|
||||||
#define VER_FILEFLAGS 0x0L
|
|
||||||
#define VER_FILEOS 0x00040004L
|
|
||||||
#define VER_FILETYPE 0x00000002L
|
|
||||||
#define VER_FILESUBTYPE 0x00000000L
|
|
||||||
#endif
|
|
||||||
#define VER_DETOURS_BITS DETOUR_STRINGIFY(DETOURS_BITS)
|
|
@ -1,89 +0,0 @@
|
|||||||
//////////////////////////////////////////////////////////////////////////////
|
|
||||||
//
|
|
||||||
// Detours Test Program (syelog.h of syelog.lib)
|
|
||||||
//
|
|
||||||
// Microsoft Research Detours Package
|
|
||||||
//
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
//
|
|
||||||
#pragma once
|
|
||||||
#ifndef _SYELOGD_H_
|
|
||||||
#define _SYELOGD_H_
|
|
||||||
#include <stdarg.h>
|
|
||||||
|
|
||||||
#pragma pack(push, 1)
|
|
||||||
#pragma warning(push)
|
|
||||||
#pragma warning(disable: 4200)
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
|
||||||
//
|
|
||||||
//
|
|
||||||
#define SYELOG_PIPE_NAMEA "\\\\.\\pipe\\syelog"
|
|
||||||
#define SYELOG_PIPE_NAMEW L"\\\\.\\pipe\\syelog"
|
|
||||||
#ifdef UNICODE
|
|
||||||
#define SYELOG_PIPE_NAME SYELOG_PIPE_NAMEW
|
|
||||||
#else
|
|
||||||
#define SYELOG_PIPE_NAME SYELOG_PIPE_NAMEA
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
|
||||||
//
|
|
||||||
#define SYELOG_MAXIMUM_MESSAGE 4086 // 4096 - sizeof(header stuff)
|
|
||||||
|
|
||||||
typedef struct _SYELOG_MESSAGE
|
|
||||||
{
|
|
||||||
USHORT nBytes;
|
|
||||||
BYTE nFacility;
|
|
||||||
BYTE nSeverity;
|
|
||||||
DWORD nProcessId;
|
|
||||||
FILETIME ftOccurance;
|
|
||||||
BOOL fTerminate;
|
|
||||||
CHAR szMessage[SYELOG_MAXIMUM_MESSAGE];
|
|
||||||
} SYELOG_MESSAGE, *PSYELOG_MESSAGE;
|
|
||||||
|
|
||||||
|
|
||||||
// Facility Codes.
|
|
||||||
//
|
|
||||||
#define SYELOG_FACILITY_KERNEL 0x10 // OS Kernel
|
|
||||||
#define SYELOG_FACILITY_SECURITY 0x20 // OS Security
|
|
||||||
#define SYELOG_FACILITY_LOGGING 0x30 // OS Logging-internal
|
|
||||||
#define SYELOG_FACILITY_SERVICE 0x40 // User-mode system daemon
|
|
||||||
#define SYELOG_FACILITY_APPLICATION 0x50 // User-mode application
|
|
||||||
#define SYELOG_FACILITY_USER 0x60 // User self-generated.
|
|
||||||
#define SYELOG_FACILITY_LOCAL0 0x70 // Locally defined.
|
|
||||||
#define SYELOG_FACILITY_LOCAL1 0x71 // Locally defined.
|
|
||||||
#define SYELOG_FACILITY_LOCAL2 0x72 // Locally defined.
|
|
||||||
#define SYELOG_FACILITY_LOCAL3 0x73 // Locally defined.
|
|
||||||
#define SYELOG_FACILITY_LOCAL4 0x74 // Locally defined.
|
|
||||||
#define SYELOG_FACILITY_LOCAL5 0x75 // Locally defined.
|
|
||||||
#define SYELOG_FACILITY_LOCAL6 0x76 // Locally defined.
|
|
||||||
#define SYELOG_FACILITY_LOCAL7 0x77 // Locally defined.
|
|
||||||
#define SYELOG_FACILITY_LOCAL8 0x78 // Locally defined.
|
|
||||||
#define SYELOG_FACILITY_LOCAL9 0x79 // Locally defined.
|
|
||||||
|
|
||||||
// Severity Codes.
|
|
||||||
//
|
|
||||||
#define SYELOG_SEVERITY_FATAL 0x00 // System is dead.
|
|
||||||
#define SYELOG_SEVERITY_ALERT 0x10 // Take action immediately.
|
|
||||||
#define SYELOG_SEVERITY_CRITICAL 0x20 // Critical condition.
|
|
||||||
#define SYELOG_SEVERITY_ERROR 0x30 // Error
|
|
||||||
#define SYELOG_SEVERITY_WARNING 0x40 // Warning
|
|
||||||
#define SYELOG_SEVERITY_NOTICE 0x50 // Significant condition.
|
|
||||||
#define SYELOG_SEVERITY_INFORMATION 0x60 // Informational
|
|
||||||
#define SYELOG_SEVERITY_AUDIT_FAIL 0x66 // Audit Failed
|
|
||||||
#define SYELOG_SEVERITY_AUDIT_PASS 0x67 // Audit Succeeeded
|
|
||||||
#define SYELOG_SEVERITY_DEBUG 0x70 // Debugging
|
|
||||||
|
|
||||||
// Logging Functions.
|
|
||||||
//
|
|
||||||
VOID SyelogOpen(PCSTR pszIdentifier, BYTE nFacility);
|
|
||||||
VOID Syelog(BYTE nSeverity, PCSTR pszMsgf, ...);
|
|
||||||
VOID SyelogV(BYTE nSeverity, PCSTR pszMsgf, va_list args);
|
|
||||||
VOID SyelogClose(BOOL fTerminate);
|
|
||||||
|
|
||||||
#pragma warning(pop)
|
|
||||||
#pragma pack(pop)
|
|
||||||
|
|
||||||
#endif // _SYELOGD_H_
|
|
||||||
//
|
|
||||||
///////////////////////////////////////////////////////////////// End of File.
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,11 +1,7 @@
|
|||||||
if(${CMAKE_SIZEOF_VOID_P} EQUAL 8)
|
|
||||||
set(Detours ${CMAKE_CURRENT_LIST_DIR}/Detours-4.0.1/lib.X64/detours.lib)
|
set(Detours ${CMAKE_CURRENT_LIST_DIR}/Detours/src/creatwth.cpp ${CMAKE_CURRENT_LIST_DIR}/Detours/src/detours.cpp ${CMAKE_CURRENT_LIST_DIR}/Detours/src/modules.cpp ${CMAKE_CURRENT_LIST_DIR}/Detours/src/disasm.cpp)
|
||||||
else()
|
|
||||||
set(Detours ${CMAKE_CURRENT_LIST_DIR}/Detours-4.0.1/lib.X86/detours.lib)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
include_directories(${CMAKE_CURRENT_LIST_DIR})
|
include_directories(${CMAKE_CURRENT_LIST_DIR})
|
||||||
include_directories(${CMAKE_CURRENT_LIST_DIR}/Detours-4.0.1/include)
|
include_directories(${CMAKE_CURRENT_LIST_DIR}/Detours/src)
|
||||||
|
|
||||||
include_directories(${CMAKE_CURRENT_LIST_DIR}/wil/include)
|
include_directories(${CMAKE_CURRENT_LIST_DIR}/wil/include)
|
||||||
include_directories(${CMAKE_CURRENT_LIST_DIR}/miniaudio)
|
include_directories(${CMAKE_CURRENT_LIST_DIR}/miniaudio)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#define _CRT_SECURE_NO_WARNINGS
|
#define _CRT_SECURE_NO_WARNINGS
|
||||||
#define NOMINMAX
|
#define NOMINMAX
|
||||||
|
#define _CRT_STDIO_ARBITRARY_WIDE_SPECIFIERS 1
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <Shobjidl.h>
|
#include <Shobjidl.h>
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
@ -71,7 +71,6 @@
|
|||||||
#include <memory>
|
#include <memory>
|
||||||
#include <nlohmann/json.hpp>
|
#include <nlohmann/json.hpp>
|
||||||
|
|
||||||
#include <detours.h>
|
|
||||||
|
|
||||||
#pragma comment(lib, "shlwapi.lib")
|
#pragma comment(lib, "shlwapi.lib")
|
||||||
#pragma comment(lib, "winmm.lib")
|
#pragma comment(lib, "winmm.lib")
|
||||||
|
@ -16,13 +16,13 @@ add_executable(shareddllproxy shareddllproxy.cpp dllinject.cpp ntleas.cpp aspatc
|
|||||||
target_precompile_headers(shareddllproxy REUSE_FROM pch)
|
target_precompile_headers(shareddllproxy REUSE_FROM pch)
|
||||||
if(${CMAKE_SIZEOF_VOID_P} EQUAL 8)
|
if(${CMAKE_SIZEOF_VOID_P} EQUAL 8)
|
||||||
|
|
||||||
target_link_libraries(shareddllproxy Mfplat mfuuid ${Detours})
|
target_link_libraries(shareddllproxy Mfplat mfuuid)
|
||||||
set_target_properties(shareddllproxy PROPERTIES OUTPUT_NAME "shareddllproxy64")
|
set_target_properties(shareddllproxy PROPERTIES OUTPUT_NAME "shareddllproxy64")
|
||||||
else()
|
else()
|
||||||
add_subdirectory(voiceroid2)
|
add_subdirectory(voiceroid2)
|
||||||
add_library(x86lib Atlas.cpp eztrans.cpp dreye.cpp jbj7.cpp kingsoft.cpp le.cpp neospeech.cpp ../implsapi.cpp LR.cpp)
|
add_library(x86lib Atlas.cpp eztrans.cpp dreye.cpp jbj7.cpp kingsoft.cpp le.cpp neospeech.cpp ../implsapi.cpp LR.cpp ${Detours})
|
||||||
target_precompile_headers(voiceroid2 REUSE_FROM pch)
|
target_precompile_headers(voiceroid2 REUSE_FROM pch)
|
||||||
target_precompile_headers(x86lib REUSE_FROM pch)
|
target_precompile_headers(x86lib REUSE_FROM pch)
|
||||||
target_link_libraries(shareddllproxy Mfplat mfuuid x86lib voiceroid2 ${Detours})
|
target_link_libraries(shareddllproxy Mfplat mfuuid x86lib voiceroid2)
|
||||||
set_target_properties(shareddllproxy PROPERTIES OUTPUT_NAME "shareddllproxy32")
|
set_target_properties(shareddllproxy PROPERTIES OUTPUT_NAME "shareddllproxy32")
|
||||||
endif()
|
endif()
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
|
|
||||||
|
#include <detours.h>
|
||||||
|
|
||||||
struct LRProfile
|
struct LRProfile
|
||||||
{
|
{
|
||||||
UINT CodePage;
|
UINT CodePage;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user