Skip to content
This repository was archived by the owner on Jun 14, 2019. It is now read-only.

Commit 2db5dbc

Browse files
author
LemonHaze420
committed
Added current version of launcher
1 parent a1568c4 commit 2db5dbc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+679697
-0
lines changed

.gitignore

Lines changed: 195 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,195 @@
1+
## Ignore Visual Studio temporary files, build results, and
2+
## files generated by popular Visual Studio add-ons.
3+
4+
# Lib files
5+
*.lib
6+
7+
# VS Cache folders
8+
.vs/
9+
10+
# User-specific files
11+
*.suo
12+
*.user
13+
*.sln.docstates
14+
15+
# Build results
16+
[Dd]ebug/
17+
[Dd]ebugPublic/
18+
[Rr]elease/
19+
x64/
20+
build/
21+
bld/
22+
[Bb]in/
23+
[Oo]bj/
24+
25+
# Roslyn cache directories
26+
*.ide/
27+
28+
# MSTest test Results
29+
[Tt]est[Rr]esult*/
30+
[Bb]uild[Ll]og.*
31+
32+
#NUNIT
33+
*.VisualState.xml
34+
TestResult.xml
35+
36+
# Build Results of an ATL Project
37+
[Dd]ebugPS/
38+
[Rr]eleasePS/
39+
dlldata.c
40+
41+
*_i.c
42+
*_p.c
43+
*_i.h
44+
*.ilk
45+
*.meta
46+
*.obj
47+
*.pch
48+
*.pdb
49+
*.pgc
50+
*.pgd
51+
*.rsp
52+
*.sbr
53+
*.tlb
54+
*.tli
55+
*.tlh
56+
*.tmp
57+
*.tmp_proj
58+
*.log
59+
*.vspscc
60+
*.vssscc
61+
.builds
62+
*.pidb
63+
*.svclog
64+
*.scc
65+
66+
# Chutzpah Test files
67+
_Chutzpah*
68+
69+
# Visual C++ cache files
70+
ipch/
71+
*.aps
72+
*.ncb
73+
*.opensdf
74+
*.sdf
75+
*.cachefile
76+
77+
# Visual Studio profiler
78+
*.psess
79+
*.vsp
80+
*.vspx
81+
82+
# TFS 2012 Local Workspace
83+
$tf/
84+
85+
# Guidance Automation Toolkit
86+
*.gpState
87+
88+
# ReSharper is a .NET coding add-in
89+
_ReSharper*/
90+
*.[Rr]e[Ss]harper
91+
*.DotSettings.user
92+
93+
# JustCode is a .NET coding addin-in
94+
.JustCode
95+
96+
# TeamCity is a build add-in
97+
_TeamCity*
98+
99+
# DotCover is a Code Coverage Tool
100+
*.dotCover
101+
102+
# NCrunch
103+
_NCrunch_*
104+
.*crunch*.local.xml
105+
106+
# MightyMoose
107+
*.mm.*
108+
AutoTest.Net/
109+
110+
# Web workbench (sass)
111+
.sass-cache/
112+
113+
# Installshield output folder
114+
[Ee]xpress/
115+
116+
# DocProject is a documentation generator add-in
117+
DocProject/buildhelp/
118+
DocProject/Help/*.HxT
119+
DocProject/Help/*.HxC
120+
DocProject/Help/*.hhc
121+
DocProject/Help/*.hhk
122+
DocProject/Help/*.hhp
123+
DocProject/Help/Html2
124+
DocProject/Help/html
125+
126+
# Click-Once directory
127+
publish/
128+
129+
# Publish Web Output
130+
*.[Pp]ublish.xml
131+
*.azurePubxml
132+
## TODO: Comment the next line if you want to checkin your
133+
## web deploy settings but do note that will include unencrypted
134+
## passwords
135+
#*.pubxml
136+
137+
# NuGet Packages Directory
138+
packages/*
139+
## TODO: If the tool you use requires repositories.config
140+
## uncomment the next line
141+
#!packages/repositories.config
142+
143+
# Enable "build/" folder in the NuGet Packages folder since
144+
# NuGet packages use it for MSBuild targets.
145+
# This line needs to be after the ignore of the build folder
146+
# (and the packages folder if the line above has been uncommented)
147+
!packages/build/
148+
149+
# Windows Azure Build Output
150+
csx/
151+
*.build.csdef
152+
153+
# Windows Store app package directory
154+
AppPackages/
155+
156+
# Others
157+
sql/
158+
*.Cache
159+
ClientBin/
160+
[Ss]tyle[Cc]op.*
161+
~$*
162+
*~
163+
*.dbmdl
164+
*.dbproj.schemaview
165+
*.pfx
166+
*.publishsettings
167+
node_modules/
168+
169+
# RIA/Silverlight projects
170+
Generated_Code/
171+
172+
# Backup & report files from converting an old project file
173+
# to a newer Visual Studio version. Backup files are not needed,
174+
# because we have git ;-)
175+
_UpgradeReport_Files/
176+
Backup*/
177+
UpgradeLog*.XML
178+
UpgradeLog*.htm
179+
180+
# SQL Server files
181+
*.mdf
182+
*.ldf
183+
184+
# Business Intelligence projects
185+
*.rdl.data
186+
*.bim.layout
187+
*.bim_*.settings
188+
189+
# Microsoft Fakes
190+
FakesAssemblies/
191+
192+
# LightSwitch generated files
193+
GeneratedArtifacts/
194+
_Pvt_Extensions/
195+
ModelManifest.xml

CConfiguration.cpp

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
#include "config.h"
2+
3+
CConfiguration::CConfiguration()
4+
{
5+
this->_inih = nullptr;
6+
this->configOpened = false;
7+
this->configError = false;
8+
this->configFilename = DEFAULT_CONFIG;
9+
10+
this->_inih = new INIReader(this->configFilename);
11+
if (this->GetReader()->ParseError() < 0) {
12+
printf("[CConfiguration] %s could not be loaded.\n", this->configFilename.c_str());
13+
this->configError = true;
14+
}
15+
else {
16+
printf("[CConfiguration] %s loaded successfully.\n", this->configFilename.c_str());
17+
this->configOpened = true;
18+
}
19+
}
20+
CConfiguration::~CConfiguration()
21+
{
22+
printf("[CConfiguration] CConfiguration shutting down\n");
23+
}
24+
bool CConfiguration::PopulateValues()
25+
{
26+
if (this->configError)
27+
return false;
28+
29+
/* Populate configuration values from INI */
30+
std::string tmp = this->GetReader()->Get("General", "III Dir", "");
31+
strcpy(this->IIILocation, tmp.c_str());
32+
33+
tmp = this->GetReader()->Get("General", "VC Dir", "");
34+
strcpy(this->VCLocation, tmp.c_str());
35+
36+
37+
tmp = this->GetReader()->Get("General", "SA Dir", "");
38+
strcpy(this->SALocation, tmp.c_str());
39+
40+
return true;
41+
}
42+
std::string CConfiguration::sections(INIReader &reader)
43+
{
44+
std::stringstream ss;
45+
std::set<std::string> sections = reader.Sections();
46+
for (std::set<std::string>::iterator it = sections.begin(); it != sections.end(); ++it)
47+
ss << *it << ",";
48+
return ss.str();
49+
}

CConfiguration.h

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#pragma once
2+
class CConfiguration
3+
{
4+
public:
5+
/* GTAIII Location */
6+
char IIILocation[MAX_PATH];
7+
8+
/* GTAVC Location */
9+
char VCLocation[MAX_PATH];
10+
11+
/* GTASA Location */
12+
char SALocation[MAX_PATH];
13+
14+
/* Populates values from INI file */
15+
bool PopulateValues();
16+
17+
/* Retrieves the INI reader instance */
18+
INIReader* GetReader() { return _inih; }
19+
20+
/* Returns TRUE if config has been loaded successfully */
21+
bool IsConfigLoaded() { return configOpened; }
22+
23+
bool IsConfigReadable() { return !configError; }
24+
25+
public:
26+
CConfiguration();
27+
~CConfiguration();
28+
29+
private:
30+
INIReader* _inih;
31+
32+
bool configError;
33+
34+
bool configOpened;
35+
36+
std::string configFilename;
37+
38+
std::string sections(INIReader &reader);
39+
};
40+

Textures.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#pragma once
2+
#include "Textures\Bg.h"
3+
#include "Textures\VCMenuLogo.h"
4+
#include "Textures\3logoData.h"
5+
#include "Textures\viceCityLogoData.h"
6+
#include "Textures\sanAndreasLogoData.h"
7+
#include "Textures\launcherBanner.h"
8+
#include "Textures\launcherBannerHover.h"
9+
#include "Textures\SAOneTexData.h"
10+
#include "Textures\SATwoTexData.h"
11+
#include "Textures\SAThreeTexData.h"
12+
#include "Textures\SAFourTexData.h"
13+
#include "Textures\SAFiveTexData.h"
14+
#include "Textures\SASixTexData.h"
15+
#include "Textures\SASevenTexData.h"

0 commit comments

Comments
 (0)