mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-18 12:05:14 -04:00
attempt to address #566
also fix client not starting if path has spaces in it on windows
This commit is contained in:
parent
83c542f23f
commit
329de35cd1
@ -722,7 +722,7 @@ const char* cpe_clientExtensions[30] = {
|
|||||||
};
|
};
|
||||||
static void CPE_SetMapEnvUrl(uint8_t* data);
|
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) {
|
void CPE_WritePlayerClick(MouseButton button, bool pressed, uint8_t targetId, struct PickedPos* pos) {
|
||||||
struct Entity* p = &LocalPlayer_Instance.Base;
|
struct Entity* p = &LocalPlayer_Instance.Base;
|
||||||
uint8_t* data = Server.WriteBuffer;
|
uint8_t* data = Server.WriteBuffer;
|
||||||
|
@ -1930,7 +1930,7 @@ ReturnCode Platform_StartProcess(const String* path, const String* args) {
|
|||||||
|
|
||||||
file = *path; Utils_UNSAFE_GetFilename(&file);
|
file = *path; Utils_UNSAFE_GetFilename(&file);
|
||||||
String_InitArray(argv, argvBuffer);
|
String_InitArray(argv, argvBuffer);
|
||||||
String_Format2(&argv, "%s %s", &file, args);
|
String_Format2(&argv, "\"%s\" %s", &file, args);
|
||||||
Platform_ConvertString(str, path);
|
Platform_ConvertString(str, path);
|
||||||
Platform_ConvertString(raw, &argv);
|
Platform_ConvertString(raw, &argv);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user