Skip to content

Commit

Permalink
Rebranding /drivers folder
Browse files Browse the repository at this point in the history
This is a PR to re-brand the /drivers folder
  • Loading branch information
RandomOfNoWhere committed Oct 13, 2024
1 parent 6e76ade commit 198fb06
Show file tree
Hide file tree
Showing 12 changed files with 469 additions and 92 deletions.
2 changes: 1 addition & 1 deletion drivers/backtrace/SCsub
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ env_thirdparty.add_source_files(thirdparty_obj, thirdparty_sources)

env.drivers_sources += thirdparty_obj

# Godot source files
# Blazium source files

driver_obj = []

Expand Down
4 changes: 2 additions & 2 deletions drivers/coremidi/midi_driver_coremidi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,15 @@ Error MIDIDriverCoreMidi::open() {
ERR_FAIL_COND_V_MSG(client || core_midi_closed, FAILED,
"MIDIDriverCoreMidi cannot be reopened.");

CFStringRef name = CFStringCreateWithCString(nullptr, "Godot", kCFStringEncodingASCII);
CFStringRef name = CFStringCreateWithCString(nullptr, "Blazium", kCFStringEncodingASCII);
OSStatus result = MIDIClientCreate(name, nullptr, nullptr, &client);
CFRelease(name);
if (result != noErr) {
ERR_PRINT("MIDIClientCreate failed, code: " + itos(result));
return ERR_CANT_OPEN;
}

result = MIDIInputPortCreate(client, CFSTR("Godot Input"), MIDIDriverCoreMidi::read, (void *)this, &port_in);
result = MIDIInputPortCreate(client, CFSTR("Blazium Input"), MIDIDriverCoreMidi::read, (void *)this, &port_in);
if (result != noErr) {
ERR_PRINT("MIDIInputPortCreate failed, code: " + itos(result));
return ERR_CANT_OPEN;
Expand Down
2 changes: 1 addition & 1 deletion drivers/d3d12/SCsub
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ env_d3d12_rdd.Append(CPPDEFINES=extra_defines)
env.drivers_sources += thirdparty_obj


# Godot source files.
# Blazium source files.

driver_obj = []
env_d3d12_rdd.add_source_files(driver_obj, "*.cpp")
Expand Down
2 changes: 1 addition & 1 deletion drivers/d3d12/rendering_device_driver_d3d12.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3577,7 +3577,7 @@ Vector<uint8_t> RenderingDeviceDriverD3D12::shader_compile_binary_from_spirv(Vec
binptr[0] = 'G';
binptr[1] = 'S';
binptr[2] = 'B';
binptr[3] = 'D'; // Godot shader binary data.
binptr[3] = 'D'; // Blazium shader binary data.
offset += 4;
encode_uint32(ShaderBinary::VERSION, binptr + offset);
offset += sizeof(uint32_t);
Expand Down
2 changes: 1 addition & 1 deletion drivers/egl/SCsub
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

Import("env")

# Godot source files
# Blazium source files
env.add_source_files(env.drivers_sources, "*.cpp")
2 changes: 1 addition & 1 deletion drivers/gl_context/SCsub
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ if env["platform"] in ["macos", "windows", "linuxbsd"]:
env_thirdparty.disable_warnings()
env_thirdparty.add_source_files(env.drivers_sources, thirdparty_sources)

# Godot source files
# Blazium source files
env.add_source_files(env.drivers_sources, "*.cpp")
2 changes: 1 addition & 1 deletion drivers/png/SCsub
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ if env["builtin_libpng"]:
env.drivers_sources += thirdparty_obj


# Godot source files
# Blazium source files

driver_obj = []

Expand Down
2 changes: 1 addition & 1 deletion drivers/png/image_loader_png.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ Ref<Image> ImageLoaderPNG::lossless_unpack_png(const Vector<uint8_t> &p_data) {
Vector<uint8_t> ImageLoaderPNG::lossless_pack_png(const Ref<Image> &p_image) {
Vector<uint8_t> out_buffer;

// add Godot's own "PNG " prefix
// add Blazium's own "PNG " prefix
if (out_buffer.resize(4) != OK) {
ERR_FAIL_V(Vector<uint8_t>());
}
Expand Down
2 changes: 1 addition & 1 deletion drivers/pulseaudio/audio_driver_pulseaudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ Error AudioDriverPulseAudio::init_output_device() {
// Detect the amount of channels PulseAudio is using
// Note: If using an even amount of channels (2, 4, etc) channels and pa_map.channels will be equal,
// if not then pa_map.channels will have the real amount of channels PulseAudio is using and channels
// will have the amount of channels Godot is using (in this case it's pa_map.channels + 1)
// will have the amount of channels Blazium is using (in this case it's pa_map.channels + 1)
Error err = detect_channels();
if (err != OK) {
// This most likely means there are no sinks.
Expand Down
2 changes: 1 addition & 1 deletion drivers/unix/os_unix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,7 @@ void UnixTerminalLogger::log_error(const char *p_function, const char *p_file, i
}

// Disable color codes if stdout is not a TTY.
// This prevents Godot from writing ANSI escape codes when redirecting
// This prevents Blazium from writing ANSI escape codes when redirecting
// stdout and stderr to a file.
const bool tty = isatty(fileno(stdout));
const char *gray = tty ? "\E[0;90m" : "";
Expand Down
2 changes: 1 addition & 1 deletion drivers/vulkan/SCsub
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ env_thirdparty_vma.add_source_files(thirdparty_obj, thirdparty_sources_vma)
env.drivers_sources += thirdparty_obj


# Godot source files
# Blazium source files

driver_obj = []

Expand Down
Loading

0 comments on commit 198fb06

Please sign in to comment.