mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-02-03 12:31:15 +00:00
Naming
This commit is contained in:
parent
bf686b4a17
commit
612b28c1fb
@ -6,7 +6,7 @@
|
||||
#include "isleactor.h"
|
||||
#include "legostate.h"
|
||||
|
||||
#include <climits>
|
||||
#include <limits.h>
|
||||
|
||||
class Act1State;
|
||||
class PizzeriaState;
|
||||
|
||||
@ -321,8 +321,7 @@ void InvokeAction(Extra::ActionType p_actionId, const MxAtomId& p_pAtom, MxS32 p
|
||||
|
||||
break;
|
||||
case Extra::ActionType::e_run: {
|
||||
const char* args[] =
|
||||
{"/lego/sources/main/main.exe", "/script", p_pAtom.GetInternal(), NULL};
|
||||
const char* args[] = {"/lego/sources/main/main.exe", "/script", p_pAtom.GetInternal(), NULL};
|
||||
SDL_Process* process = SDL_CreateProcess(args, false);
|
||||
} break;
|
||||
case Extra::ActionType::e_enable:
|
||||
|
||||
@ -88,11 +88,11 @@ LegoResult LegoImage::Read(LegoStorage* p_storage, LegoU32 p_square)
|
||||
}
|
||||
m_palette = SDL_CreatePalette(count);
|
||||
for (LegoU32 i = 0; i < count; i++) {
|
||||
LegoPaletteEntry palette_entry;
|
||||
if ((result = palette_entry.Read(p_storage)) != SUCCESS) {
|
||||
LegoPaletteEntry paletteEntry;
|
||||
if ((result = paletteEntry.Read(p_storage)) != SUCCESS) {
|
||||
return result;
|
||||
}
|
||||
m_palette->colors[i] = palette_entry.getColor();
|
||||
m_palette->colors[i] = paletteEntry.GetColor();
|
||||
}
|
||||
if (m_surface) {
|
||||
SDL_DestroySurface(m_surface);
|
||||
@ -168,7 +168,7 @@ LegoResult LegoImage::Write(LegoStorage* p_storage)
|
||||
if (m_palette) {
|
||||
LegoPaletteEntry paletteEntry;
|
||||
for (LegoU32 i = 0; i < m_palette->ncolors; i++) {
|
||||
paletteEntry.setColor(m_palette->colors[i]);
|
||||
paletteEntry.SetColor(m_palette->colors[i]);
|
||||
if ((result = paletteEntry.Write(p_storage)) != SUCCESS) {
|
||||
return result;
|
||||
}
|
||||
|
||||
@ -18,8 +18,8 @@ class LegoPaletteEntry {
|
||||
void SetGreen(LegoU8 p_green) { m_color.g = p_green; }
|
||||
LegoU8 GetBlue() const { return m_color.b; }
|
||||
void SetBlue(LegoU8 p_blue) { m_color.b = p_blue; }
|
||||
SDL_Color getColor() const { return m_color; }
|
||||
void setColor(SDL_Color p_color) { m_color = p_color; }
|
||||
SDL_Color GetColor() const { return m_color; }
|
||||
void SetColor(SDL_Color p_color) { m_color = p_color; }
|
||||
LegoResult Read(LegoStorage* p_storage);
|
||||
LegoResult Write(LegoStorage* p_storage) const;
|
||||
|
||||
@ -44,7 +44,7 @@ class LegoImage {
|
||||
}
|
||||
void SetPaletteEntry(LegoU32 p_i, LegoPaletteEntry& p_paletteEntry)
|
||||
{
|
||||
m_palette->colors[p_i] = p_paletteEntry.getColor();
|
||||
m_palette->colors[p_i] = p_paletteEntry.GetColor();
|
||||
}
|
||||
const LegoU8* GetBits() const { return (LegoU8*) m_surface->pixels; }
|
||||
LegoResult Read(LegoStorage* p_storage, LegoU32 p_square);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user