mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-21 06:19:56 +00:00
sry
This commit is contained in:
parent
0ff729c060
commit
7ee148b3b9
1 changed files with 1 additions and 11 deletions
|
|
@ -14,7 +14,6 @@
|
|||
// OS-Specific code
|
||||
#if windows
|
||||
#define SECURITY_WIN32
|
||||
#include <cstring>
|
||||
#include <windows.h>
|
||||
#include <mmsystem.h>
|
||||
#include <security.h>
|
||||
|
|
@ -254,16 +253,7 @@ Oneshot::Oneshot(RGSSThreadData &threadData) : threadData(threadData){
|
|||
const char* path = SDL_GetUserFolder(SDL_FOLDER_DOCUMENTS);
|
||||
p->docsPath = path;
|
||||
#ifdef windows
|
||||
const char* suffix = "\\My Games";
|
||||
|
||||
size_t len = std::strlen(path) + std::strlen(suffix) + 1;
|
||||
p->gamePath = (char*)SDL_malloc(len);
|
||||
|
||||
if (p->gamePath) {
|
||||
std::strcpy(p->gamePath, path);
|
||||
std::strcat(p->gamePath, suffix);
|
||||
}
|
||||
SDL_free((void*)path);
|
||||
p->gamePath = std::string(path) + "\\My Games";
|
||||
#else
|
||||
p->gamePath = path;
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue