Skip to content

Commit

Permalink
update123
Browse files Browse the repository at this point in the history
  • Loading branch information
Ughuuu committed Feb 1, 2025
1 parent 5104198 commit ee9e402
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion SCsub
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ env_gdextension = env_modules.Clone()
os.system("cd ext/godot-cpp && scons build_library=False")

env_gdextension.Append(CPPDEFINES = ['RISCV_SYSCALLS_MAX=600', 'RISCV_BRK_MEMORY_SIZE=0x100000'])

#env_gdextension.Append(CPPDEFINES = ['GODOT_ERROR_MACROS_HPP'])

# Libriscv
env_gdextension.Prepend(CPPPATH=["#modules/sandbox/ext/libriscv/lib"])
Expand Down Expand Up @@ -94,6 +94,7 @@ env_gdextension.add_source_files(env.modules_sources, "src/godot/*.cpp")
env_gdextension.add_source_files(env.modules_sources, "src/bintr/*.cpp")

# Godot cpp
env_gdextension.Append(CPPPATH=["#modules/sandbox/ext/godot-cpp/gdextension"])
env_gdextension.Append(CPPPATH=["#modules/sandbox/ext/godot-cpp/include"])
env_gdextension.Append(CPPPATH=["#modules/sandbox/ext/godot-cpp/gen/include"])

Expand Down
8 changes: 7 additions & 1 deletion register_types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,16 @@
#include "core/object/object.h"
#include "core/extension/gdextension_interface.h"
#include "core/extension/gdextension_manager.h"
#include "./gdextension_static_library_loader.h"
#include "core/extension/./gdextension_static_library_loader.h"
#include "core/object/ref_counted.h"
#include "src/register_types.h"


extern "C" {
// Initialization.
GDExtensionBool GDE_EXPORT riscv_library_init(GDExtensionInterfaceGetProcAddress p_get_proc_address, GDExtensionClassLibraryPtr p_library, GDExtensionInitialization *r_initialization);
}

void initialize_sandbox_module(ModuleInitializationLevel p_level) {
if (p_level != MODULE_INITIALIZATION_LEVEL_SERVERS) {
return;
Expand Down

0 comments on commit ee9e402

Please sign in to comment.