bleh
This commit is contained in:
parent
4ea6801df2
commit
a743cdabe5
9 changed files with 32 additions and 70 deletions
15
src/main.cpp
15
src/main.cpp
|
@ -28,23 +28,16 @@ struct fmt::formatter<BytesToGiB> : formatter<double> {
|
|||
enum DateNum { Ones, Twos, Threes, Default };
|
||||
|
||||
DateNum ParseDate(string const& input) {
|
||||
if (input == "1" || input == "21" || input == "31")
|
||||
return Ones;
|
||||
|
||||
if (input == "2" || input == "22")
|
||||
return Twos;
|
||||
|
||||
if (input == "3" || input == "23")
|
||||
return Threes;
|
||||
|
||||
if (input == "1" || input == "21" || input == "31") return Ones;
|
||||
if (input == "2" || input == "22") return Twos;
|
||||
if (input == "3" || input == "23") return Threes;
|
||||
return Default;
|
||||
}
|
||||
|
||||
int main() {
|
||||
const Config& config = Config::getInstance();
|
||||
|
||||
if (config.getNowPlaying().getEnabled())
|
||||
fmt::println("{}", GetNowPlaying());
|
||||
if (config.getNowPlaying().getEnabled()) fmt::println("{}", GetNowPlaying());
|
||||
|
||||
fmt::println("Hello {}!", config.getGeneral().getName());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue