diff --git a/0.4/PTM.vcxproj b/0.4/PTM.vcxproj
index f7274e8..41923d5 100644
--- a/0.4/PTM.vcxproj
+++ b/0.4/PTM.vcxproj
@@ -32,6 +32,7 @@
+
@@ -82,6 +83,7 @@
+
diff --git a/0.4/PTM.vcxproj.filters b/0.4/PTM.vcxproj.filters
index f75fef8..016c228 100644
--- a/0.4/PTM.vcxproj.filters
+++ b/0.4/PTM.vcxproj.filters
@@ -56,9 +56,6 @@
GRAPHICS - CORE
-
- CORE
-
RUNTIME UTILITIES
@@ -128,6 +125,12 @@
GRAPHICS - CORE
+
+ EDITOR
+
+
+ EDITOR
+
@@ -196,9 +199,6 @@
GRAPHICS - CORE
-
- CORE
-
UTIL
@@ -304,6 +304,12 @@
GRAPHICS - CORE
+
+ EDITOR
+
+
+ EDITOR
+
@@ -339,5 +345,8 @@
{d73b4aac-b700-424b-8ae1-15ba947d5ef1}
+
+ {a7b7ca7a-6d73-42da-885c-4b9bfc3e8753}
+
\ No newline at end of file
diff --git a/0.4/build/PTM.exe b/0.4/build/PTM.exe
index bc1d536..c27feb1 100644
Binary files a/0.4/build/PTM.exe and b/0.4/build/PTM.exe differ
diff --git a/0.4/build/root/CHARSET b/0.4/build/root/CHARSET
index bb008f1..62a3453 100644
--- a/0.4/build/root/CHARSET
+++ b/0.4/build/root/CHARSET
@@ -1,36 +1,37 @@
-AUTOREF 0
-CLS
-SET ix,1
-SET iy,1
-SET c,0
-RTILE
-TILE 0,15,0
-:loop
-LOCATE ix,iy
-CSET 0,c
-PUT
-INC c
-INC ix
-GOTO.LE ix,16,loop
-INC iy
-SET ix,1
-GOTO.LE iy,16,loop
-SET ix,1
-SET iy,0
-SET ch,0
-:loop2
-LOCATE ix,iy
-PRINTF "%X",ch
-INC ix
-INC ch
-GOTO.LE ix,16,loop2
-SET ix,0
-SET iy,1
-SET ch,0
-:loop3
-LOCATE ix,iy
-PRINTF "%X",ch
-INC iy
-INC ch
-GOTO.LE iy,16,loop3
-LOCATE 0,18
+main:
+ AUTOREF 0
+ CLS
+ SET ix,1
+ SET iy,1
+ SET c,0
+ RTILE
+ TILE 0,15,0
+loop:
+ LOCATE ix,iy
+ CSET 0,c
+ PUT
+ INC c
+ INC ix
+ GOTO.LE ix,16,loop
+ INC iy
+ SET ix,1
+ GOTO.LE iy,16,loop
+ SET ix,1
+ SET iy,0
+ SET ch,0
+loop2:
+ LOCATE ix,iy
+ PRINTF "%X",ch
+ INC ix
+ INC ch
+ GOTO.LE ix,16,loop2
+ SET ix,0
+ SET iy,1
+ SET ch,0
+loop3:
+ LOCATE ix,iy
+ PRINTF "%X",ch
+ INC iy
+ INC ch
+ GOTO.LE iy,16,loop3
+ LOCATE 0,18
diff --git a/0.4/build/root/PALETTE b/0.4/build/root/PALETTE
index f41c1a1..bc649a2 100644
--- a/0.4/build/root/PALETTE
+++ b/0.4/build/root/PALETTE
@@ -1,36 +1,38 @@
-AUTOREF 0
-CLS
-SET ix,1
-SET iy,1
-SET c,0
-RTILE
-TILE 0,0,0
-:loop
-LOCATE ix,iy
-BSET 0,c
-PUT
-INC c
-INC ix
-GOTO.LE ix,16,loop
-INC iy
-SET ix,1
-GOTO.LE iy,16,loop
-SET ix,1
-SET iy,0
-SET ch,0
-:loop2
-LOCATE ix,iy
-PRINTF "%X",ch
-INC ix
-INC ch
-GOTO.LE ix,16,loop2
-SET ix,0
-SET iy,1
-SET ch,0
-:loop3
-LOCATE ix,iy
-PRINTF "%X",ch
-INC iy
-INC ch
-GOTO.LE iy,16,loop3
-LOCATE 0,18
+main:
+ AUTOREF 0
+ CLS
+ SET ix,1
+ SET iy,1
+ SET c,0
+ RTILE
+ TILE 0,0,0
+
+loop:
+ LOCATE ix,iy
+ BSET 0,c
+ PUT
+ INC c
+ INC ix
+ GOTO.LE ix,16,loop
+ INC iy
+ SET ix,1
+ GOTO.LE iy,16,loop
+ SET ix,1
+ SET iy,0
+ SET ch,0
+loop2:
+ LOCATE ix,iy
+ PRINTF "%X",ch
+ INC ix
+ INC ch
+ GOTO.LE ix,16,loop2
+ SET ix,0
+ SET iy,1
+ SET ch,0
+loop3:
+ LOCATE ix,iy
+ PRINTF "%X",ch
+ INC iy
+ INC ch
+ GOTO.LE iy,16,loop3
+ LOCATE 0,18
diff --git a/0.4/build/root/TEST_GAME_1 b/0.4/build/root/TEST_GAME_1
new file mode 100644
index 0000000..1baf760
--- /dev/null
+++ b/0.4/build/root/TEST_GAME_1
@@ -0,0 +1,4 @@
+main:
+ CURSOR 0
+ PRINT "Hello World 123!"
+ HALT
diff --git a/0.4/src/PTM.cpp b/0.4/src/PTM.cpp
index 0a0c0eb..83de3dd 100644
--- a/0.4/src/PTM.cpp
+++ b/0.4/src/PTM.cpp
@@ -14,11 +14,13 @@
#include "t_program.h"
#include "t_program_line.h"
#include "t_program_runner.h"
+#include "t_program_editor.h"
#include "t_filesystem.h"
int wnd_size = 3;
t_window wnd;
t_main_editor main_editor;
+t_program_editor program_editor;
t_interpreter intp;
t_program prg;
t_program_runner prg_runner;
@@ -64,16 +66,21 @@ void PTM::init()
scr.set_palette(&pal);
intp.init(this, &scr, &kb);
+ program_editor.init(this, &scr, &kb);
main_editor.init(this, &scr, &kb, &intp);
+
+ main_editor.active = true;
+ program_editor.active = false;
}
void PTM::run_main()
{
- snd.alert();
-
bool autoexec = t_filesystem::file_exists(autoexec_file);
- if (!autoexec)
+
+ if (!autoexec) {
+ snd.alert();
main_editor.print_welcome(true);
+ }
while (wnd.is_open()) {
if (autoexec) {
@@ -110,6 +117,7 @@ void PTM::reset()
new_program();
main_editor.reset();
main_editor.print_welcome(false);
+ program_editor.reset();
}
void PTM::pause(int frames)
@@ -139,6 +147,9 @@ void PTM::on_machine_cycle()
if (!wnd.is_open())
return;
+ if (program_editor.active)
+ program_editor.draw_program();
+
if (auto_screen_update)
refresh_screen();
@@ -158,7 +169,10 @@ void PTM::on_machine_cycle()
else if (!kb.alt() && !halted) {
kb.push_key(key);
if (!prg_runner.is_running()) {
- main_editor.on_keydown();
+ if (main_editor.active)
+ main_editor.on_keydown();
+ if (program_editor.active)
+ program_editor.on_keydown();
}
}
}
@@ -166,6 +180,9 @@ void PTM::on_machine_cycle()
void PTM::on_escape_key_pressed()
{
+ if (!enable_user_break)
+ return;
+
if (halted) {
halted = false;
}
diff --git a/0.4/src/PTM.h b/0.4/src/PTM.h
index 71d1574..3148d50 100644
--- a/0.4/src/PTM.h
+++ b/0.4/src/PTM.h
@@ -32,6 +32,7 @@ class PTM
t_tile tilereg;
bool auto_screen_update = true;
+ bool enable_user_break = true;
void run();
void exit();
diff --git a/0.4/src/PTML_ALL.cpp b/0.4/src/PTML_ALL.cpp
index d703cde..f58ca79 100644
--- a/0.4/src/PTML_ALL.cpp
+++ b/0.4/src/PTML_ALL.cpp
@@ -26,6 +26,7 @@ t_function_ptr PTML::get_cmd_pointer(const t_string& cmd)
CMD("EXIT", EXIT);
CMD("RESET", RESET);
CMD("PAUSE", PAUSE);
+ CMD("BREAK", BREAK);
// === MEMORY ===
CMD("SET", SET);
diff --git a/0.4/src/PTML_CTFLOW.cpp b/0.4/src/PTML_CTFLOW.cpp
index 5be84ed..70b40cc 100644
--- a/0.4/src/PTML_CTFLOW.cpp
+++ b/0.4/src/PTML_CTFLOW.cpp
@@ -129,3 +129,9 @@ void PTML::PAUSE()
ARGC(1);
ptm->pause(NUM(1));
}
+
+void PTML::BREAK()
+{
+ ARGC(1);
+ ptm->enable_user_break = BOOL(1);
+}
diff --git a/0.4/src/PTML_CTFLOW.h b/0.4/src/PTML_CTFLOW.h
index 2c170d5..43c5d70 100644
--- a/0.4/src/PTML_CTFLOW.h
+++ b/0.4/src/PTML_CTFLOW.h
@@ -26,4 +26,5 @@ namespace PTML
void CALL_IFNKEY();
void RET();
void PAUSE();
+ void BREAK();
}
diff --git a/0.4/src/t_main_editor.cpp b/0.4/src/t_main_editor.cpp
index 200e1b4..c86ac61 100644
--- a/0.4/src/t_main_editor.cpp
+++ b/0.4/src/t_main_editor.cpp
@@ -46,6 +46,9 @@ void t_main_editor::reset()
void t_main_editor::print_welcome(bool show_prompt)
{
+ if (!active)
+ return;
+
scr->print_string_crlf(ptm->version_string);
scr->print_string_crlf(ptm->title_short);
scr->print_string_crlf(ptm->copyright_notice);
diff --git a/0.4/src/t_main_editor.h b/0.4/src/t_main_editor.h
index e008837..4809550 100644
--- a/0.4/src/t_main_editor.h
+++ b/0.4/src/t_main_editor.h
@@ -12,6 +12,8 @@ class t_sound;
class t_main_editor
{
public:
+ bool active = true;
+
t_dict function_keys;
t_dict function_keys_shifted;
diff --git a/0.4/src/t_program_editor.cpp b/0.4/src/t_program_editor.cpp
new file mode 100644
index 0000000..ccdeb07
--- /dev/null
+++ b/0.4/src/t_program_editor.cpp
@@ -0,0 +1,109 @@
+#include "t_program_editor.h"
+#include "PTM.h"
+#include "t_tile.h"
+#include "t_screen.h"
+#include "t_keyboard.h"
+#include "t_util.h"
+#include "predefined_charset_ix.h"
+
+t_program_editor::t_program_editor()
+{
+}
+
+t_program_editor::~t_program_editor()
+{
+}
+
+void t_program_editor::init(PTM* ptm, t_screen* scr, t_keyboard* kb)
+{
+ this->ptm = ptm;
+ this->scr = scr;
+ this->kb = kb;
+ this->snd = &ptm->get_sound();
+
+ first_line_ix = 0;
+ last_line_ix = scr->last_row;
+}
+
+void t_program_editor::reset()
+{
+}
+
+void t_program_editor::draw_program()
+{
+ for (int i = first_line_ix; i <= last_line_ix; i++) {
+ if (i >= 0 && i < lines.size())
+ scr->print_string_crlf(lines[i]);
+ else
+ break;
+ }
+}
+
+void t_program_editor::on_keydown()
+{
+ SDL_Keycode key = kb->peek_key();
+
+ switch (key)
+ {
+ case SDLK_RIGHT: {
+ kb->ctrl() ?
+ scr->move_cursor_next_logical_x(1) :
+ scr->move_cursor_dist(1, 0);
+ break;
+ }
+ case SDLK_LEFT: {
+ kb->ctrl() ?
+ scr->move_cursor_next_logical_x(-1) :
+ scr->move_cursor_dist(-1, 0);
+ break;
+ }
+ case SDLK_HOME: {
+ scr->move_cursor_line_start();
+ break;
+ }
+ case SDLK_END: {
+ scr->move_cursor_eol();
+ break;
+ }
+ case SDLK_BACKSPACE: {
+ scr->on_backspace_pressed();
+ break;
+ }
+ case SDLK_DELETE: {
+ scr->on_delete_pressed();
+ break;
+ }
+ case SDLK_TAB: {
+ for (int i = 0; i < 8; i++)
+ scr->on_character_key_pressed(predef_char.whitespace);
+ break;
+ }
+ case SDLK_INSERT: {
+ scr->toggle_insert_mode();
+ break;
+ }
+ case SDLK_RETURN: {
+ on_enter_pressed();
+ break;
+ }
+ case SDLK_q: {
+ if (kb->ctrl())
+ ptm->exit();
+ break;
+ }
+ default: {
+ unsigned char ch = kb->keycode_to_char(key);
+ if (ch > 0) {
+ scr->on_character_key_pressed(ch);
+ snd->keystroke();
+ }
+ break;
+ }
+ }
+
+ kb->pop_key();
+}
+
+void t_program_editor::on_enter_pressed()
+{
+}
diff --git a/0.4/src/t_program_editor.h b/0.4/src/t_program_editor.h
new file mode 100644
index 0000000..72e4e2d
--- /dev/null
+++ b/0.4/src/t_program_editor.h
@@ -0,0 +1,37 @@
+#pragma once
+#include
+#include "t_list.h"
+#include "t_string.h"
+
+class PTM;
+class t_screen;
+class t_keyboard;
+class t_interpreter;
+class t_sound;
+
+class t_program_editor
+{
+public:
+ bool active = false;
+
+ t_program_editor();
+ ~t_program_editor();
+
+ void init(PTM* ptm, t_screen* scr, t_keyboard* kb);
+ void reset();
+ void on_keydown();
+ void draw_program();
+
+private:
+ PTM* ptm = nullptr;
+ t_screen* scr = nullptr;
+ t_keyboard* kb = nullptr;
+ t_sound* snd = nullptr;
+
+ t_list lines;
+ int cur_line_ix = 0;
+ int first_line_ix = 0;
+ int last_line_ix = 0;
+
+ void on_enter_pressed();
+};
diff --git a/0.4/src/t_tokenizer.cpp b/0.4/src/t_tokenizer.cpp
index 8b07d5c..a57fc4f 100644
--- a/0.4/src/t_tokenizer.cpp
+++ b/0.4/src/t_tokenizer.cpp
@@ -136,8 +136,8 @@ t_token t_tokenizer::parse_token(int token_index, t_string& src)
token.type = t_token_type::comment;
}
// ===== LABEL =====
- else if (src.starts_with(sym.label)) {
- auto&& val = src.skip(1);
+ else if (src.ends_with(sym.label)) {
+ auto&& val = src.substr(0, src.length() - 2);
if (val.empty()) {
token.type = t_token_type::invalid;
}
diff --git a/0.4A/PTM.sln b/0.4A/PTM.sln
deleted file mode 100644
index e6789ea..0000000
--- a/0.4A/PTM.sln
+++ /dev/null
@@ -1,28 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio Version 17
-VisualStudioVersion = 17.12.35514.174 d17.12
-MinimumVisualStudioVersion = 10.0.40219.1
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "PTM", "PTM\PTM.vcxproj", "{D475CED4-54B8-4ABD-8E5F-E23325B6EB92}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|x64 = Debug|x64
- Debug|x86 = Debug|x86
- Release|x64 = Release|x64
- Release|x86 = Release|x86
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {D475CED4-54B8-4ABD-8E5F-E23325B6EB92}.Debug|x64.ActiveCfg = Debug|x64
- {D475CED4-54B8-4ABD-8E5F-E23325B6EB92}.Debug|x64.Build.0 = Debug|x64
- {D475CED4-54B8-4ABD-8E5F-E23325B6EB92}.Debug|x86.ActiveCfg = Debug|Win32
- {D475CED4-54B8-4ABD-8E5F-E23325B6EB92}.Debug|x86.Build.0 = Debug|Win32
- {D475CED4-54B8-4ABD-8E5F-E23325B6EB92}.Release|x64.ActiveCfg = Release|x64
- {D475CED4-54B8-4ABD-8E5F-E23325B6EB92}.Release|x64.Build.0 = Release|x64
- {D475CED4-54B8-4ABD-8E5F-E23325B6EB92}.Release|x86.ActiveCfg = Release|Win32
- {D475CED4-54B8-4ABD-8E5F-E23325B6EB92}.Release|x86.Build.0 = Release|Win32
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
-EndGlobal
diff --git a/0.4A/PTM/PTM.vcxproj b/0.4A/PTM/PTM.vcxproj
deleted file mode 100644
index fc624a8..0000000
--- a/0.4A/PTM/PTM.vcxproj
+++ /dev/null
@@ -1,194 +0,0 @@
-
-
-
-
- Debug
- Win32
-
-
- Release
- Win32
-
-
- Debug
- x64
-
-
- Release
- x64
-
-
-
- 17.0
- Win32Proj
- {d475ced4-54b8-4abd-8e5f-e23325b6eb92}
- PTM
- 10.0
-
-
-
- Application
- true
- v143
- Unicode
-
-
- Application
- false
- v143
- true
- Unicode
-
-
- Application
- true
- v143
- Unicode
-
-
- Application
- false
- v143
- true
- Unicode
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- $(SolutionDir)build\
- $(SolutionDir)temp\
-
-
- false
-
-
-
- Level3
- true
- WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)
- true
-
-
- Console
- true
-
-
-
-
- Level3
- true
- true
- true
- WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)
- true
-
-
- Console
- true
- true
- true
-
-
-
-
- Level1
- true
- _CRT_SECURE_NO_WARNINGS;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)
- true
- stdcpplatest
- stdclatest
- C:\Lib\SDL3-3.1.6\include;%(AdditionalIncludeDirectories)
- MultiThreadedDebug
-
-
- Windows
- true
- C:\Lib\SDL3-3.1.6\lib\x64;%(AdditionalLibraryDirectories)
- SDL3.lib;%(AdditionalDependencies)
-
-
-
-
- Level3
- true
- true
- true
- NDEBUG;_CONSOLE;%(PreprocessorDefinitions)
- true
-
-
- Console
- true
- true
- true
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/0.4A/PTM/PTM.vcxproj.filters b/0.4A/PTM/PTM.vcxproj.filters
deleted file mode 100644
index 3ed3ff2..0000000
--- a/0.4A/PTM/PTM.vcxproj.filters
+++ /dev/null
@@ -1,163 +0,0 @@
-
-
-
-
-
- UTIL
-
-
- UTIL
-
-
- CORE
-
-
- UTIL
-
-
- UTIL
-
-
- GRAPHICS\BASIC
-
-
- GRAPHICS\BASIC
-
-
- GRAPHICS\BASIC
-
-
- GRAPHICS\BASIC
-
-
- GRAPHICS\BASIC
-
-
- GRAPHICS\BASIC
-
-
- GRAPHICS\COMPLEX
-
-
- SUBSYSTEMS
-
-
- INPUT
-
-
- GRAPHICS\COMPLEX
-
-
- UTIL
-
-
- CORE
-
-
- SUBSYSTEMS
-
-
- INPUT
-
-
- GRAPHICS\COMPLEX
-
-
-
-
- UTIL
-
-
- UTIL
-
-
- CORE
-
-
- UTIL
-
-
- UTIL
-
-
- UTIL
-
-
- GRAPHICS\BASIC
-
-
- GRAPHICS\BASIC
-
-
- GRAPHICS\BASIC
-
-
- GRAPHICS\BASIC
-
-
- GRAPHICS\BASIC
-
-
- GRAPHICS\BASIC
-
-
- GRAPHICS\BASIC
-
-
- GRAPHICS\BASIC
-
-
- GRAPHICS\COMPLEX
-
-
- INPUT
-
-
- SUBSYSTEMS
-
-
- GRAPHICS\COMPLEX
-
-
- UTIL
-
-
- CORE
-
-
- SUBSYSTEMS
-
-
- CORE
-
-
- INPUT
-
-
- GRAPHICS\COMPLEX
-
-
-
-
- {a0a9d060-1925-44ba-b67c-1196e7eafd6f}
-
-
- {4b4ffa97-998d-45d4-a96a-b2bf2e7862d5}
-
-
- {08f6e765-5c0f-4eec-b762-c3fb209a89af}
-
-
- {6df5a51a-5f83-417f-9207-70188839c395}
-
-
- {45341c82-7cce-4697-a766-45472cdd5995}
-
-
- {b5cf3d74-c85a-481a-95ed-a692781e9c2b}
-
-
- {44342616-f519-4a53-b53a-8d5ea70946f1}
-
-
-
\ No newline at end of file
diff --git a/0.4A/PTM/main.cpp b/0.4A/PTM/main.cpp
deleted file mode 100644
index 1fbfc8d..0000000
--- a/0.4A/PTM/main.cpp
+++ /dev/null
@@ -1,7 +0,0 @@
-#include
-#include "t_ptm.h"
-
-int main(int argc, char* argv[])
-{
- return ptm.sys.run();
-}
diff --git a/0.4A/PTM/t_binary.h b/0.4A/PTM/t_binary.h
deleted file mode 100644
index a6b3182..0000000
--- a/0.4A/PTM/t_binary.h
+++ /dev/null
@@ -1,4 +0,0 @@
-#pragma once
-#include "t_string.h"
-
-using t_binary = t_string;
diff --git a/0.4A/PTM/t_board.cpp b/0.4A/PTM/t_board.cpp
deleted file mode 100644
index 7920dbc..0000000
--- a/0.4A/PTM/t_board.cpp
+++ /dev/null
@@ -1,50 +0,0 @@
-#include "t_board.h"
-
-t_board::t_board()
-{
-}
-
-t_board::~t_board()
-{
- for (int layer = 0; layer < layers; layer++) {
- for (int i = 0; i < size; i++) {
- tiles[layer].clear();
- }
- }
-
- this->cols = 0;
- this->rows = 0;
- this->size = 0;
-}
-
-void t_board::init(int cols, int rows)
-{
- this->cols = cols;
- this->rows = rows;
- this->size = cols * rows;
-
- for (int layer = 0; layer < layers; layer++) {
- for (int i = 0; i < size; i++) {
- tiles[layer].emplace_back();
- }
- }
-}
-
-void t_board::set_tile(int layer, int x, int y, const t_tile& tile)
-{
- tiles[layer][y * cols + x] = tile;
-}
-
-t_tile& t_board::get_tile(int layer, int x, int y)
-{
- return tiles[layer][y * cols + x];
-}
-
-void t_board::clear()
-{
- for (int layer = 0; layer < layers; layer++) {
- for (int i = 0; i < size; i++) {
- tiles[layer][i].set_empty();
- }
- }
-}
diff --git a/0.4A/PTM/t_board.h b/0.4A/PTM/t_board.h
deleted file mode 100644
index aba6a72..0000000
--- a/0.4A/PTM/t_board.h
+++ /dev/null
@@ -1,24 +0,0 @@
-#pragma once
-#include "t_tile.h"
-#include "t_list.h"
-
-class t_board
-{
-public:
- t_board();
- ~t_board();
-
- void init(int cols, int rows);
- void set_tile(int layer, int x, int y, const t_tile& tile);
- t_tile& get_tile(int layer, int x, int y);
- void clear();
-
-private:
- static const int layers = 3;
-
- int cols = 0;
- int rows = 0;
- int size = 0;
-
- t_list tiles[layers];
-};
diff --git a/0.4A/PTM/t_charset.cpp b/0.4A/PTM/t_charset.cpp
deleted file mode 100644
index f509665..0000000
--- a/0.4A/PTM/t_charset.cpp
+++ /dev/null
@@ -1,325 +0,0 @@
-#include "t_charset.h"
-
-t_charset::t_charset()
-{
- reset();
-}
-
-t_charset::t_charset(const t_charset& other)
-{
- copy_from(other);
-}
-
-t_charset& t_charset::operator=(const t_charset& other)
-{
- if (this == &other)
- return *this;
-
- copy_from(other);
-
- return *this;
-}
-
-void t_charset::copy_from(const t_charset& other)
-{
- remove_all();
- for (int i = 0; i < other.chars.size(); i++) {
- chars.emplace_back(other.chars[i]);
- }
-}
-
-void t_charset::remove_all()
-{
- chars.clear();
-}
-
-void t_charset::add(const t_binary& bits)
-{
- chars.emplace_back(bits);
-}
-
-t_binary& t_charset::get(t_index index)
-{
- return chars[index];
-}
-
-void t_charset::set(t_index index, const t_binary& bits)
-{
- chars[index] = bits;
-}
-
-void t_charset::set_row(t_index chr_index, t_index row, const t_binary& bits)
-{
- auto rows = chars[chr_index].split_chunks(8);
- rows[row] = bits.get_first(8);
- chars[chr_index] = t_string::join(rows, "");
-}
-
-int t_charset::size() const
-{
- return (int)chars.size();
-}
-
-void t_charset::reset()
-{
- remove_all();
-
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
-
- add("0000000000000000000000000000000000000000000000000000000000000000"); // 32 Whitespace
- add("0000000000011000000110000001100000011000000000000001100000000000"); // 33
- add("0000000001100110011001100110011000000000000000000000000000000000"); // 34
- add("0000000001100110111111110110011001100110111111110110011000000000"); // 35
- add("0001100000111110011000000011110000000110011111000001100000000000"); // 36
- add("0000000001100110011011000001100000110000011001100100011000000000"); // 37
- add("0001110000110110000111000011100001101111011001100011101100000000"); // 38
- add("0000000000011000000110000001100000000000000000000000000000000000"); // 39
- add("0000000000001110000111000001100000011000000111000000111000000000"); // 40
- add("0000000001110000001110000001100000011000001110000111000000000000"); // 41
- add("0000000001100110001111001111111100111100011001100000000000000000"); // 42
- add("0000000000011000000110000111111000011000000110000000000000000000"); // 43
- add("0000000000000000000000000000000000000000000110000001100000110000"); // 44
- add("0000000000000000000000000111111000000000000000000000000000000000"); // 45
- add("0000000000000000000000000000000000000000000110000001100000000000"); // 46
- add("0000000000000110000011000001100000110000011000000100000000000000"); // 47
- add("0000000000111100011001100110111001110110011001100011110000000000"); // 48
- add("0000000000011000001110000001100000011000000110000111111000000000"); // 49
- add("0000000000111100011001100000110000011000001100000111111000000000"); // 50
- add("0000000001111110000011000001100000001100011001100011110000000000"); // 51
- add("0000000000001100000111000011110001101100011111100000110000000000"); // 52
- add("0000000001111110011000000111110000000110011001100011110000000000"); // 53
- add("0000000000111100011000000111110001100110011001100011110000000000"); // 54
- add("0000000001111110000001100000110000011000001100000011000000000000"); // 55
- add("0000000000111100011001100011110001100110011001100011110000000000"); // 56
- add("0000000000111100011001100011111000000110000011000011100000000000"); // 57
- add("0000000000000000000110000001100000000000000110000001100000000000"); // 58
- add("0000000000000000000110000001100000000000000110000001100000110000"); // 59
- add("0000011000001100000110000011000000011000000011000000011000000000"); // 60
- add("0000000000000000011111100000000000000000011111100000000000000000"); // 61
- add("0110000000110000000110000000110000011000001100000110000000000000"); // 62
- add("0000000000111100011001100000110000011000000000000001100000000000"); // 63
- add("0000000000111100011001100110111001101110011000000011111000000000"); // 64
- add("0000000000011000001111000110011001100110011111100110011000000000"); // 65
- add("0000000001111100011001100111110001100110011001100111110000000000"); // 66
- add("0000000000111100011001100110000001100000011001100011110000000000"); // 67
- add("0000000001111000011011000110011001100110011011000111100000000000"); // 68
- add("0000000001111110011000000111110001100000011000000111111000000000"); // 69
- add("0000000001111110011000000111110001100000011000000110000000000000"); // 70
- add("0000000000111110011000000110000001101110011001100011111000000000"); // 71
- add("0000000001100110011001100111111001100110011001100110011000000000"); // 72
- add("0000000001111110000110000001100000011000000110000111111000000000"); // 73
- add("0000000000000110000001100000011000000110011001100011110000000000"); // 74
- add("0000000001100110011011000111100001111000011011000110011000000000"); // 75
- add("0000000001100000011000000110000001100000011000000111111000000000"); // 76
- add("0000000001100011011101110111111101101011011000110110001100000000"); // 77
- add("0000000001100110011101100111111001111110011011100110011000000000"); // 78
- add("0000000000111100011001100110011001100110011001100011110000000000"); // 79
- add("0000000001111100011001100110011001111100011000000110000000000000"); // 80
- add("0000000000111100011001100110011001100110011011000011011000000000"); // 81
- add("0000000001111100011001100110011001111100011011000110011000000000"); // 82
- add("0000000000111100011000000011110000000110000001100011110000000000"); // 83
- add("0000000001111110000110000001100000011000000110000001100000000000"); // 84
- add("0000000001100110011001100110011001100110011001100111111000000000"); // 85
- add("0000000001100110011001100110011001100110001111000001100000000000"); // 86
- add("0000000001100011011000110110101101111111011101110110001100000000"); // 87
- add("0000000001100110011001100011110000111100011001100110011000000000"); // 88
- add("0000000001100110011001100011110000011000000110000001100000000000"); // 89
- add("0000000001111110000011000001100000110000011000000111111000000000"); // 90
- add("0000000000011110000110000001100000011000000110000001111000000000"); // 91
- add("0000000001000000011000000011000000011000000011000000011000000000"); // 92
- add("0000000001111000000110000001100000011000000110000111100000000000"); // 93
- add("0000000000000010000100100011001001111110001100000001000000000000"); // 94 Enter symbol
- add("0000000000000000000000000000000000000000000000001111111100000000"); // 95
- add("0000000001111100110000101001111010011110110000100111110000000000"); // 96 Copyright symbol
- add("0000000000000000001111000000011000111110011001100011111000000000"); // 97
- add("0000000001100000011000000111110001100110011001100111110000000000"); // 98
- add("0000000000000000001111000110000001100000011000000011110000000000"); // 99
- add("0000000000000110000001100011111001100110011001100011111000000000"); // 100
- add("0000000000000000001111000110011001111110011000000011110000000000"); // 101
- add("0000000000001110000110000011111000011000000110000001100000000000"); // 102
- add("0000000000000000001111100110011001100110001111100000011001111100"); // 103
- add("0000000001100000011000000111110001100110011001100110011000000000"); // 104
- add("0000000000011000000000000011100000011000000110000011110000000000"); // 105
- add("0000000000000110000000000000011000000110000001100000011000111100"); // 106
- add("0000000001100000011000000110110001111000011011000110011000000000"); // 107
- add("0000000000111000000110000001100000011000000110000011110000000000"); // 108
- add("0000000000000000011001100111111101111111011010110110001100000000"); // 109
- add("0000000000000000011111000110011001100110011001100110011000000000"); // 110
- add("0000000000000000001111000110011001100110011001100011110000000000"); // 111
- add("0000000000000000011111000110011001100110011111000110000001100000"); // 112
- add("0000000000000000001111100110011001100110001111100000011000000110"); // 113
- add("0000000000000000011111000110011001100000011000000110000000000000"); // 114
- add("0000000000000000001111100110000000111100000001100111110000000000"); // 115
- add("0000000000011000011111100001100000011000000110000000111000000000"); // 116
- add("0000000000000000011001100110011001100110011001100011111000000000"); // 117
- add("0000000000000000011001100110011001100110001111000001100000000000"); // 118
- add("0000000000000000011000110110101101111111001111100011011000000000"); // 119
- add("0000000000000000011001100011110000011000001111000110011000000000"); // 120
- add("0000000000000000011001100110011001100110001111100000110001111000"); // 121
- add("0000000000000000011111100000110000011000001100000111111000000000"); // 122
- add("0000111000011000000110000011000000011000000110000000111000000000"); // 123
- add("0001100000011000000110000001100000011000000110000001100000000000"); // 124
- add("0111000000011000000110000000110000011000000110000111000000000000"); // 125
- add("1100000011000000110000001100000011000000110000001100000011000000"); // 126 Half cursor
- add("1111111111111111111111111111111111111111111111111111111111111111"); // 127 Cursor
-
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
- add("0000000000000000000000000000000000000000000000000000000000000000");
-}
diff --git a/0.4A/PTM/t_charset.h b/0.4A/PTM/t_charset.h
deleted file mode 100644
index 527217a..0000000
--- a/0.4A/PTM/t_charset.h
+++ /dev/null
@@ -1,28 +0,0 @@
-#pragma once
-#include "t_list.h"
-#include "t_binary.h"
-#include "t_index.h"
-
-class t_charset
-{
-public:
- static const int char_w = 8;
- static const int char_h = 8;
-
- t_charset();
- t_charset(const t_charset& other);
- t_charset& operator=(const t_charset& other);
-
- void remove_all();
- void add(const t_binary& bits);
- t_binary& get(t_index index);
- void set(t_index index, const t_binary& bits);
- void set_row(t_index chr_index, t_index row, const t_binary& bits);
- int size() const;
- void reset();
-
-private:
- t_list chars;
-
- void copy_from(const t_charset& other);
-};
diff --git a/0.4A/PTM/t_color.cpp b/0.4A/PTM/t_color.cpp
deleted file mode 100644
index 9e56704..0000000
--- a/0.4A/PTM/t_color.cpp
+++ /dev/null
@@ -1,83 +0,0 @@
-#include "t_color.h"
-#include "t_util.h"
-
-t_color t_color::invalid = 0x000000;
-
-t_color::t_color() : r(0), g(0), b(0)
-{
-}
-
-t_color::t_color(int r, int g, int b) : r(r), g(g), b(b)
-{
-}
-
-t_color::t_color(RGB rgb)
-{
- unpack_rgb(rgb, &r, &g, &b);
-}
-
-t_color::t_color(const t_color& other)
-{
- r = other.r;
- g = other.g;
- b = other.b;
-}
-
-bool t_color::operator==(const t_color& other) const
-{
- return r == other.r && g == other.g && b == other.b;
-}
-
-t_color& t_color::operator=(const t_color& other)
-{
- if (this == &other)
- return *this;
-
- r = other.r;
- g = other.g;
- b = other.b;
-
- return *this;
-}
-
-RGB t_color::to_rgb() const
-{
- return pack_rgb(r, g, b);
-}
-
-RGB t_color::pack_rgb(int r, int g, int b)
-{
- return (r << 16) | (g << 8) | b;
-}
-
-void t_color::unpack_rgb(RGB rgb, int* r, int* g, int* b)
-{
- *r = (rgb >> 16) & 0xFF;
- *g = (rgb >> 8) & 0xFF;
- *b = rgb & 0xFF;
-}
-
-t_color t_color::get_random()
-{
- return t_color(t_util::rnd(0, 255), t_util::rnd(0, 255), t_util::rnd(0, 255));
-}
-
-void t_color::set(RGB rgb)
-{
- unpack_rgb(rgb, &r, &g, &b);
-}
-
-void t_color::set(int r, int g, int b)
-{
- this->r = r;
- this->g = g;
- this->b = b;
-}
-
-void t_color::set_r(int r) { this->r = r; }
-void t_color::set_g(int g) { this->g = g; }
-void t_color::set_b(int b) { this->b = b; }
-
-int t_color::get_r() const { return r; }
-int t_color::get_g() const { return g; }
-int t_color::get_b() const { return b; }
diff --git a/0.4A/PTM/t_color.h b/0.4A/PTM/t_color.h
deleted file mode 100644
index cd1b981..0000000
--- a/0.4A/PTM/t_color.h
+++ /dev/null
@@ -1,36 +0,0 @@
-#pragma once
-#include "t_rgb.h"
-
-class t_color
-{
-public:
- static t_color invalid;
-
- t_color();
- t_color(RGB rgb);
- t_color(int r, int g, int b);
- t_color(const t_color& other);
-
- bool operator==(const t_color& other) const;
- t_color& operator=(const t_color& other);
-
- RGB to_rgb() const;
- static RGB pack_rgb(int r, int g, int b);
- static void unpack_rgb(RGB rgb, int* r, int* g, int* b);
- static t_color get_random();
-
- void set(RGB rgb);
- void set(int r, int g, int b);
- void set_r(int r);
- void set_g(int g);
- void set_b(int b);
- int get_r() const;
- int get_g() const;
- int get_b() const;
-
-private:
- int r = 0;
- int g = 0;
- int b = 0;
-};
-
diff --git a/0.4A/PTM/t_data.cpp b/0.4A/PTM/t_data.cpp
deleted file mode 100644
index ae295a5..0000000
--- a/0.4A/PTM/t_data.cpp
+++ /dev/null
@@ -1,62 +0,0 @@
-#include "t_data.h"
-
-t_data::t_data()
-{
-}
-
-t_data::~t_data()
-{
-}
-
-t_data::t_data(const t_data& other)
-{
- data = other.data;
-}
-
-void t_data::clear()
-{
- data.clear();
-}
-
-void t_data::set(const t_string& key, const t_string& value)
-{
- data[key] = value;
-}
-
-void t_data::set(const t_string& key, int value)
-{
- set(key, t_string::from_int(value));
-}
-
-const t_string& t_data::get_str(const t_string& key)
-{
- return data[key];
-}
-
-const int t_data::get_int(const t_string& key)
-{
- return data[key].to_int();
-}
-
-bool t_data::has(const t_string& key)
-{
- return data.contains(key);
-}
-
-bool t_data::has(const t_string& key, const t_string& value)
-{
- if (!has(key))
- return false;
-
- return data[key] == value;
-}
-
-const t_dict& t_data::get_all() const
-{
- return data;
-}
-
-bool t_data::empty() const
-{
- return data.empty();
-}
diff --git a/0.4A/PTM/t_data.h b/0.4A/PTM/t_data.h
deleted file mode 100644
index ecc82c2..0000000
--- a/0.4A/PTM/t_data.h
+++ /dev/null
@@ -1,24 +0,0 @@
-#pragma once
-#include "t_string.h"
-#include "t_dict.h"
-
-class t_data
-{
-public:
- t_data();
- ~t_data();
- t_data(const t_data& other);
-
- void clear();
- void set(const t_string& key, const t_string& value);
- void set(const t_string& key, int value);
- const t_string& get_str(const t_string& key);
- const int get_int(const t_string& key);
- bool has(const t_string& key);
- bool has(const t_string& key, const t_string& value);
- const t_dict& get_all() const;
- bool empty() const;
-
-private:
- t_dict data;
-};
diff --git a/0.4A/PTM/t_defaults.h b/0.4A/PTM/t_defaults.h
deleted file mode 100644
index 18910cb..0000000
--- a/0.4A/PTM/t_defaults.h
+++ /dev/null
@@ -1,15 +0,0 @@
-#pragma once
-#include "t_string.h"
-#include "t_color.h"
-
-struct t_defaults
-{
- const t_string wnd_title = "PTM";
-
- const int wnd_buffer_w = 360;
- const int wnd_buffer_h = 200;
- const int wnd_stretch_w = 3;
- const int wnd_stretch_h = 3;
-
- const t_color back_color = 0x000000;
-};
diff --git a/0.4A/PTM/t_dict.cpp b/0.4A/PTM/t_dict.cpp
deleted file mode 100644
index 420f15a..0000000
--- a/0.4A/PTM/t_dict.cpp
+++ /dev/null
@@ -1 +0,0 @@
-#include "t_dict.h"
diff --git a/0.4A/PTM/t_dict.h b/0.4A/PTM/t_dict.h
deleted file mode 100644
index 04e69e0..0000000
--- a/0.4A/PTM/t_dict.h
+++ /dev/null
@@ -1,9 +0,0 @@
-#pragma once
-#include