Skip to content

Commit eed82ac

Browse files
authored
Merge pull request #3 from multitheftauto/feature/servicing
Add servicing script by Dutchman101
2 parents 213d8e8 + 7a503f3 commit eed82ac

File tree

8 files changed

+486
-16
lines changed

8 files changed

+486
-16
lines changed

include/ServicingScript.h

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*****************************************************************************
2+
*
3+
* PROJECT: MTADiag
4+
* LICENSE: GNU GPL v3
5+
* FILE: ServicingScript.h
6+
* PURPOSE: Servicing script launcher
7+
*
8+
* Multi Theft Auto is available from http://www.multitheftauto.com/
9+
*
10+
*****************************************************************************/
11+
#pragma once
12+
#include <string>
13+
14+
class ServicingScript
15+
{
16+
public:
17+
ServicingScript() = default;
18+
19+
void Run();
20+
21+
private:
22+
std::string GetScriptContent();
23+
};

include/resource.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/*****************************************************************************
2+
*
3+
* PROJECT: MTADiag
4+
* LICENSE: GNU GPL v3
5+
* FILE: resource.h
6+
* PURPOSE: Resource header file
7+
*
8+
* Multi Theft Auto is available from http://www.multitheftauto.com/
9+
*
10+
*****************************************************************************/
11+
#define TEXTFILE 256
12+
#define IDR_SERVICING_SCRIPT 101

premake5.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ workspace "MTADiag"
77
toolset "v141_xp" -- Enable XP support
88
flags { "StaticRuntime" }
99
vectorextensions "SSE"
10+
defines { "_CRT_SECURE_NO_WARNINGS", "WIN32_LEAN_AND_MEAN" }
1011

1112
filter "configurations:Debug"
1213
targetsuffix "_d"
@@ -20,9 +21,12 @@ workspace "MTADiag"
2021

2122
project "MTADiag"
2223
language "C++"
23-
cppdialect "C++14"
24+
cppdialect "C++17"
2425
kind "ConsoleApp"
2526

27+
buildoptions { "/std:c++latest" }
28+
linkoptions { "/MANIFESTUAC:\"level='requireAdministrator' \"" }
29+
2630
defines { "BUILDING_LIBCURL" }
2731
includedirs { "include", "vendor/curl/include" }
2832
links { "curl" }

res/resource.rc

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
/////////////////////////////////////////////////////////////////////////////
2-
3-
//
4-
5-
// Icon
6-
7-
//
8-
9-
10-
11-
// Icon with lowest ID value placed first to ensure application icon
12-
13-
// remains consistent on all systems.
14-
15-
IDI_APPLICATION ICON "MTADiag.ico"
1+
/*****************************************************************************
2+
*
3+
* PROJECT: MTADiag
4+
* LICENSE: GNU GPL v3
5+
* FILE: resource.rc
6+
* PURPOSE: Resource file
7+
*
8+
* Multi Theft Auto is available from http://www.multitheftauto.com/
9+
*
10+
*****************************************************************************/
11+
#include "resource.h"
12+
13+
IDI_APPLICATION ICON "MTADiag.ico" // Icon with lowest ID value placed first to ensure application icon remains consistent on all systems.
14+
IDR_SERVICING_SCRIPT TEXTFILE "servicing.bat"

0 commit comments

Comments
 (0)