bug fix
This commit is contained in:
parent
542626e2b2
commit
d7966bdcae
@ -57,7 +57,7 @@ void Graphics::renderVirtualScreen() {
|
|||||||
EndDrawing();
|
EndDrawing();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Graphics::loadPalette(std::string &path) {
|
void Graphics::loadPalette(std::string path) {
|
||||||
std::ifstream paletteFile(path);
|
std::ifstream paletteFile(path);
|
||||||
std::string line;
|
std::string line;
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "raylib.h"
|
#include "raylib.h"
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
class Graphics {
|
class Graphics {
|
||||||
|
|
||||||
@ -35,7 +36,7 @@ public:
|
|||||||
|
|
||||||
void draw();
|
void draw();
|
||||||
|
|
||||||
void loadPalette(std::string& path);
|
void loadPalette(std::string path);
|
||||||
int mouseX();
|
int mouseX();
|
||||||
int mouseY();
|
int mouseY();
|
||||||
void toggleFullScreen();
|
void toggleFullScreen();
|
||||||
|
|||||||
@ -9,7 +9,7 @@ Pycron::Pycron() {
|
|||||||
SetTraceLogLevel(LOG_ERROR);
|
SetTraceLogLevel(LOG_ERROR);
|
||||||
|
|
||||||
graphics = new Graphics{virtualScreenWidth, virtualScreenHeight, initialScale};
|
graphics = new Graphics{virtualScreenWidth, virtualScreenHeight, initialScale};
|
||||||
graphics->loadPalette((std::string &) "../resources/palette2.hex");
|
graphics->loadPalette("../resources/palette2.hex");
|
||||||
|
|
||||||
vm = new pkpy::VM();
|
vm = new pkpy::VM();
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user