Skip to content

Commit 0ae96dd

Browse files
committed
Add servicing script by Dutchman101
1 parent 213d8e8 commit 0ae96dd

File tree

8 files changed

+476
-15
lines changed

8 files changed

+476
-15
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: 1 addition & 0 deletions
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"

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)