Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
mirrage
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
GameDevWeek
D
Dependencies
Cpp
mirrage
Commits
b7bf73fc
Commit
b7bf73fc
authored
Sep 12, 2019
by
Florian Oetke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed redundant moves
parent
9d989eb4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/mirrage/asset/src/asset_manager.cpp
src/mirrage/asset/src/asset_manager.cpp
+3
-3
No files found.
src/mirrage/asset/src/asset_manager.cpp
View file @
b7bf73fc
...
...
@@ -424,15 +424,15 @@ namespace mirrage::asset {
auto
path
=
append_file
(
dir
->
second
.
base_dir
,
id
.
name
());
if
(
exists_file
(
path
))
return
std
::
move
(
path
)
;
return
path
;
path
=
path
+
dir
->
second
.
default_extension
;
if
(
exists_file
(
path
))
return
std
::
move
(
path
)
;
return
path
;
if
(
!
only_preexisting
)
{
PHYSFS_mkdir
(
dir
->
second
.
base_dir
.
c_str
());
return
std
::
move
(
path
)
;
return
path
;
}
return
util
::
nothing
;
...
...
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