mirror of https://github.com/x64dbg/TitanEngine
- removed titanscript related projects (moved to titanscript-update)
This commit is contained in:
parent
3047edc22b
commit
4b352ebb2a
|
|
@ -3,16 +3,6 @@ Microsoft Visual Studio Solution File, Format Version 11.00
|
||||||
# Visual Studio 2010
|
# Visual Studio 2010
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TitanEngine", "TitanEngine\TitanEngine.vcxproj", "{9C7B8246-FDDA-48C7-9634-044969701E40}"
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TitanEngine", "TitanEngine\TitanEngine.vcxproj", "{9C7B8246-FDDA-48C7-9634-044969701E40}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TitanUnitTest", "TitanUnitTest\TitanUnitTest.vcxproj", "{5B5AB3CD-4D32-43B0-8840-E05C9483381D}"
|
|
||||||
ProjectSection(ProjectDependencies) = postProject
|
|
||||||
{9C7B8246-FDDA-48C7-9634-044969701E40} = {9C7B8246-FDDA-48C7-9634-044969701E40}
|
|
||||||
EndProjectSection
|
|
||||||
EndProject
|
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TitanScriptGui", "TitanScriptGui\TitanScriptGui.vcxproj", "{49C88677-C374-4AE2-B431-8F3B424BF245}"
|
|
||||||
ProjectSection(ProjectDependencies) = postProject
|
|
||||||
{9C7B8246-FDDA-48C7-9634-044969701E40} = {9C7B8246-FDDA-48C7-9634-044969701E40}
|
|
||||||
EndProjectSection
|
|
||||||
EndProject
|
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|Win32 = Debug|Win32
|
Debug|Win32 = Debug|Win32
|
||||||
|
|
@ -29,22 +19,6 @@ Global
|
||||||
{9C7B8246-FDDA-48C7-9634-044969701E40}.Release|Win32.Build.0 = Release|Win32
|
{9C7B8246-FDDA-48C7-9634-044969701E40}.Release|Win32.Build.0 = Release|Win32
|
||||||
{9C7B8246-FDDA-48C7-9634-044969701E40}.Release|x64.ActiveCfg = Release|x64
|
{9C7B8246-FDDA-48C7-9634-044969701E40}.Release|x64.ActiveCfg = Release|x64
|
||||||
{9C7B8246-FDDA-48C7-9634-044969701E40}.Release|x64.Build.0 = Release|x64
|
{9C7B8246-FDDA-48C7-9634-044969701E40}.Release|x64.Build.0 = Release|x64
|
||||||
{5B5AB3CD-4D32-43B0-8840-E05C9483381D}.Debug|Win32.ActiveCfg = Debug|Win32
|
|
||||||
{5B5AB3CD-4D32-43B0-8840-E05C9483381D}.Debug|Win32.Build.0 = Debug|Win32
|
|
||||||
{5B5AB3CD-4D32-43B0-8840-E05C9483381D}.Debug|x64.ActiveCfg = Debug|x64
|
|
||||||
{5B5AB3CD-4D32-43B0-8840-E05C9483381D}.Debug|x64.Build.0 = Debug|x64
|
|
||||||
{5B5AB3CD-4D32-43B0-8840-E05C9483381D}.Release|Win32.ActiveCfg = Release|Win32
|
|
||||||
{5B5AB3CD-4D32-43B0-8840-E05C9483381D}.Release|Win32.Build.0 = Release|Win32
|
|
||||||
{5B5AB3CD-4D32-43B0-8840-E05C9483381D}.Release|x64.ActiveCfg = Release|x64
|
|
||||||
{5B5AB3CD-4D32-43B0-8840-E05C9483381D}.Release|x64.Build.0 = Release|x64
|
|
||||||
{49C88677-C374-4AE2-B431-8F3B424BF245}.Debug|Win32.ActiveCfg = Debug|Win32
|
|
||||||
{49C88677-C374-4AE2-B431-8F3B424BF245}.Debug|Win32.Build.0 = Debug|Win32
|
|
||||||
{49C88677-C374-4AE2-B431-8F3B424BF245}.Debug|x64.ActiveCfg = Debug|x64
|
|
||||||
{49C88677-C374-4AE2-B431-8F3B424BF245}.Debug|x64.Build.0 = Debug|x64
|
|
||||||
{49C88677-C374-4AE2-B431-8F3B424BF245}.Release|Win32.ActiveCfg = Release|Win32
|
|
||||||
{49C88677-C374-4AE2-B431-8F3B424BF245}.Release|Win32.Build.0 = Release|Win32
|
|
||||||
{49C88677-C374-4AE2-B431-8F3B424BF245}.Release|x64.ActiveCfg = Release|x64
|
|
||||||
{49C88677-C374-4AE2-B431-8F3B424BF245}.Release|x64.Build.0 = Release|x64
|
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
|
|
|
||||||
|
|
@ -55,9 +55,9 @@ long EngineWndProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||||
if(uMsg == WM_INITDIALOG)
|
if(uMsg == WM_INITDIALOG)
|
||||||
{
|
{
|
||||||
SendMessageA(hwndDlg, WM_SETTEXT, NULL, (LPARAM)&szWindowUnpackerTitle);
|
SendMessageA(hwndDlg, WM_SETTEXT, NULL, (LPARAM)&szWindowUnpackerTitle);
|
||||||
HICON hIconLarge = (HICON)LoadImage(engineHandle, MAKEINTRESOURCE(IDI_ICON1), IMAGE_ICON, 32, 32, LR_DEFAULTSIZE);
|
HICON hIconLarge = (HICON)LoadImage(engineHandle, MAKEINTRESOURCE(IDI_ICON1), IMAGE_ICON, 32, 32, LR_DEFAULTSIZE);
|
||||||
SendMessage(hwndDlg, WM_SETICON, ICON_BIG, (LPARAM)hIconLarge);
|
SendMessage(hwndDlg, WM_SETICON, ICON_BIG, (LPARAM)hIconLarge);
|
||||||
HICON hIconSmall = (HICON)LoadImage(engineHandle, MAKEINTRESOURCE(IDI_ICON1), IMAGE_ICON, 16, 16, LR_DEFAULTSIZE);
|
HICON hIconSmall = (HICON)LoadImage(engineHandle, MAKEINTRESOURCE(IDI_ICON1), IMAGE_ICON, 16, 16, LR_DEFAULTSIZE);
|
||||||
SendMessage(hwndDlg, WM_SETICON, ICON_SMALL, (LPARAM)hIconSmall);
|
SendMessage(hwndDlg, WM_SETICON, ICON_SMALL, (LPARAM)hIconSmall);
|
||||||
SetDlgItemTextA(hwndDlg, IDD_UNPACKERTITLE, szWindowUnpackerLongTitle);
|
SetDlgItemTextA(hwndDlg, IDD_UNPACKERTITLE, szWindowUnpackerLongTitle);
|
||||||
SetDlgItemTextA(hwndDlg, IDC_FILENAME, "filename.exe");
|
SetDlgItemTextA(hwndDlg, IDC_FILENAME, "filename.exe");
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,8 @@ long IsBadReadPtrRemote(HANDLE hProcess, const VOID *lp, SIZE_T length)
|
||||||
|
|
||||||
section += (ULONG_PTR)MemInfo.RegionSize;
|
section += (ULONG_PTR)MemInfo.RegionSize;
|
||||||
|
|
||||||
} while (res < length);
|
}
|
||||||
|
while (res < length);
|
||||||
|
|
||||||
return length; //good
|
return length; //good
|
||||||
}
|
}
|
||||||
|
|
@ -95,7 +96,7 @@ __declspec(dllexport) void* TITCALL DisassembleEx(HANDLE hProcess, LPVOID Disass
|
||||||
{
|
{
|
||||||
_DecodedInst engineDecodedInstructions[1];
|
_DecodedInst engineDecodedInstructions[1];
|
||||||
unsigned int DecodedInstructionsCount = 0;
|
unsigned int DecodedInstructionsCount = 0;
|
||||||
BYTE readBuffer[MAXIMUM_INSTRUCTION_SIZE] = {0};
|
BYTE readBuffer[MAXIMUM_INSTRUCTION_SIZE] = {0};
|
||||||
|
|
||||||
if(hProcess != NULL)
|
if(hProcess != NULL)
|
||||||
{
|
{
|
||||||
|
|
@ -183,4 +184,4 @@ __declspec(dllexport) long TITCALL LengthDisassembleEx(HANDLE hProcess, LPVOID D
|
||||||
__declspec(dllexport) long TITCALL LengthDisassemble(LPVOID DisassmAddress)
|
__declspec(dllexport) long TITCALL LengthDisassemble(LPVOID DisassmAddress)
|
||||||
{
|
{
|
||||||
return LengthDisassembleEx(dbgProcessInformation.hProcess, DisassmAddress);
|
return LengthDisassembleEx(dbgProcessInformation.hProcess, DisassmAddress);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 15 KiB |
|
|
@ -1,29 +0,0 @@
|
||||||
#ifndef TITANSCRIPT_H
|
|
||||||
#define TITANSCRIPT_H
|
|
||||||
|
|
||||||
#if _MSC_VER > 1000
|
|
||||||
//#pragma once
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <windows.h>
|
|
||||||
|
|
||||||
enum eLogType {TS_LOG_NORMAL, TS_LOG_ERROR, TS_LOG_COMMAND, TS_LOG_DEBUG};
|
|
||||||
typedef void(*fLogCallback)(const char* szString, eLogType Type);
|
|
||||||
typedef void(*fLogCallbackW)(const wchar_t* szString, eLogType Type);
|
|
||||||
|
|
||||||
typedef bool (*tScripterLoadFileA)(const char*);
|
|
||||||
typedef bool (*tScripterLoadFileW)(const wchar_t*);
|
|
||||||
typedef bool (*tScripterLoadBuffer)(const char*);
|
|
||||||
typedef bool (*tScripterResume)();
|
|
||||||
typedef bool (*tScripterPause)();
|
|
||||||
typedef bool (*tScripterAutoDebugA)(const char*);
|
|
||||||
typedef bool (*tScripterAutoDebugW)(const wchar_t*);
|
|
||||||
typedef void (*tScripterSetLogCallback)(fLogCallback Callback);
|
|
||||||
typedef void (*tScripterSetLogCallbackW)(fLogCallbackW Callback);
|
|
||||||
typedef bool (*tScripterExecuteWithTitanMistA)(const char*, const char*);
|
|
||||||
typedef bool (*tScripterExecuteWithTitanMistW)(const wchar_t*, const wchar_t*);
|
|
||||||
|
|
||||||
// use like this: tScripterResume foo = GetTSFunctionPointer(Resume);
|
|
||||||
#define GetTSFunctionPointer(x) ((tScripter ## x)GetProcAddress(GetModuleHandleA("TitanScript"), "Scripter" #x))
|
|
||||||
|
|
||||||
#endif /*TITANSCRIPT_H*/
|
|
||||||
|
|
@ -1,324 +0,0 @@
|
||||||
#include "stdafx.h"
|
|
||||||
#include "TitanScriptGui.h"
|
|
||||||
#include "..\SDK\CPP\TitanEngine.h"
|
|
||||||
#include "TitanScript.h"
|
|
||||||
|
|
||||||
#define MAX_LOG_LINE_LENGTH 100
|
|
||||||
#define MAX_LOG_LINE_COUNT 100
|
|
||||||
|
|
||||||
#ifdef _WIN64
|
|
||||||
const WCHAR WindowTitle[] = L"TitanScriptGUI x64";
|
|
||||||
#else
|
|
||||||
const WCHAR WindowTitle[] = L"TitanScriptGUI x86";
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//variables
|
|
||||||
static HINSTANCE hInst;
|
|
||||||
static HWND hLogBox;
|
|
||||||
static HWND hRunBtn;
|
|
||||||
static bool bRunning;
|
|
||||||
static TCHAR FileNameTarget[MAX_PATH] = {};
|
|
||||||
static TCHAR FileNameScript[MAX_PATH] = {};
|
|
||||||
static TCHAR FileNameIni[MAX_PATH] = {};
|
|
||||||
|
|
||||||
//functions
|
|
||||||
static INT_PTR CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
|
|
||||||
static bool GetFileDialog(TCHAR[MAX_PATH]);
|
|
||||||
static void AddLogMessageW(const wchar_t* szLogMessage, eLogType Type);
|
|
||||||
static void SettingSet(const TCHAR* name, const TCHAR* value);
|
|
||||||
static void SettingGet(const TCHAR* name, TCHAR* value, int value_size);
|
|
||||||
static bool FileExists(LPCTSTR szPath);
|
|
||||||
static void CreateDummyUnicodeFile(const TCHAR* szFileName);
|
|
||||||
static DWORD WINAPI TitanScriptExecThread(LPVOID lpParam);
|
|
||||||
|
|
||||||
//TitanScript functions
|
|
||||||
static tScripterLoadFileW load_file = NULL;
|
|
||||||
static tScripterExecuteWithTitanMistW exec = NULL;
|
|
||||||
static tScripterSetLogCallbackW set_log_callback = NULL;
|
|
||||||
|
|
||||||
int APIENTRY _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow)
|
|
||||||
{
|
|
||||||
UNREFERENCED_PARAMETER(hPrevInstance);
|
|
||||||
UNREFERENCED_PARAMETER(lpCmdLine);
|
|
||||||
|
|
||||||
hInst = hInstance;
|
|
||||||
|
|
||||||
DialogBox(hInstance, MAKEINTRESOURCE(IDD_MAINWINDOW), NULL, &WndProc);
|
|
||||||
ExitProcess(NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
INT_PTR CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
|
||||||
{
|
|
||||||
switch (message)
|
|
||||||
{
|
|
||||||
case WM_INITDIALOG:
|
|
||||||
{
|
|
||||||
SetWindowTextW(hWnd, WindowTitle);
|
|
||||||
|
|
||||||
//set icon
|
|
||||||
HICON hIconLarge = (HICON)LoadImage(hInst, MAKEINTRESOURCE(IDI_ICON1), IMAGE_ICON, 32, 32, LR_DEFAULTSIZE);
|
|
||||||
SendMessage(hWnd, WM_SETICON, ICON_BIG, (LPARAM)hIconLarge);
|
|
||||||
HICON hIconSmall = (HICON)LoadImage(hInst, MAKEINTRESOURCE(IDI_ICON1), IMAGE_ICON, 16, 16, LR_DEFAULTSIZE);
|
|
||||||
SendMessage(hWnd, WM_SETICON, ICON_SMALL, (LPARAM)hIconSmall);
|
|
||||||
|
|
||||||
//initialize variables
|
|
||||||
hLogBox = GetDlgItem(hWnd, IDC_LOG);
|
|
||||||
hRunBtn = GetDlgItem(hWnd, IDC_RUN);
|
|
||||||
int i = GetModuleFileName(hInst, FileNameIni, _countof(FileNameIni));
|
|
||||||
while(FileNameIni[i] != TCHAR('\\') && i)
|
|
||||||
i--;
|
|
||||||
if(i)
|
|
||||||
{
|
|
||||||
int len = lstrlen(FileNameIni);
|
|
||||||
while(FileNameIni[i] != TCHAR('.') && i < len)
|
|
||||||
i++;
|
|
||||||
if(i+1 < len)
|
|
||||||
FileNameIni[i] = TCHAR('\0');
|
|
||||||
}
|
|
||||||
lstrcat(FileNameIni, _T(".ini"));
|
|
||||||
CreateDummyUnicodeFile(FileNameIni);
|
|
||||||
|
|
||||||
//restore last files
|
|
||||||
SettingGet(_T("Target"), FileNameTarget, _countof(FileNameTarget));
|
|
||||||
if(lstrlen(FileNameTarget))
|
|
||||||
SetDlgItemText(hWnd, IDC_TARGETPATH, FileNameTarget);
|
|
||||||
SettingGet(_T("Script"), FileNameScript, _countof(FileNameScript));
|
|
||||||
if(lstrlen(FileNameScript))
|
|
||||||
SetDlgItemText(hWnd, IDC_SCRIPTPATH, FileNameScript);
|
|
||||||
|
|
||||||
//make sure TitanScript is available
|
|
||||||
if ( !ExtensionManagerIsPluginLoaded( "TitanScript" ) || !ExtensionManagerIsPluginEnabled( "TitanScript" ) )
|
|
||||||
{
|
|
||||||
AddLogMessageW(L"TitanScript failed to load", TS_LOG_ERROR);
|
|
||||||
#ifdef _WIN64
|
|
||||||
AddLogMessageW(L"Ensure plugins\\x64\\TitanScript.dll exists !", TS_LOG_ERROR);
|
|
||||||
#else
|
|
||||||
AddLogMessageW(L"Ensure plugins\\x86\\TitanScript.dll exists !", TS_LOG_ERROR);
|
|
||||||
#endif //_WIN64
|
|
||||||
EnableWindow(GetDlgItem(hWnd, IDC_RUN ), FALSE);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
load_file = GetTSFunctionPointer( LoadFileW );
|
|
||||||
exec = GetTSFunctionPointer( ExecuteWithTitanMistW );
|
|
||||||
set_log_callback = GetTSFunctionPointer( SetLogCallbackW );
|
|
||||||
set_log_callback(&AddLogMessageW);
|
|
||||||
}
|
|
||||||
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
case WM_COMMAND:
|
|
||||||
{
|
|
||||||
switch (LOWORD(wParam))
|
|
||||||
{
|
|
||||||
case IDC_BROWSETARGET:
|
|
||||||
{
|
|
||||||
if(GetFileDialog(FileNameTarget))
|
|
||||||
{
|
|
||||||
SetDlgItemText(hWnd, IDC_TARGETPATH, FileNameTarget);
|
|
||||||
SettingSet(_T("Target"), FileNameTarget);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case IDC_BROWSESCRIPT:
|
|
||||||
{
|
|
||||||
if(GetFileDialog(FileNameScript))
|
|
||||||
{
|
|
||||||
SetDlgItemText(hWnd, IDC_SCRIPTPATH, FileNameScript);
|
|
||||||
SettingSet(_T("Script"), FileNameScript);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case IDC_RUN:
|
|
||||||
{
|
|
||||||
if(!bRunning)
|
|
||||||
CreateThread(0, 0, TitanScriptExecThread, 0, 0, 0);
|
|
||||||
else
|
|
||||||
StopDebug();
|
|
||||||
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case IDC_COPY: {
|
|
||||||
//get lines
|
|
||||||
LRESULT cnt = SendMessageW(hLogBox, LB_GETCOUNT, 0, 0);
|
|
||||||
|
|
||||||
if (cnt != 0 && cnt != LB_ERR)
|
|
||||||
{
|
|
||||||
WCHAR * copy = (WCHAR *)calloc(1, sizeof(WCHAR));
|
|
||||||
int copyLength = 1;
|
|
||||||
|
|
||||||
for(LRESULT i=0; i<cnt; i++) {
|
|
||||||
LRESULT stringLength = SendMessageW(hLogBox, LB_GETTEXTLEN, i, 0);
|
|
||||||
copyLength += (int)stringLength + 2;
|
|
||||||
|
|
||||||
copy = (WCHAR *)realloc(copy, copyLength * sizeof(WCHAR));
|
|
||||||
if (copy)
|
|
||||||
{
|
|
||||||
copy[copyLength - (int)stringLength - 2] = 0;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
WCHAR * buf = (WCHAR *)calloc(stringLength + 1, sizeof(WCHAR));
|
|
||||||
|
|
||||||
if (buf && (SendMessageW(hLogBox, LB_GETTEXT, i, (LPARAM)buf) != LB_ERR))
|
|
||||||
{
|
|
||||||
wcscat(copy, buf);
|
|
||||||
wcscat(copy, L"\r\n");
|
|
||||||
|
|
||||||
free(buf);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//copy to clipboard
|
|
||||||
HGLOBAL clipbuffer;
|
|
||||||
WCHAR* buffer;
|
|
||||||
clipbuffer = GlobalAlloc(GMEM_MOVEABLE, (wcslen(copy) + 1) * sizeof(WCHAR));
|
|
||||||
if (clipbuffer)
|
|
||||||
{
|
|
||||||
buffer = (TCHAR*)GlobalLock(clipbuffer);
|
|
||||||
wcscpy(buffer, copy);
|
|
||||||
GlobalUnlock(clipbuffer);
|
|
||||||
OpenClipboard(NULL);
|
|
||||||
EmptyClipboard();
|
|
||||||
UINT format;
|
|
||||||
#ifdef UNICODE
|
|
||||||
format = CF_UNICODETEXT;
|
|
||||||
#else
|
|
||||||
format = CF_OEMTEXT;
|
|
||||||
#endif
|
|
||||||
SetClipboardData(format, clipbuffer);
|
|
||||||
}
|
|
||||||
|
|
||||||
CloseClipboard();
|
|
||||||
|
|
||||||
free(copy);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
|
|
||||||
case WM_CLOSE:
|
|
||||||
{
|
|
||||||
EndDialog(hWnd, NULL);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
|
||||||
{
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static bool GetFileDialog(TCHAR Buffer[MAX_PATH])
|
|
||||||
{
|
|
||||||
OPENFILENAME sOpenFileName = {0};
|
|
||||||
const TCHAR szFilterString[] = _T("All Files \0*.*\0\0");
|
|
||||||
const TCHAR szDialogTitle[] = _T("TitanScriptGUI");
|
|
||||||
|
|
||||||
Buffer[0] = 0;
|
|
||||||
|
|
||||||
sOpenFileName.lStructSize = sizeof(sOpenFileName);
|
|
||||||
sOpenFileName.lpstrFilter = szFilterString;
|
|
||||||
sOpenFileName.lpstrFile = Buffer;
|
|
||||||
sOpenFileName.nMaxFile = MAX_PATH;
|
|
||||||
sOpenFileName.Flags = OFN_FILEMUSTEXIST | OFN_PATHMUSTEXIST | OFN_LONGNAMES | OFN_EXPLORER | OFN_HIDEREADONLY;
|
|
||||||
sOpenFileName.lpstrTitle = szDialogTitle;
|
|
||||||
|
|
||||||
return (TRUE == GetOpenFileName(&sOpenFileName));
|
|
||||||
}
|
|
||||||
|
|
||||||
static void AddLogMessageW(const wchar_t* szLogMessage, eLogType Type)
|
|
||||||
{
|
|
||||||
if (wcslen(szLogMessage) > 0)
|
|
||||||
{
|
|
||||||
LRESULT cSelect = SendMessage(hLogBox, LB_INSERTSTRING, (WPARAM)-1, (LPARAM)szLogMessage);
|
|
||||||
if (cSelect == LB_ERR)
|
|
||||||
{
|
|
||||||
MessageBoxW(0, L"ERROR LOG MESSAGE - LB_INSERTSTRING", L"ERROR", MB_ICONWARNING);
|
|
||||||
} else if (cSelect == LB_ERRSPACE)
|
|
||||||
{
|
|
||||||
MessageBoxW(0, L"ERROR LOG MESSAGE - LB_ERRSPACE - Not enough space!", L"ERROR", MB_ICONWARNING);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
SendMessage(hLogBox, LB_SETCURSEL, cSelect, NULL);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static bool IsValidChar(char s)
|
|
||||||
{
|
|
||||||
if (isalnum(s))
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
else if (s == '$' || s == '-' || s == '>')
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static void SettingSet(const TCHAR* name, const TCHAR* value)
|
|
||||||
{
|
|
||||||
WritePrivateProfileString(_T("Settings"), name, value, FileNameIni);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void SettingGet(const TCHAR* name, TCHAR* value, int value_size)
|
|
||||||
{
|
|
||||||
GetPrivateProfileString(_T("Settings"), name, _T(""), value, value_size, FileNameIni);
|
|
||||||
}
|
|
||||||
|
|
||||||
static bool FileExists(LPCTSTR szPath)
|
|
||||||
{
|
|
||||||
DWORD dwAttrib = GetFileAttributes(szPath);
|
|
||||||
return (dwAttrib != INVALID_FILE_ATTRIBUTES && !(dwAttrib & FILE_ATTRIBUTE_DIRECTORY));
|
|
||||||
}
|
|
||||||
|
|
||||||
static void CreateDummyUnicodeFile(const TCHAR* szFileName)
|
|
||||||
{
|
|
||||||
//http://www.codeproject.com/Articles/9071/Using-Unicode-in-INI-files
|
|
||||||
if (!FileExists(szFileName))
|
|
||||||
{
|
|
||||||
// UTF16-LE BOM(FFFE)
|
|
||||||
WORD wBOM = 0xFEFF;
|
|
||||||
DWORD NumberOfBytesWritten;
|
|
||||||
HANDLE hFile = CreateFile(szFileName, GENERIC_WRITE, 0, NULL, CREATE_NEW, FILE_ATTRIBUTE_NORMAL, NULL);
|
|
||||||
WriteFile(hFile, &wBOM, sizeof(WORD), &NumberOfBytesWritten, NULL);
|
|
||||||
CloseHandle(hFile);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static DWORD WINAPI TitanScriptExecThread(LPVOID lpParam)
|
|
||||||
{
|
|
||||||
if(!load_file(FileNameScript))
|
|
||||||
{
|
|
||||||
AddLogMessageW(L"Script failed to load", TS_LOG_ERROR);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
SetWindowText(hRunBtn, _T("Stop"));
|
|
||||||
bRunning = true;
|
|
||||||
if(!exec(FileNameTarget, L"")) //TitanScript will generate the output filename
|
|
||||||
{
|
|
||||||
AddLogMessageW(L"Failed to execute", TS_LOG_ERROR);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
AddLogMessageW(L"Debugging stopped", TS_LOG_NORMAL);
|
|
||||||
bRunning = false;
|
|
||||||
SetWindowText(hRunBtn, _T("Run"));
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#include "resource.h"
|
|
||||||
Binary file not shown.
|
|
@ -1,188 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<ItemGroup Label="ProjectConfigurations">
|
|
||||||
<ProjectConfiguration Include="Debug|Win32">
|
|
||||||
<Configuration>Debug</Configuration>
|
|
||||||
<Platform>Win32</Platform>
|
|
||||||
</ProjectConfiguration>
|
|
||||||
<ProjectConfiguration Include="Debug|x64">
|
|
||||||
<Configuration>Debug</Configuration>
|
|
||||||
<Platform>x64</Platform>
|
|
||||||
</ProjectConfiguration>
|
|
||||||
<ProjectConfiguration Include="Release|Win32">
|
|
||||||
<Configuration>Release</Configuration>
|
|
||||||
<Platform>Win32</Platform>
|
|
||||||
</ProjectConfiguration>
|
|
||||||
<ProjectConfiguration Include="Release|x64">
|
|
||||||
<Configuration>Release</Configuration>
|
|
||||||
<Platform>x64</Platform>
|
|
||||||
</ProjectConfiguration>
|
|
||||||
</ItemGroup>
|
|
||||||
<PropertyGroup Label="Globals">
|
|
||||||
<ProjectGuid>{49C88677-C374-4AE2-B431-8F3B424BF245}</ProjectGuid>
|
|
||||||
<Keyword>Win32Proj</Keyword>
|
|
||||||
<RootNamespace>TitanScriptGui</RootNamespace>
|
|
||||||
</PropertyGroup>
|
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
|
||||||
<ConfigurationType>Application</ConfigurationType>
|
|
||||||
<UseDebugLibraries>true</UseDebugLibraries>
|
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
|
||||||
<ConfigurationType>Application</ConfigurationType>
|
|
||||||
<UseDebugLibraries>true</UseDebugLibraries>
|
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
|
||||||
<ConfigurationType>Application</ConfigurationType>
|
|
||||||
<UseDebugLibraries>false</UseDebugLibraries>
|
|
||||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
|
||||||
<ConfigurationType>Application</ConfigurationType>
|
|
||||||
<UseDebugLibraries>false</UseDebugLibraries>
|
|
||||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
|
||||||
</PropertyGroup>
|
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
|
||||||
<ImportGroup Label="ExtensionSettings">
|
|
||||||
</ImportGroup>
|
|
||||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
|
||||||
</ImportGroup>
|
|
||||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
|
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
|
||||||
</ImportGroup>
|
|
||||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
|
||||||
</ImportGroup>
|
|
||||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
|
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
|
||||||
</ImportGroup>
|
|
||||||
<PropertyGroup Label="UserMacros" />
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
|
||||||
<LinkIncremental>true</LinkIncremental>
|
|
||||||
<OutDir>$(SolutionDir)\$(Configuration)\x32\</OutDir>
|
|
||||||
<IntDir>$(Configuration)\x32\</IntDir>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
|
||||||
<LinkIncremental>true</LinkIncremental>
|
|
||||||
<OutDir>$(SolutionDir)\$(Configuration)\x64\</OutDir>
|
|
||||||
<IntDir>$(Configuration)\x64\</IntDir>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
|
||||||
<LinkIncremental>false</LinkIncremental>
|
|
||||||
<OutDir>$(SolutionDir)\$(Configuration)\x32\</OutDir>
|
|
||||||
<IntDir>$(Configuration)\x32\</IntDir>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
|
||||||
<LinkIncremental>false</LinkIncremental>
|
|
||||||
<OutDir>$(SolutionDir)\$(Configuration)\x64\</OutDir>
|
|
||||||
<IntDir>$(Configuration)\x64\</IntDir>
|
|
||||||
</PropertyGroup>
|
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
|
||||||
<ClCompile>
|
|
||||||
<PrecompiledHeader>Use</PrecompiledHeader>
|
|
||||||
<WarningLevel>Level3</WarningLevel>
|
|
||||||
<Optimization>Disabled</Optimization>
|
|
||||||
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
||||||
</ClCompile>
|
|
||||||
<Link>
|
|
||||||
<SubSystem>Windows</SubSystem>
|
|
||||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
|
||||||
<AdditionalDependencies>$(OutDir)TitanEngine.lib;comdlg32.lib;user32.lib</AdditionalDependencies>
|
|
||||||
</Link>
|
|
||||||
<Manifest>
|
|
||||||
<AdditionalManifestFiles>manifest.xml</AdditionalManifestFiles>
|
|
||||||
</Manifest>
|
|
||||||
</ItemDefinitionGroup>
|
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
|
||||||
<ClCompile>
|
|
||||||
<PrecompiledHeader>Use</PrecompiledHeader>
|
|
||||||
<WarningLevel>Level3</WarningLevel>
|
|
||||||
<Optimization>Disabled</Optimization>
|
|
||||||
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
||||||
</ClCompile>
|
|
||||||
<Link>
|
|
||||||
<SubSystem>Windows</SubSystem>
|
|
||||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
|
||||||
<AdditionalDependencies>$(OutDir)TitanEngine.lib;comdlg32.lib;user32.lib</AdditionalDependencies>
|
|
||||||
</Link>
|
|
||||||
<Manifest>
|
|
||||||
<AdditionalManifestFiles>manifest.xml</AdditionalManifestFiles>
|
|
||||||
</Manifest>
|
|
||||||
</ItemDefinitionGroup>
|
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
|
||||||
<ClCompile>
|
|
||||||
<WarningLevel>Level3</WarningLevel>
|
|
||||||
<PrecompiledHeader>Use</PrecompiledHeader>
|
|
||||||
<Optimization>MaxSpeed</Optimization>
|
|
||||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
|
||||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
|
||||||
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
||||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
|
||||||
</ClCompile>
|
|
||||||
<Link>
|
|
||||||
<SubSystem>Windows</SubSystem>
|
|
||||||
<GenerateDebugInformation>false</GenerateDebugInformation>
|
|
||||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
|
||||||
<OptimizeReferences>true</OptimizeReferences>
|
|
||||||
<AdditionalDependencies>$(OutDir)TitanEngine.lib;comdlg32.lib;user32.lib</AdditionalDependencies>
|
|
||||||
<GenerateMapFile>true</GenerateMapFile>
|
|
||||||
</Link>
|
|
||||||
<Manifest>
|
|
||||||
<AdditionalManifestFiles>manifest.xml</AdditionalManifestFiles>
|
|
||||||
</Manifest>
|
|
||||||
</ItemDefinitionGroup>
|
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
|
||||||
<ClCompile>
|
|
||||||
<WarningLevel>Level3</WarningLevel>
|
|
||||||
<PrecompiledHeader>Use</PrecompiledHeader>
|
|
||||||
<Optimization>MaxSpeed</Optimization>
|
|
||||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
|
||||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
|
||||||
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
||||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
|
||||||
</ClCompile>
|
|
||||||
<Link>
|
|
||||||
<SubSystem>Windows</SubSystem>
|
|
||||||
<GenerateDebugInformation>false</GenerateDebugInformation>
|
|
||||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
|
||||||
<OptimizeReferences>true</OptimizeReferences>
|
|
||||||
<AdditionalDependencies>$(OutDir)TitanEngine.lib;comdlg32.lib;user32.lib</AdditionalDependencies>
|
|
||||||
<GenerateMapFile>true</GenerateMapFile>
|
|
||||||
</Link>
|
|
||||||
<Manifest>
|
|
||||||
<AdditionalManifestFiles>manifest.xml</AdditionalManifestFiles>
|
|
||||||
</Manifest>
|
|
||||||
</ItemDefinitionGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<None Include="MAINICON.ico" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ClInclude Include="..\SDK\CPP\TitanEngine.h" />
|
|
||||||
<ClInclude Include="..\SDK\CPP\TitanEngine.hpp" />
|
|
||||||
<ClInclude Include="Resource.h" />
|
|
||||||
<ClInclude Include="stdafx.h" />
|
|
||||||
<ClInclude Include="targetver.h" />
|
|
||||||
<ClInclude Include="TitanScript.h" />
|
|
||||||
<ClInclude Include="TitanScriptGui.h" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ClCompile Include="stdafx.cpp">
|
|
||||||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
|
|
||||||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
|
|
||||||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
|
|
||||||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
|
|
||||||
</ClCompile>
|
|
||||||
<ClCompile Include="TitanScriptGui.cpp" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ResourceCompile Include="TitanScriptGui.rc" />
|
|
||||||
</ItemGroup>
|
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
|
||||||
<ImportGroup Label="ExtensionTargets">
|
|
||||||
</ImportGroup>
|
|
||||||
</Project>
|
|
||||||
|
|
@ -1,64 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<ItemGroup>
|
|
||||||
<Filter Include="Header Files">
|
|
||||||
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
|
||||||
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
|
|
||||||
</Filter>
|
|
||||||
<Filter Include="Source Files">
|
|
||||||
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
|
||||||
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
|
||||||
</Filter>
|
|
||||||
<Filter Include="Resource Files">
|
|
||||||
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
|
||||||
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
|
|
||||||
</Filter>
|
|
||||||
<Filter Include="Resource Files\Images">
|
|
||||||
<UniqueIdentifier>{6072cfa4-c101-4f1a-9920-89951ba83a2b}</UniqueIdentifier>
|
|
||||||
</Filter>
|
|
||||||
<Filter Include="Header Files\SDK">
|
|
||||||
<UniqueIdentifier>{a0cc27fd-de5f-4551-9fe5-4a45f9ae862c}</UniqueIdentifier>
|
|
||||||
</Filter>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<None Include="MAINICON.ico">
|
|
||||||
<Filter>Resource Files\Images</Filter>
|
|
||||||
</None>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ClInclude Include="stdafx.h">
|
|
||||||
<Filter>Header Files</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="targetver.h">
|
|
||||||
<Filter>Header Files</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="Resource.h">
|
|
||||||
<Filter>Header Files</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="TitanScriptGui.h">
|
|
||||||
<Filter>Header Files</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="TitanScript.h">
|
|
||||||
<Filter>Header Files</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="..\SDK\CPP\TitanEngine.h">
|
|
||||||
<Filter>Header Files\SDK</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="..\SDK\CPP\TitanEngine.hpp">
|
|
||||||
<Filter>Header Files\SDK</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ClCompile Include="stdafx.cpp">
|
|
||||||
<Filter>Source Files</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
<ClCompile Include="TitanScriptGui.cpp">
|
|
||||||
<Filter>Source Files</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ResourceCompile Include="TitanScriptGui.rc">
|
|
||||||
<Filter>Resource Files</Filter>
|
|
||||||
</ResourceCompile>
|
|
||||||
</ItemGroup>
|
|
||||||
</Project>
|
|
||||||
|
|
@ -1,17 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
||||||
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
|
|
||||||
<dependency>
|
|
||||||
<dependentAssembly>
|
|
||||||
<assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="*" publicKeyToken="6595b64144ccf1df" language="*"/>
|
|
||||||
</dependentAssembly>
|
|
||||||
</dependency>
|
|
||||||
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
|
|
||||||
<security>
|
|
||||||
<requestedPrivileges>
|
|
||||||
<requestedExecutionLevel
|
|
||||||
level="asInvoker"
|
|
||||||
uiAccess="false"/>
|
|
||||||
</requestedPrivileges>
|
|
||||||
</security>
|
|
||||||
</trustInfo>
|
|
||||||
</assembly>
|
|
||||||
Binary file not shown.
|
|
@ -1 +0,0 @@
|
||||||
#include "stdafx.h"
|
|
||||||
|
|
@ -1,12 +0,0 @@
|
||||||
#pragma once
|
|
||||||
#define _CRT_SECURE_NO_WARNINGS
|
|
||||||
#include "targetver.h"
|
|
||||||
|
|
||||||
#define WIN32_LEAN_AND_MEAN
|
|
||||||
#include <windows.h>
|
|
||||||
#include <commdlg.h>
|
|
||||||
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <malloc.h>
|
|
||||||
#include <memory.h>
|
|
||||||
#include <tchar.h>
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#include <SDKDDKVer.h>
|
|
||||||
|
|
@ -1,16 +0,0 @@
|
||||||
Setup:
|
|
||||||
- Put disasm.dll into Debug/Release folder.
|
|
||||||
- Put TitanEngine.dll into Debug/Release folder.
|
|
||||||
- Put TitanScript.dll into plugins/x86/ folder in Debug/Release folder.
|
|
||||||
(Can be found here https://bitbucket.org/cypherpunk/titanscript-update)
|
|
||||||
|
|
||||||
Usage:
|
|
||||||
- TitanUnitTest.exe script.osc target.exe
|
|
||||||
|
|
||||||
It understands complete OllyDbgScript language and adds additional TE commands
|
|
||||||
|
|
||||||
Example script:
|
|
||||||
#log
|
|
||||||
|
|
||||||
GPA "IsDebuggerPresent", "kernel32.dll"
|
|
||||||
LOG $RESULT
|
|
||||||
|
|
@ -1,26 +0,0 @@
|
||||||
#ifndef TITANSCRIPT_H
|
|
||||||
#define TITANSCRIPT_H
|
|
||||||
|
|
||||||
#if _MSC_VER > 1000
|
|
||||||
//#pragma once
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <windows.h>
|
|
||||||
|
|
||||||
enum eLogType {TS_LOG_NORMAL, TS_LOG_ERROR, TS_LOG_COMMAND, TS_LOG_DEBUG};
|
|
||||||
typedef void(*fLogCallback)(const char* szString, eLogType Type);
|
|
||||||
|
|
||||||
typedef bool (*tScripterLoadFileA)(const char*);
|
|
||||||
typedef bool (*tScripterLoadFileW)(const wchar_t*);
|
|
||||||
typedef bool (*tScripterLoadBuffer)(const char*);
|
|
||||||
typedef bool (*tScripterResume)();
|
|
||||||
typedef bool (*tScripterPause)();
|
|
||||||
typedef bool (*tScripterAutoDebugA)(const char*);
|
|
||||||
typedef bool (*tScripterAutoDebugW)(const wchar_t*);
|
|
||||||
typedef void (*tScripterSetLogCallback)(fLogCallback Callback);
|
|
||||||
typedef bool (*tScripterExecuteWithTitanMistA)(const char*, const char*);
|
|
||||||
|
|
||||||
// use like this: tScripterResume foo = GetTSFunctionPointer(Resume);
|
|
||||||
#define GetTSFunctionPointer(x) ((tScripter ## x)GetProcAddress(GetModuleHandleA("TitanScript"), "Scripter" #x))
|
|
||||||
|
|
||||||
#endif /*TITANSCRIPT_H*/
|
|
||||||
|
|
@ -1,43 +0,0 @@
|
||||||
#include "stdafx.h"
|
|
||||||
#include "..\SDK\CPP\TitanEngine.h"
|
|
||||||
#include "TitanScript.h"
|
|
||||||
#include <iostream>
|
|
||||||
|
|
||||||
void log_callback( const char* str, eLogType log_type );
|
|
||||||
|
|
||||||
int main(int argc, char* argv[])
|
|
||||||
{
|
|
||||||
if(argc < 3)
|
|
||||||
{
|
|
||||||
log_callback("Usage: titan_unittest.exe script.osc target.exe", TS_LOG_ERROR);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( !ExtensionManagerIsPluginLoaded( "TitanScript" ) || !ExtensionManagerIsPluginEnabled( "TitanScript" ) )
|
|
||||||
{
|
|
||||||
throw std::runtime_error( "TitanScript failed to load!" );
|
|
||||||
}
|
|
||||||
|
|
||||||
tScripterLoadFileA load_file = GetTSFunctionPointer( LoadFileA );
|
|
||||||
tScripterExecuteWithTitanMistA exec = GetTSFunctionPointer( ExecuteWithTitanMistA );
|
|
||||||
tScripterSetLogCallback set_log_callback = GetTSFunctionPointer( SetLogCallback );
|
|
||||||
|
|
||||||
set_log_callback(&log_callback );
|
|
||||||
|
|
||||||
if(!load_file(argv[1]))
|
|
||||||
{
|
|
||||||
log_callback("Error loading script", TS_LOG_ERROR);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
exec(argv[2], "dump.exe" );
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void log_callback( const char* str, eLogType log_type )
|
|
||||||
{
|
|
||||||
std::cout << str << "\n" << std::flush;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
@ -1,174 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<ItemGroup Label="ProjectConfigurations">
|
|
||||||
<ProjectConfiguration Include="Debug|Win32">
|
|
||||||
<Configuration>Debug</Configuration>
|
|
||||||
<Platform>Win32</Platform>
|
|
||||||
</ProjectConfiguration>
|
|
||||||
<ProjectConfiguration Include="Debug|x64">
|
|
||||||
<Configuration>Debug</Configuration>
|
|
||||||
<Platform>x64</Platform>
|
|
||||||
</ProjectConfiguration>
|
|
||||||
<ProjectConfiguration Include="Release|Win32">
|
|
||||||
<Configuration>Release</Configuration>
|
|
||||||
<Platform>Win32</Platform>
|
|
||||||
</ProjectConfiguration>
|
|
||||||
<ProjectConfiguration Include="Release|x64">
|
|
||||||
<Configuration>Release</Configuration>
|
|
||||||
<Platform>x64</Platform>
|
|
||||||
</ProjectConfiguration>
|
|
||||||
</ItemGroup>
|
|
||||||
<PropertyGroup Label="Globals">
|
|
||||||
<ProjectGuid>{5B5AB3CD-4D32-43B0-8840-E05C9483381D}</ProjectGuid>
|
|
||||||
<Keyword>Win32Proj</Keyword>
|
|
||||||
<RootNamespace>titan_unittest</RootNamespace>
|
|
||||||
</PropertyGroup>
|
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
|
||||||
<ConfigurationType>Application</ConfigurationType>
|
|
||||||
<UseDebugLibraries>true</UseDebugLibraries>
|
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
|
||||||
<CLRSupport>true</CLRSupport>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
|
||||||
<ConfigurationType>Application</ConfigurationType>
|
|
||||||
<UseDebugLibraries>true</UseDebugLibraries>
|
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
|
||||||
<CLRSupport>true</CLRSupport>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
|
||||||
<ConfigurationType>Application</ConfigurationType>
|
|
||||||
<UseDebugLibraries>false</UseDebugLibraries>
|
|
||||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
|
||||||
<ConfigurationType>Application</ConfigurationType>
|
|
||||||
<UseDebugLibraries>false</UseDebugLibraries>
|
|
||||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
|
||||||
</PropertyGroup>
|
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
|
||||||
<ImportGroup Label="ExtensionSettings">
|
|
||||||
</ImportGroup>
|
|
||||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
|
||||||
</ImportGroup>
|
|
||||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
|
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
|
||||||
</ImportGroup>
|
|
||||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
|
||||||
</ImportGroup>
|
|
||||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
|
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
|
||||||
</ImportGroup>
|
|
||||||
<PropertyGroup Label="UserMacros" />
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
|
||||||
<LinkIncremental>true</LinkIncremental>
|
|
||||||
<OutDir>$(SolutionDir)\$(Configuration)\x32\</OutDir>
|
|
||||||
<IntDir>$(Configuration)\x32\</IntDir>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
|
||||||
<LinkIncremental>true</LinkIncremental>
|
|
||||||
<OutDir>$(SolutionDir)\$(Configuration)\x64\</OutDir>
|
|
||||||
<IntDir>$(Configuration)\x64\</IntDir>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
|
||||||
<LinkIncremental>false</LinkIncremental>
|
|
||||||
<OutDir>$(SolutionDir)\$(Configuration)\x32\</OutDir>
|
|
||||||
<IntDir>$(Configuration)\x32\</IntDir>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
|
||||||
<LinkIncremental>false</LinkIncremental>
|
|
||||||
<OutDir>$(SolutionDir)\$(Configuration)\x64\</OutDir>
|
|
||||||
<IntDir>$(Configuration)\x64\</IntDir>
|
|
||||||
</PropertyGroup>
|
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
|
||||||
<ClCompile>
|
|
||||||
<PrecompiledHeader>Use</PrecompiledHeader>
|
|
||||||
<WarningLevel>Level3</WarningLevel>
|
|
||||||
<Optimization>Disabled</Optimization>
|
|
||||||
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
||||||
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
|
||||||
</ClCompile>
|
|
||||||
<Link>
|
|
||||||
<SubSystem>Console</SubSystem>
|
|
||||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
|
||||||
<AdditionalDependencies>$(OutDir)TitanEngine.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
|
||||||
<EntryPointSymbol>
|
|
||||||
</EntryPointSymbol>
|
|
||||||
</Link>
|
|
||||||
</ItemDefinitionGroup>
|
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
|
||||||
<ClCompile>
|
|
||||||
<PrecompiledHeader>Use</PrecompiledHeader>
|
|
||||||
<WarningLevel>Level3</WarningLevel>
|
|
||||||
<Optimization>Disabled</Optimization>
|
|
||||||
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
||||||
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
|
||||||
</ClCompile>
|
|
||||||
<Link>
|
|
||||||
<SubSystem>Console</SubSystem>
|
|
||||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
|
||||||
<AdditionalDependencies>$(OutDir)TitanEngine.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
|
||||||
<EntryPointSymbol>
|
|
||||||
</EntryPointSymbol>
|
|
||||||
</Link>
|
|
||||||
</ItemDefinitionGroup>
|
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
|
||||||
<ClCompile>
|
|
||||||
<WarningLevel>Level3</WarningLevel>
|
|
||||||
<PrecompiledHeader>Use</PrecompiledHeader>
|
|
||||||
<Optimization>MaxSpeed</Optimization>
|
|
||||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
|
||||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
|
||||||
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
||||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
|
||||||
</ClCompile>
|
|
||||||
<Link>
|
|
||||||
<SubSystem>Console</SubSystem>
|
|
||||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
|
||||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
|
||||||
<OptimizeReferences>true</OptimizeReferences>
|
|
||||||
<AdditionalDependencies>$(OutDir)TitanEngine.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
|
||||||
</Link>
|
|
||||||
</ItemDefinitionGroup>
|
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
|
||||||
<ClCompile>
|
|
||||||
<WarningLevel>Level3</WarningLevel>
|
|
||||||
<PrecompiledHeader>Use</PrecompiledHeader>
|
|
||||||
<Optimization>MaxSpeed</Optimization>
|
|
||||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
|
||||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
|
||||||
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
||||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
|
||||||
</ClCompile>
|
|
||||||
<Link>
|
|
||||||
<SubSystem>Console</SubSystem>
|
|
||||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
|
||||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
|
||||||
<OptimizeReferences>true</OptimizeReferences>
|
|
||||||
<AdditionalDependencies>$(OutDir)TitanEngine.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
|
||||||
</Link>
|
|
||||||
</ItemDefinitionGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ClInclude Include="..\SDK\CPP\TitanEngine.h" />
|
|
||||||
<ClInclude Include="..\SDK\CPP\TitanEngine.hpp" />
|
|
||||||
<ClInclude Include="stdafx.h" />
|
|
||||||
<ClInclude Include="targetver.h" />
|
|
||||||
<ClInclude Include="TitanScript.h" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ClCompile Include="stdafx.cpp">
|
|
||||||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
|
|
||||||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
|
|
||||||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
|
|
||||||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
|
|
||||||
</ClCompile>
|
|
||||||
<ClCompile Include="TitanUnitTest.cpp" />
|
|
||||||
</ItemGroup>
|
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
|
||||||
<ImportGroup Label="ExtensionTargets">
|
|
||||||
</ImportGroup>
|
|
||||||
</Project>
|
|
||||||
|
|
@ -1,41 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<ItemGroup>
|
|
||||||
<Filter Include="Source Files">
|
|
||||||
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
|
||||||
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
|
||||||
</Filter>
|
|
||||||
<Filter Include="Header Files">
|
|
||||||
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
|
||||||
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
|
|
||||||
</Filter>
|
|
||||||
<Filter Include="Header Files\SDK">
|
|
||||||
<UniqueIdentifier>{dcabac3b-acfe-4e79-a827-01d97b369669}</UniqueIdentifier>
|
|
||||||
</Filter>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ClCompile Include="stdafx.cpp">
|
|
||||||
<Filter>Source Files</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
<ClCompile Include="TitanUnitTest.cpp">
|
|
||||||
<Filter>Source Files</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ClInclude Include="stdafx.h">
|
|
||||||
<Filter>Header Files</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="targetver.h">
|
|
||||||
<Filter>Header Files</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="TitanScript.h">
|
|
||||||
<Filter>Header Files</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="..\SDK\CPP\TitanEngine.h">
|
|
||||||
<Filter>Header Files\SDK</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="..\SDK\CPP\TitanEngine.hpp">
|
|
||||||
<Filter>Header Files\SDK</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
</ItemGroup>
|
|
||||||
</Project>
|
|
||||||
Binary file not shown.
|
|
@ -1 +0,0 @@
|
||||||
#include "stdafx.h"
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#include "targetver.h"
|
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <tchar.h>
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#include <SDKDDKVer.h>
|
|
||||||
|
|
@ -1,29 +0,0 @@
|
||||||
@echo off
|
|
||||||
IF EXIST TitanScriptRelease rmdir TitanScriptRelease /s /q
|
|
||||||
mkdir TitanScriptRelease
|
|
||||||
mkdir .\TitanScriptRelease\x86
|
|
||||||
mkdir .\TitanScriptRelease\x64
|
|
||||||
|
|
||||||
|
|
||||||
copy .\Release\x32\TitanScriptGui.exe .\TitanScriptRelease\x86\TitanScriptGuix86.exe
|
|
||||||
copy .\Release\x32\TitanScriptGui.map .\TitanScriptRelease\x86\TitanScriptGuix86.map
|
|
||||||
copy .\Release\x32\TitanEngine.dll .\TitanScriptRelease\x86\TitanEngine.dll
|
|
||||||
copy .\Release\x32\TitanEngine.map .\TitanScriptRelease\x86\TitanEngine.map
|
|
||||||
|
|
||||||
copy .\Release\x64\TitanScriptGui.exe .\TitanScriptRelease\x64\TitanScriptGuix64.exe
|
|
||||||
copy .\Release\x64\TitanScriptGui.map .\TitanScriptRelease\x64\TitanScriptGuix64.map
|
|
||||||
copy .\Release\x64\TitanEngine.dll .\TitanScriptRelease\x64\TitanEngine.dll
|
|
||||||
copy .\Release\x64\TitanEngine.map .\TitanScriptRelease\x64\TitanEngine.map
|
|
||||||
|
|
||||||
mkdir .\TitanScriptRelease\x86\plugins
|
|
||||||
mkdir .\TitanScriptRelease\x86\plugins\x86
|
|
||||||
mkdir .\TitanScriptRelease\x64\plugins
|
|
||||||
mkdir .\TitanScriptRelease\x64\plugins\x64
|
|
||||||
|
|
||||||
copy ..\titanscript-update\Release\Win32\TitanScript.dll .\TitanScriptRelease\x86\plugins\x86\TitanScript.dll
|
|
||||||
copy ..\titanscript-update\Release\Win32\TitanScript.map .\TitanScriptRelease\x86\plugins\x86\TitanScript.map
|
|
||||||
copy ..\titanscript-update\Release\x64\TitanScript.dll .\TitanScriptRelease\x64\plugins\x64\TitanScript.dll
|
|
||||||
copy ..\titanscript-update\Release\x64\TitanScript.map .\TitanScriptRelease\x64\plugins\x64\TitanScript.map
|
|
||||||
|
|
||||||
pause
|
|
||||||
|
|
||||||
Loading…
Reference in New Issue