diff options
author | Aki <please@ignore.pl> | 2022-04-14 00:28:37 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-04-14 00:28:37 +0200 |
commit | 341c93b0fb4aedd262581ce6e81b700a9bdc1423 (patch) | |
tree | fcade8d6163d000e534134e32b64db126d766c9b /StarsEx/Skin.cpp | |
parent | 92de53ac4747fe3caf2ee4c4fa3dcb2ec86a5ef2 (diff) | |
download | starshatter-341c93b0fb4aedd262581ce6e81b700a9bdc1423.zip starshatter-341c93b0fb4aedd262581ce6e81b700a9bdc1423.tar.gz starshatter-341c93b0fb4aedd262581ce6e81b700a9bdc1423.tar.bz2 |
Switched to use new Sources everywhere applicable in the Loader
Diffstat (limited to 'StarsEx/Skin.cpp')
-rw-r--r-- | StarsEx/Skin.cpp | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/StarsEx/Skin.cpp b/StarsEx/Skin.cpp index 62363c5..b5bd8ab 100644 --- a/StarsEx/Skin.cpp +++ b/StarsEx/Skin.cpp @@ -27,8 +27,6 @@ Skin::Skin(const char* n) else { ZeroMemory(name, NAMELEN); } - - ZeroMemory(path, 256); } // +--------------------------------------------------------------------+ @@ -50,16 +48,9 @@ Skin::SetName(const char* n) } void -Skin::SetPath(const char* n) +Skin::SetSource(int src) { - if (n && *n) { - strncpy_s(path, n, 256); - path[255] = 0; - } - - else { - ZeroMemory(path, 256); - } + source = src; } // +--------------------------------------------------------------------+ |