mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-23 03:29:43 +00:00
xemu: Update copyright
This commit is contained in:
parent
7dae26380e
commit
6e564854fc
@ -2,7 +2,7 @@
|
||||
* Xbox ACPI implementation
|
||||
*
|
||||
* Copyright (c) 2012 espes
|
||||
* Copyright (c) 2020 Matt Borgerson
|
||||
* Copyright (c) 2020-2021 Matt Borgerson
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
|
@ -2,7 +2,7 @@
|
||||
* QEMU Chihiro emulation
|
||||
*
|
||||
* Copyright (c) 2013 espes
|
||||
* Copyright (c) 2018 Matt Borgerson
|
||||
* Copyright (c) 2018-2021 Matt Borgerson
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
|
@ -2,7 +2,7 @@
|
||||
* QEMU SMSC LPC47M157 (Super I/O)
|
||||
*
|
||||
* Copyright (c) 2013 espes
|
||||
* Copyright (c) 2018-2020 Matt Borgerson
|
||||
* Copyright (c) 2018-2021 Matt Borgerson
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* Offscreen OpenGL abstraction layer -- SDL based
|
||||
*
|
||||
* Copyright (c) 2018 Matt Borgerson
|
||||
* Copyright (c) 2018-2021 Matt Borgerson
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
|
@ -3,7 +3,7 @@
|
||||
*
|
||||
* Copyright (c) 2012 espes
|
||||
* Copyright (c) 2015 Jannik Vogel
|
||||
* Copyright (c) 2018-2020 Matt Borgerson
|
||||
* Copyright (c) 2018-2021 Matt Borgerson
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
|
@ -2,7 +2,7 @@
|
||||
* QEMU Geforce NV2A implementation
|
||||
*
|
||||
* Copyright (c) 2012 espes
|
||||
* Copyright (c) 2020 Matt Borgerson
|
||||
* Copyright (c) 2020-2021 Matt Borgerson
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
|
@ -3,7 +3,7 @@
|
||||
*
|
||||
* Copyright (c) 2012 espes
|
||||
* Copyright (c) 2015 Jannik Vogel
|
||||
* Copyright (c) 2018-2020 Matt Borgerson
|
||||
* Copyright (c) 2018-2021 Matt Borgerson
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
|
@ -3,7 +3,7 @@
|
||||
*
|
||||
* Copyright (c) 2012 espes
|
||||
* Copyright (c) 2015 Jannik Vogel
|
||||
* Copyright (c) 2018-2020 Matt Borgerson
|
||||
* Copyright (c) 2018-2021 Matt Borgerson
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
|
@ -3,7 +3,7 @@
|
||||
*
|
||||
* Copyright (c) 2012 espes
|
||||
* Copyright (c) 2015 Jannik Vogel
|
||||
* Copyright (c) 2018 Matt Borgerson
|
||||
* Copyright (c) 2018-2021 Matt Borgerson
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
|
@ -3,7 +3,7 @@
|
||||
*
|
||||
* Copyright (c) 2012 espes
|
||||
* Copyright (c) 2015 Jannik Vogel
|
||||
* Copyright (c) 2018 Matt Borgerson
|
||||
* Copyright (c) 2018-2021 Matt Borgerson
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
|
@ -3,7 +3,7 @@
|
||||
*
|
||||
* Copyright (c) 2012 espes
|
||||
* Copyright (c) 2015 Jannik Vogel
|
||||
* Copyright (c) 2018-2020 Matt Borgerson
|
||||
* Copyright (c) 2018-2021 Matt Borgerson
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
|
@ -3,7 +3,7 @@
|
||||
*
|
||||
* Copyright (c) 2012 espes
|
||||
* Copyright (c) 2015 Jannik Vogel
|
||||
* Copyright (c) 2018-2020 Matt Borgerson
|
||||
* Copyright (c) 2018-2021 Matt Borgerson
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
|
@ -3,7 +3,7 @@
|
||||
*
|
||||
* Copyright (c) 2012 espes
|
||||
* Copyright (c) 2015 Jannik Vogel
|
||||
* Copyright (c) 2018 Matt Borgerson
|
||||
* Copyright (c) 2018-2021 Matt Borgerson
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
|
@ -3,7 +3,7 @@
|
||||
*
|
||||
* Copyright (c) 2012 espes
|
||||
* Copyright (c) 2015 Jannik Vogel
|
||||
* Copyright (c) 2018 Matt Borgerson
|
||||
* Copyright (c) 2018-2021 Matt Borgerson
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
|
@ -3,7 +3,7 @@
|
||||
*
|
||||
* Copyright (c) 2012 espes
|
||||
* Copyright (c) 2015 Jannik Vogel
|
||||
* Copyright (c) 2018 Matt Borgerson
|
||||
* Copyright (c) 2018-2021 Matt Borgerson
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
|
@ -3,7 +3,7 @@
|
||||
*
|
||||
* Copyright (c) 2012 espes
|
||||
* Copyright (c) 2015 Jannik Vogel
|
||||
* Copyright (c) 2018 Matt Borgerson
|
||||
* Copyright (c) 2018-2021 Matt Borgerson
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
|
@ -3,6 +3,7 @@
|
||||
*
|
||||
* Copyright (c) 2013 espes
|
||||
* Copyright (c) 2015 Jannik Vogel
|
||||
* Copyright (c) 2020-2021 Matt Borgerson
|
||||
*
|
||||
* Based on:
|
||||
* Cxbx, PixelShader.cpp
|
||||
|
@ -3,7 +3,7 @@
|
||||
*
|
||||
* Copyright (c) 2012 espes
|
||||
* Copyright (c) 2015 Jannik Vogel
|
||||
* Copyright (c) 2018 Matt Borgerson
|
||||
* Copyright (c) 2018-2021 Matt Borgerson
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
|
@ -3,7 +3,7 @@
|
||||
*
|
||||
* Copyright (c) 2012 espes
|
||||
* Copyright (c) 2015 Jannik Vogel
|
||||
* Copyright (c) 2018 Matt Borgerson
|
||||
* Copyright (c) 2018-2021 Matt Borgerson
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
|
@ -3,7 +3,7 @@
|
||||
*
|
||||
* Copyright (c) 2015 espes
|
||||
* Copyright (c) 2015 Jannik Vogel
|
||||
* Copyright (c) 2020 Matt Borgerson
|
||||
* Copyright (c) 2020-2021 Matt Borgerson
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
|
@ -3,7 +3,7 @@
|
||||
*
|
||||
* Copyright (c) 2012 espes
|
||||
* Copyright (c) 2015 Jannik Vogel
|
||||
* Copyright (c) 2018 Matt Borgerson
|
||||
* Copyright (c) 2018-2021 Matt Borgerson
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
|
@ -3,7 +3,7 @@
|
||||
*
|
||||
* Copyright (c) 2012 espes
|
||||
* Copyright (c) 2015 Jannik Vogel
|
||||
* Copyright (c) 2018 Matt Borgerson
|
||||
* Copyright (c) 2018-2021 Matt Borgerson
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
|
@ -2,7 +2,7 @@
|
||||
* QEMU nForce Ethernet Controller implementation
|
||||
*
|
||||
* Copyright (c) 2013 espes
|
||||
* Copyright (c) 2015-2020 Matt Borgerson
|
||||
* Copyright (c) 2015-2021 Matt Borgerson
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
|
@ -2,7 +2,7 @@
|
||||
* QEMU SMBus Xbox System Management Controller
|
||||
*
|
||||
* Copyright (c) 2011 espes
|
||||
* Copyright (c) 2020 Matt Borgerson
|
||||
* Copyright (c) 2020-2021 Matt Borgerson
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
|
@ -2,7 +2,7 @@
|
||||
* QEMU Xbox System Emulator
|
||||
*
|
||||
* Copyright (c) 2012 espes
|
||||
* Copyright (c) 2018 Matt Borgerson
|
||||
* Copyright (c) 2018-2021 Matt Borgerson
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
@ -53,7 +53,7 @@
|
||||
#include "hw/i2c/smbus_eeprom.h"
|
||||
#include "hw/xbox/nv2a/nv2a.h"
|
||||
#include "hw/xbox/mcpx/apu.h"
|
||||
|
||||
|
||||
#include "hw/xbox/xbox.h"
|
||||
#include "smbus.h"
|
||||
|
||||
@ -146,13 +146,13 @@ static void xbox_flash_init(MemoryRegion *rom_memory)
|
||||
/* XBOX_FIXME: The "memory_region_set_readonly" calls below have been
|
||||
* temporarily commented out due to MCPX 1.1-based kernels hanging
|
||||
* in the first bootloader stage when doing RSA signature verification.
|
||||
*
|
||||
*
|
||||
* This is caused by code incorrectly using the flash memory range to
|
||||
* store the following computation; luckily real hardware's writeback
|
||||
* cache policy (verified against MTRR config) appears to allow this
|
||||
* to succeed, but qemu's emulation of such isn't capable of this yet
|
||||
* so the value is never updated in ROM unless readonly is unspecified.
|
||||
*
|
||||
*
|
||||
* sub ds:0FFFFD52Ch, eax
|
||||
* mov eax, ds:0FFFFD52Ch
|
||||
*/
|
||||
|
@ -2,7 +2,7 @@
|
||||
* QEMU Xbox System Emulator
|
||||
*
|
||||
* Copyright (c) 2013 espes
|
||||
* Copyright (c) 2018 Matt Borgerson
|
||||
* Copyright (c) 2018-2021 Matt Borgerson
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
|
@ -2,7 +2,7 @@
|
||||
* QEMU Xbox PCI buses implementation
|
||||
*
|
||||
* Copyright (c) 2012 espes
|
||||
* Copyright (c) 2018-2020 Matt Borgerson
|
||||
* Copyright (c) 2018-2021 Matt Borgerson
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
|
@ -2,7 +2,7 @@
|
||||
* QEMU Xbox PCI buses implementation
|
||||
*
|
||||
* Copyright (c) 2012 espes
|
||||
* Copyright (c) 2020 Matt Borgerson
|
||||
* Copyright (c) 2020-2021 Matt Borgerson
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
|
@ -3,7 +3,7 @@
|
||||
*
|
||||
* Copyright (c) 2013 espes
|
||||
* Copyright (c) 2017 Jannik Vogel
|
||||
* Copyright (c) 2018-2020 Matt Borgerson
|
||||
* Copyright (c) 2018-2021 Matt Borgerson
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* xemu User Interface Rendering Helpers
|
||||
*
|
||||
* Copyright (C) 2020 Matt Borgerson
|
||||
* Copyright (C) 2020-2021 Matt Borgerson
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* xemu User Interface Rendering Helpers
|
||||
*
|
||||
* Copyright (C) 2020 Matt Borgerson
|
||||
* Copyright (C) 2020-2021 Matt Borgerson
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* xemu Data File and Path Helpers
|
||||
*
|
||||
* Copyright (C) 2020 Matt Borgerson
|
||||
* Copyright (C) 2020-2021 Matt Borgerson
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* xemu Data File and Path Helpers
|
||||
*
|
||||
* Copyright (C) 2020 Matt Borgerson
|
||||
* Copyright (C) 2020-2021 Matt Borgerson
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* xemu User Interface
|
||||
*
|
||||
* Copyright (C) 2020 Matt Borgerson
|
||||
* Copyright (C) 2020-2021 Matt Borgerson
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -4,7 +4,7 @@
|
||||
* Subsystem handling primary graphical user interface, which can be controlled
|
||||
* via mouse and keyboard or through any attached gamepad.
|
||||
*
|
||||
* Copyright (C) 2020 Matt Borgerson
|
||||
* Copyright (C) 2020-2021 Matt Borgerson
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* xemu Input Management
|
||||
*
|
||||
* Copyright (C) 2020 Matt Borgerson
|
||||
* Copyright (C) 2020-2021 Matt Borgerson
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -6,7 +6,7 @@
|
||||
* Xbox gamepad and support automatic binding, hotplugging, and removal at
|
||||
* runtime.
|
||||
*
|
||||
* Copyright (C) 2020 Matt Borgerson
|
||||
* Copyright (C) 2020-2021 Matt Borgerson
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* xemu QEMU Monitor Interface
|
||||
*
|
||||
* Copyright (c) 2020 Matt Borgerson
|
||||
* Copyright (c) 2020-2021 Matt Borgerson
|
||||
*
|
||||
* Based on gdbstub.c
|
||||
*
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* xemu QEMU Monitor Interface
|
||||
*
|
||||
* Copyright (c) 2020 Matt Borgerson
|
||||
* Copyright (c) 2020-2021 Matt Borgerson
|
||||
*
|
||||
* Based on gdbstub.c
|
||||
*
|
||||
|
@ -3,7 +3,7 @@
|
||||
*
|
||||
* Wrapper functions to configure network settings at runtime.
|
||||
*
|
||||
* Copyright (C) 2020 Matt Borgerson
|
||||
* Copyright (C) 2020-2021 Matt Borgerson
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -127,5 +127,5 @@ int xemu_net_is_enabled(void)
|
||||
{
|
||||
NetClientState *nc;
|
||||
nc = qemu_find_netdev(id);
|
||||
return (nc != NULL);
|
||||
return (nc != NULL);
|
||||
}
|
||||
|
@ -3,7 +3,7 @@
|
||||
*
|
||||
* Wrapper functions to configure network settings at runtime.
|
||||
*
|
||||
* Copyright (C) 2020 Matt Borgerson
|
||||
* Copyright (C) 2020-2021 Matt Borgerson
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -4,7 +4,7 @@
|
||||
* Helper functions for other subsystems to queue a notification for the user,
|
||||
* which can be displayed by the HUD.
|
||||
*
|
||||
* Copyright (C) 2020 Matt Borgerson
|
||||
* Copyright (C) 2020-2021 Matt Borgerson
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* OS-specific Helpers
|
||||
*
|
||||
* Copyright (C) 2020 Matt Borgerson
|
||||
* Copyright (C) 2020-2021 Matt Borgerson
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* OS-specific Helpers
|
||||
*
|
||||
* Copyright (C) 2020 Matt Borgerson
|
||||
* Copyright (C) 2020-2021 Matt Borgerson
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* OS-specific Helpers
|
||||
*
|
||||
* Copyright (C) 2020 Matt Borgerson
|
||||
* Copyright (C) 2020-2021 Matt Borgerson
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -26,7 +26,7 @@ extern "C" {
|
||||
|
||||
const char *xemu_get_os_info(void);
|
||||
void xemu_open_web_browser(const char *url);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
@ -3,7 +3,7 @@
|
||||
*
|
||||
* Title compatibility and bug report submission.
|
||||
*
|
||||
* Copyright (C) 2020 Matt Borgerson
|
||||
* Copyright (C) 2020-2021 Matt Borgerson
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -57,7 +57,7 @@ const std::string &CompatibilityReport::GetSerializedReport()
|
||||
{"compat_comments", compat_comments},
|
||||
{"xbe_headers", xbe_headers},
|
||||
};
|
||||
serialized = report.dump(2);
|
||||
serialized = report.dump(2);
|
||||
return serialized;
|
||||
}
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
*
|
||||
* Title compatibility and bug report submission.
|
||||
*
|
||||
* Copyright (C) 2020 Matt Borgerson
|
||||
* Copyright (C) 2020-2021 Matt Borgerson
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* xemu Settings Management
|
||||
*
|
||||
* Copyright (C) 2020 Matt Borgerson
|
||||
* Copyright (C) 2020-2021 Matt Borgerson
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -107,7 +107,7 @@ struct config_offset_table {
|
||||
[XEMU_SETTINGS_SYSTEM_EEPROM_PATH] = { CONFIG_TYPE_STRING, "system", "eeprom_path", offsetof(struct xemu_settings, eeprom_path), { .default_str = "" } },
|
||||
[XEMU_SETTINGS_SYSTEM_MEMORY] = { CONFIG_TYPE_INT, "system", "memory", offsetof(struct xemu_settings, memory), { .default_int = 64 } },
|
||||
[XEMU_SETTINGS_SYSTEM_SHORTANIM] = { CONFIG_TYPE_BOOL, "system", "shortanim", offsetof(struct xemu_settings, short_animation), { .default_bool = 0 } },
|
||||
|
||||
|
||||
[XEMU_SETTINGS_AUDIO_USE_DSP] = { CONFIG_TYPE_BOOL, "audio", "use_dsp", offsetof(struct xemu_settings, use_dsp), { .default_bool = 0 } },
|
||||
|
||||
[XEMU_SETTINGS_DISPLAY_SCALE] = { CONFIG_TYPE_ENUM, "display", "scale", offsetof(struct xemu_settings, scale), { .default_int = DISPLAY_SCALE_SCALE }, display_scale_map },
|
||||
|
@ -5,7 +5,7 @@
|
||||
* that gets saved to an INI file. All entries should be accessed through the
|
||||
* appropriate getter/setter functions.
|
||||
*
|
||||
* Copyright (C) 2020 Matt Borgerson
|
||||
* Copyright (C) 2020-2021 Matt Borgerson
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* xemu User Interface Rendering Helpers
|
||||
*
|
||||
* Copyright (C) 2020 Matt Borgerson
|
||||
* Copyright (C) 2020-2021 Matt Borgerson
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -199,7 +199,7 @@ GLuint load_texture_from_file(const char *name)
|
||||
|
||||
// Flip vertically so textures are loaded according to GL convention.
|
||||
stbi_set_flip_vertically_on_load(1);
|
||||
|
||||
|
||||
// Read file into memory
|
||||
int width, height, channels = 0;
|
||||
unsigned char *data = stbi_load(name, &width, &height, &channels, 4);
|
||||
@ -212,7 +212,7 @@ GLuint load_texture_from_file(const char *name)
|
||||
return tex;
|
||||
}
|
||||
|
||||
void render_decal(
|
||||
void render_decal(
|
||||
struct decal_shader *s,
|
||||
float x, float y, float w, float h,
|
||||
float tex_x, float tex_y, float tex_w, float tex_h,
|
||||
@ -251,7 +251,7 @@ void render_decal(
|
||||
glDrawElements(GL_TRIANGLE_FAN, 4, GL_UNSIGNED_INT, NULL);
|
||||
}
|
||||
|
||||
void render_decal_image(
|
||||
void render_decal_image(
|
||||
struct decal_shader *s,
|
||||
float x, float y, float w, float h,
|
||||
float tex_x, float tex_y, float tex_w, float tex_h
|
||||
@ -281,7 +281,7 @@ struct fbo *create_fbo(int width, int height)
|
||||
fbo->w = width;
|
||||
fbo->h = height;
|
||||
|
||||
// Allocate the texture
|
||||
// Allocate the texture
|
||||
glGenTextures(1, &fbo->tex);
|
||||
glBindTexture(GL_TEXTURE_2D, fbo->tex);
|
||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAX_LEVEL, 0);
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* xemu User Interface Rendering Helpers
|
||||
*
|
||||
* Copyright (C) 2020 Matt Borgerson
|
||||
* Copyright (C) 2020-2021 Matt Borgerson
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -80,14 +80,14 @@ struct fbo *create_fbo(int width, int height);
|
||||
void render_to_default_fb(void);
|
||||
GLuint render_to_fbo(struct fbo *fbo);
|
||||
|
||||
void render_decal(
|
||||
void render_decal(
|
||||
struct decal_shader *s,
|
||||
float x, float y, float w, float h,
|
||||
float tex_x, float tex_y, float tex_w, float tex_h,
|
||||
uint32_t primary, uint32_t secondary, uint32_t fill
|
||||
);
|
||||
|
||||
void render_decal_image(
|
||||
void render_decal_image(
|
||||
struct decal_shader *s,
|
||||
float x, float y, float w, float h,
|
||||
float tex_x, float tex_y, float tex_w, float tex_h
|
||||
@ -95,6 +95,6 @@ void render_decal_image(
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* xemu SDL display driver
|
||||
*
|
||||
* Copyright (c) 2020 Matt Borgerson
|
||||
* Copyright (c) 2020-2021 Matt Borgerson
|
||||
*
|
||||
* Based on sdl2.c, sdl2-gl.c
|
||||
*
|
||||
|
@ -3,7 +3,7 @@
|
||||
*
|
||||
* Helper functions to get details about the currently running executable.
|
||||
*
|
||||
* Copyright (C) 2020 Matt Borgerson
|
||||
* Copyright (C) 2020-2021 Matt Borgerson
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -110,7 +110,7 @@ struct xbe *xemu_get_xbe_info(void)
|
||||
|
||||
xbe.headers = malloc(xbe.headers_len);
|
||||
assert(xbe.headers != NULL);
|
||||
|
||||
|
||||
// Read all XBE headers
|
||||
ssize_t bytes_read = virt_dma_memory_read(hdr_addr_virt,
|
||||
xbe.headers,
|
||||
|
@ -3,7 +3,7 @@
|
||||
*
|
||||
* Helper functions to get details about the currently running executable.
|
||||
*
|
||||
* Copyright (C) 2020 Matt Borgerson
|
||||
* Copyright (C) 2020-2021 Matt Borgerson
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
Loading…
Reference in New Issue
Block a user