attempt to address #566

also fix client not starting if path has spaces in it on windows
This commit is contained in:
UnknownShadow200 2019-02-12 21:43:39 +11:00
parent 83c542f23f
commit 329de35cd1
2 changed files with 2 additions and 2 deletions

View File

@ -722,7 +722,7 @@ const char* cpe_clientExtensions[30] = {
};
static void CPE_SetMapEnvUrl(uint8_t* data);
#define Ext_Deg2Packed(x) ((int16_t)((x) * 65536.0f / 360.0f))
#define Ext_Deg2Packed(x) ((int)((x) * 65536.0f / 360.0f))
void CPE_WritePlayerClick(MouseButton button, bool pressed, uint8_t targetId, struct PickedPos* pos) {
struct Entity* p = &LocalPlayer_Instance.Base;
uint8_t* data = Server.WriteBuffer;

View File

@ -1930,7 +1930,7 @@ ReturnCode Platform_StartProcess(const String* path, const String* args) {
file = *path; Utils_UNSAFE_GetFilename(&file);
String_InitArray(argv, argvBuffer);
String_Format2(&argv, "%s %s", &file, args);
String_Format2(&argv, "\"%s\" %s", &file, args);
Platform_ConvertString(str, path);
Platform_ConvertString(raw, &argv);