cursed technique: neo computer
This commit is contained in:
4
.vscode/c_cpp_properties.json
vendored
4
.vscode/c_cpp_properties.json
vendored
@@ -9,8 +9,8 @@
|
||||
],
|
||||
"defines": [],
|
||||
"compilerPath": "/usr/lib64/ccache/clang",
|
||||
"cStandard": "c17",
|
||||
"cppStandard": "c++17",
|
||||
"cStandard": "c23",
|
||||
"cppStandard": "c++23",
|
||||
"intelliSenseMode": "linux-clang-x64"
|
||||
}
|
||||
],
|
||||
|
||||
Submodule NeoNucleus updated: 3b04fd45c7...7c086f6b8e
@@ -105,7 +105,7 @@ nn_Exit Carbon::Map::From_nn_Exit(JNIEnv* env, jobject a) {
|
||||
return (nn_Exit) value; // this should be fine as long as the header and java side don't desync
|
||||
}
|
||||
jobject Carbon::Map::To_nn_ComputerState(JNIEnv* env, nn_ComputerState a) {
|
||||
jclass clazz = env->FindClass("org/neoflock/NeoComputers/nn_ComputerState");
|
||||
jclass clazz = env->FindClass(CARBON_CLASSPATH("nn_ComputerState"));
|
||||
switch (a) {
|
||||
CARBON_MAP_TO_NN_COMPUTERSTATE(NN_RUNNING)
|
||||
CARBON_MAP_TO_NN_COMPUTERSTATE(NN_BOOTUP)
|
||||
@@ -118,7 +118,7 @@ jobject Carbon::Map::To_nn_ComputerState(JNIEnv* env, nn_ComputerState a) {
|
||||
return NULL;
|
||||
}
|
||||
nn_ComputerState Carbon::Map::From_nn_ComputerState(JNIEnv* env, jobject a) {
|
||||
jclass clazz = env->FindClass("org/neoflock/NeoNucleus/nn_ComputerState");
|
||||
jclass clazz = env->FindClass(CARBON_CLASSPATH("nn_ComputerState"));
|
||||
jmethodID ordMID = env->GetMethodID(clazz, "ordinal", "()I");
|
||||
jint value = env->CallIntMethod(a, ordMID);
|
||||
return (nn_ComputerState) value;
|
||||
|
||||
Reference in New Issue
Block a user