Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
mhwd
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
30
Issues
30
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
2
Merge Requests
2
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Applications
mhwd
Commits
6fcd3d53
Commit
6fcd3d53
authored
Sep 12, 2014
by
december0123
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Readability
parent
ad36c5a1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
8 deletions
+7
-8
src/Config.cpp
src/Config.cpp
+3
-3
src/Data.cpp
src/Data.cpp
+0
-1
src/Mhwd.cpp
src/Mhwd.cpp
+3
-3
src/main.cpp
src/main.cpp
+1
-1
No files found.
src/Config.cpp
View file @
6fcd3d53
...
...
@@ -10,11 +10,11 @@
#include <vector>
#include "Config.hpp"
Config
::
Config
(
std
::
string
configPath
,
std
::
string
type
)
:
type_
(
type
),
basePath_
(
configPath
.
substr
(
0
,
configPath
.
find_last_of
(
'/'
))),
configPath_
(
configPath
)
{
// Add new HardwareIDs group to vector if vector is empty
if
(
hwdIDs_
.
empty
())
{
Config
::
HardwareID
hwdID
;
...
...
@@ -38,9 +38,9 @@ bool Config::readConfigFile(std::string configPath)
while
(
!
file
.
eof
())
{
getline
(
file
,
line
);
std
::
getline
(
file
,
line
);
size_t
pos
=
line
.
find_first_of
(
'#'
);
s
td
::
s
ize_t
pos
=
line
.
find_first_of
(
'#'
);
if
(
pos
!=
std
::
string
::
npos
)
{
line
.
erase
(
pos
);
...
...
src/Data.cpp
View file @
6fcd3d53
...
...
@@ -672,7 +672,6 @@ std::vector<std::string> Data::getRecursiveDirectoryFileList(const std::string d
return
list
;
}
Vita
::
string
Data
::
getRightConfigPath
(
Vita
::
string
str
,
Vita
::
string
baseConfigPath
)
{
str
=
str
.
trim
();
...
...
src/Mhwd.cpp
View file @
6fcd3d53
...
...
@@ -1249,7 +1249,7 @@ int Mhwd::launch(int argc, char *argv[])
printer_
.
printError
(
"custom config '"
+
filepath
+
"' does not exist!"
);
return
1
;
}
if
(
!
S_ISREG
(
filestatus
.
st_mode
))
else
if
(
!
S_ISREG
(
filestatus
.
st_mode
))
{
printer_
.
printError
(
"custom config '"
+
filepath
+
"' is invalid!"
);
return
1
;
...
...
@@ -1263,7 +1263,7 @@ int Mhwd::launch(int argc, char *argv[])
return
1
;
}
if
(
!
performTransaction
(
config_
,
MHWD
::
TRANSACTIONTYPE
::
INSTALL
))
else
if
(
!
performTransaction
(
config_
,
MHWD
::
TRANSACTIONTYPE
::
INSTALL
))
{
return
1
;
}
...
...
@@ -1304,7 +1304,7 @@ int Mhwd::launch(int argc, char *argv[])
return
1
;
}
if
(
!
performTransaction
(
config_
,
MHWD
::
TRANSACTIONTYPE
::
REMOVE
))
else
if
(
!
performTransaction
(
config_
,
MHWD
::
TRANSACTIONTYPE
::
REMOVE
))
{
delete
config_
;
return
1
;
...
...
src/main.cpp
View file @
6fcd3d53
...
...
@@ -22,5 +22,5 @@
int
main
(
int
argc
,
char
*
argv
[])
{
Mhwd
mhwd
;
mhwd
.
launch
(
argc
,
argv
);
return
mhwd
.
launch
(
argc
,
argv
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment