Skip to content

Commit

Permalink
bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
al1-ce committed Dec 8, 2022
1 parent e8f7c42 commit 6eefb37
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 19 deletions.
12 changes: 9 additions & 3 deletions core/sily/package.d
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,18 @@ module sily;

public import sily.array;
public import sily.bashfmt;
public import sily.clang;
public import sily.color;
public import sily.conv;
public import sily.file;
public import sily.getopt;
public import sily.math;
public import sily.path;
public import sily.uni;
public import sily.vector;
public import sily.ptr;
public import sily.stdio;
public import sily.stdio;
public import sily.string;
public import sily.terminal;
public import sily.stdio;
public import sily.time;
public import sily.uni;
public import sily.vector;
8 changes: 4 additions & 4 deletions core/sily/vector.d
Original file line number Diff line number Diff line change
Expand Up @@ -221,13 +221,13 @@ struct Vector(T, size_t N) if (isNumeric!T && N > 0) {
// idk how it works but it works awesome
// and im not going to touch it at all
static if (N == 2 || N == 3 || N == 4) {
static if (N == 2) enum AccessString = "x y|w h|u v"; // exclude from docs
static if (N == 2) enum AccessString = "x y|w h|u v";
else
static if (N == 3) enum AccessString = "x y z|w h d|u v t|r g b"; // exclude from docs
static if (N == 3) enum AccessString = "x y z|w h d|u v t|r g b";
else
static if (N == 4) enum AccessString = "x y z w|r g b a"; // exclude from docs
static if (N == 4) enum AccessString = "x y z w|r g b a";

mixin accessByString!(T, N, "data", AccessString); // exclude from docs
mixin accessByString!(T, N, "data", AccessString);
}

/// Returns copy of vector
Expand Down
1 change: 1 addition & 0 deletions dub.sdl
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ subPackage {
subPackage {
name "tui"
dependency "sily" version="*"
dependency "sily:logger" version="*"
targetType "library"
targetPath "lib"
sourcePaths "tui/"
Expand Down
4 changes: 2 additions & 2 deletions logger/sily/logger/package.d
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ Enables/Disables formatting (colors, bold, dim...) in log messages
Params:
state = bool
*/
void globaLogFormattingEnabled(bool state) {
void globalLogFormattingEnabled(bool state) {
__logFormatEnabled = state;
}

/// Returns: is log formatting enabled
bool globaLogFormattingEnabled() {
bool globalLogFormattingEnabled() {
return __logFormatEnabled;
}

Expand Down
2 changes: 1 addition & 1 deletion test/color
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env dub
/+ dub.sdl:
name "colortest"
dependency "sily" version="~master"
dependency "sily" path="/g/sily-dlang/"
+/

import std.stdio;
Expand Down
3 changes: 2 additions & 1 deletion test/conio
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/env dub
/+ dub.sdl:
name "coniotest"
dependency "sily" version="~master"
dependency "sily" path="/g/sily-dlang/"
dependency "sily:logger" path="/g/sily-dlang/"
+/

import std.stdio: writef;
Expand Down
2 changes: 1 addition & 1 deletion test/format
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env dub
/+ dub.sdl:
name "testfmt"
dependency "sily" version="~master"
dependency "sily" path="/g/sily-dlang/"
+/

import std.stdio: writeln, write, readln;
Expand Down
4 changes: 2 additions & 2 deletions test/log
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env dub
/+ dub.sdl:
name "logtest"
dependency "sily" version="~master"
dependency "sily:logger" version="~master"
dependency "sily" path="/g/sily-dlang/"
dependency "sily:logger" path="/g/sily-dlang/"
// dependency "logger" path="/g/sily-dlang/logger"
+/
module test.logtest;
Expand Down
8 changes: 4 additions & 4 deletions test/tui
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ description "A minimal D application."
authors "Alisa Lain"
copyright "Copyright © 2022, Alisa Lain"
license "proprietary"
dependency "sily" version="~master"
dependency "sily:tui" version="~master"
dependency "sily:logger" version="~master"
dependency "sily" path="/g/sily-dlang/"
dependency "sily:logger" path="/g/sily-dlang/"
dependency "sily:tui" path="/g/sily-dlang/"
targetType "executable"
+/
module test.tui;
Expand All @@ -34,7 +34,7 @@ void main() {

class MyApp: App {
public override void create() {
setFpsTarget(120.0f);
setFpsTarget(15.0f);
// Render.colorMode = ColorMode.ansi256;
// Render.colorMode = ColorMode.ansi8;
Render.colorMode = ColorMode.truecolor;
Expand Down
2 changes: 1 addition & 1 deletion test/vector
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env dub
/+ dub.sdl:
name "vectortest"
dependency "sily" version="~master"
dependency "sily" path="/g/sily-dlang/"
+/

import std.stdio: writeln;
Expand Down

0 comments on commit 6eefb37

Please sign in to comment.