mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-22 09:01:57 -05:00
Expand /client blockedit to also allow editing sounds, try to fix crashing on PS3
This commit is contained in:
parent
df57b9f5fc
commit
d04327c5e7
4 changed files with 19 additions and 2 deletions
|
@ -32,7 +32,7 @@ If you're interested in documenting or verifying the behaviour of the original M
|
|||
* Works with effectively all graphics cards that support OpenGL or Direct3D 9
|
||||
* Runs on Windows, macOS, Linux, Android, iOS, and in a web browser
|
||||
* Also runs on OpenBSD, FreeBSD, NetBSD, Solaris, Haiku, IRIX, SerenityOS
|
||||
* Although still work in progresses, also runs on various consoles
|
||||
* Although in various stages of early development, also runs on various consoles
|
||||
|
||||
### Instructions
|
||||
Initially, you will need to run ClassiCube.exe to download the required assets from minecraft.net and classicube.net.<br>
|
||||
|
|
|
@ -566,6 +566,13 @@ static void BlockEditCommand_Execute(const cc_string* args, int argsCount__) {
|
|||
Chat_AddRaw("&a collide &e- Sets collision mode of the block");
|
||||
Chat_AddRaw("&a drawmode &e- Sets draw mode of the block");
|
||||
Chat_AddRaw("&a min/max &e- Sets min/max corner coordinates of the block");
|
||||
Chat_AddRaw("&eSee &a/client blockedit properties 2 &efor more properties");
|
||||
return;
|
||||
}
|
||||
if (String_CaselessEqualsConst(args, "properties 2")) {
|
||||
Chat_AddRaw("&eEditable block properties (page 2):");
|
||||
Chat_AddRaw("&a walksound &e- Sets walk/step sound of the block");
|
||||
Chat_AddRaw("&a breaksound &e- Sets break sound of the block");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -636,6 +643,14 @@ static void BlockEditCommand_Execute(const cc_string* args, int argsCount__) {
|
|||
if (!BlockEditCommand_GetCoords(value, &coords)) return;
|
||||
|
||||
Blocks.MaxBB[block] = coords;
|
||||
} else if (String_CaselessEqualsConst(prop, "walksound")) {
|
||||
if (!BlockEditCommand_GetInt(value, "Sound", &v, 0, SOUND_COUNT - 1)) return;
|
||||
|
||||
Blocks.StepSounds[block] = v;
|
||||
} else if (String_CaselessEqualsConst(prop, "breaksound")) {
|
||||
if (!BlockEditCommand_GetInt(value, "Sound", &v, 0, SOUND_COUNT - 1)) return;
|
||||
|
||||
Blocks.DigSounds[block] = v;
|
||||
} else {
|
||||
Chat_Add1("&eBlockEdit: &eUnknown property %s &e(See &a/client help blockedit&e)", prop);
|
||||
return;
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
#include <sys/thread.h>
|
||||
#include <sys/systime.h>
|
||||
#include <sys/tty.h>
|
||||
#include <sys/process.h>
|
||||
#include "_PlatformConsole.h"
|
||||
|
||||
const cc_result ReturnCode_FileShareViolation = 1000000000; // not used
|
||||
|
@ -42,6 +43,7 @@ const cc_result ReturnCode_SocketInProgess = NET_EINPROGRESS;
|
|||
const cc_result ReturnCode_SocketWouldBlock = NET_EWOULDBLOCK;
|
||||
const char* Platform_AppNameSuffix = " PS3";
|
||||
|
||||
SYS_PROCESS_PARAM(1001, 128 * 1024); // 128kb stack size
|
||||
|
||||
/*########################################################################################################################*
|
||||
*------------------------------------------------------Logging/Time-------------------------------------------------------*
|
||||
|
|
|
@ -627,7 +627,7 @@ void Window_ProcessEvents(double delta) {
|
|||
|
||||
case MappingNotify:
|
||||
if (e.xmapping.request == MappingModifier || e.xmapping.request == MappingKeyboard) {
|
||||
Platform_LogConst("keybard mapping refreshed");
|
||||
Platform_LogConst("keyboard mapping refreshed");
|
||||
XRefreshKeyboardMapping(&e.xmapping);
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue